14#ifndef PGVIRTUALFRAME_H
15#define PGVIRTUALFRAME_H
43class EXPCL_PANDA_PGUI PGVirtualFrame :
public PGItem {
45 explicit PGVirtualFrame(
const std::string &name =
"");
46 virtual ~PGVirtualFrame();
49 PGVirtualFrame(
const PGVirtualFrame ©);
50 virtual PandaNode *make_copy()
const;
51 virtual void r_copy_children(
const PandaNode *from, InstanceMap &inst_map,
55 void setup(PN_stdfloat width, PN_stdfloat height);
57 INLINE
void set_clip_frame(PN_stdfloat left, PN_stdfloat right, PN_stdfloat bottom, PN_stdfloat top);
70 virtual void clip_frame_changed();
73 void setup_child_nodes();
77 LVecBase4 _clip_frame;
86 static void init_type() {
89 PGItem::get_class_type());
92 return get_class_type();
94 virtual TypeHandle force_init_type() {init_type();
return get_class_type();}
This node is placed at key points within the scene graph to indicate the roots of "models": subtrees ...
const LVecBase4 & get_clip_frame() const
Returns the bounding rectangle of the clip frame.
PandaNode * get_canvas_parent() const
Returns the parent node of the canvas_node.
bool has_clip_frame() const
Returns true if the clip frame has been set; see set_clip_frame().
void set_clip_frame(PN_stdfloat left, PN_stdfloat right, PN_stdfloat bottom, PN_stdfloat top)
Sets the bounding rectangle of the clip frame.
void clear_clip_frame()
Removes the clip frame from the item.
void set_canvas_transform(const TransformState *transform)
Changes the transform of the virtual canvas.
const TransformState * get_canvas_transform() const
Returns the transform of the virtual canvas.
PandaNode * get_canvas_node() const
Returns the special node that holds all of the children that appear in the virtual canvas.
void setup(PN_stdfloat width, PN_stdfloat height)
Creates a PGVirtualFrame with the indicated dimensions.
A thread; that is, a lightweight process.
TypeHandle is the identifier used to differentiate C++ class types.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
void register_type(TypeHandle &type_handle, const std::string &name)
This inline function is just a convenient way to call TypeRegistry::register_type(),...