38class EXPCL_PANDA_PGUI PGTop :
public PandaNode {
40 explicit PGTop(
const std::string &name);
44 INLINE PGTop(
const PGTop ©);
62 INLINE
void clear_regions();
66 PT(PGMouseWatcherGroup) _watcher_group;
73 static void init_type() {
74 PandaNode::init_type();
76 PandaNode::get_class_type());
79 return get_class_type();
81 virtual TypeHandle force_init_type() {init_type();
return get_class_type();}
86 friend class PGMouseWatcherGroup;
This object performs a depth-first traversal of the scene graph, with optional view-frustum culling,...
Encapsulates all the communication with a particular instance of a given rendering backend.
This represents a collection of MouseWatcherRegions that may be managed as a group.
This is the class that defines a rectangular region on the screen for the MouseWatcher.
This TFormer maintains a list of rectangular regions on the screen that are considered special mouse ...
This is a specialization on MouseWatcherGroup, to associate it with a PGTop.
MouseWatcher * get_mouse_watcher() const
Returns the MouseWatcher pointer that the PGTop object registers its PG items with,...
MouseWatcherGroup * get_group() const
Returns the MouseWatcherGroup pointer that the PGTop object registers its PG items with,...
void add_region(MouseWatcherRegion *region)
Adds the indicated region to the set of regions in the group.
void set_start_sort(int start_sort)
Specifies the sort index that is assigned during the traversal to the first PGItem that is discovered...
int get_start_sort() const
Returns the sort index that is assigned during the traversal to the first PGItem that is discovered d...
void set_mouse_watcher(MouseWatcher *watcher)
Sets the MouseWatcher pointer that the PGTop object registers its PG items with.
virtual bool cull_callback(CullTraverser *trav, CullTraverserData &data)
This function will be called during the cull traversal to perform any additional operations that shou...
virtual bool is_renderable() const
Returns true if there is some value to visiting this particular node during the cull traversal for an...
virtual PandaNode * make_copy() const
Returns a newly-allocated PandaNode that is a shallow copy of this one.
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.
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(),...