16 #include "pgMouseWatcherGroup.h"
17 #include "pgCullTraverser.h"
18 #include "cullBinAttrib.h"
20 #include "omniBoundingVolume.h"
30 PGTop(
const string &name) :
46 set_attrib(CullBinAttrib::make(
"unsorted", 0));
69 return new PGTop(*
this);
103 _watcher_group->clear_top(
this);
104 old_watcher_group = _watcher_group;
114 pg_trav._sort_index = _start_sort;
125 _watcher->replace_group(old_watcher_group, _watcher_group);
160 _watcher_group->clear_top(
this);
163 _watcher->remove_group(_watcher_group);
171 _watcher->add_group(_watcher_group);
The "top" node of the new Panda GUI system.
This TFormer maintains a list of rectangular regions on the screen that are considered special mouse ...
A basic node of the scene graph or data graph.
virtual void end_traverse()
Should be called when the traverser has finished traversing its scene, this gives it a chance to do a...
virtual void traverse_below(CullTraverserData &data)
Traverses all the children of the indicated node, with the given data, which has been converted into ...
This collects together the pieces of data that are accumulated for each node while walking the scene ...
virtual PandaNode * make_copy() const
Returns a newly-allocated Node that is a shallow copy of this one.
void set_final(bool flag)
Sets the "final" flag on this PandaNode.
virtual bool cull_callback(CullTraverser *trav, CullTraverserData &data)
This function will be called during the cull traversal to perform any additional operations that shou...
This is a specialization on MouseWatcherGroup, to associate it with a PGTop.
This is a specialization of CullTraverser for use within the pgui system.
void set_attrib(const RenderAttrib *attrib, int override=0)
Adds the indicated render attribute to the scene graph on this node.
void local_object()
This function should be called, once, immediately after creating a new instance of some ReferenceCoun...
This is a special kind of GeometricBoundingVolume that fills all of space.
virtual bool is_renderable() const
Returns true if there is some value to visiting this particular node during the cull traversal for an...
TypeHandle is the identifier used to differentiate C++ class types.
This object performs a depth-first traversal of the scene graph, with optional view-frustum culling...
void set_mouse_watcher(MouseWatcher *watcher)
Sets the MouseWatcher pointer that the PGTop object registers its PG items with.