Go to the documentation of this file.
27 PGTop(
const std::string &name) :
42 set_attrib(CullBinAttrib::make(
"unsorted", 0));
60 return new PGTop(*
this);
86 if (_watcher_group !=
nullptr) {
87 _watcher_group->clear_top(
this);
88 old_watcher_group = _watcher_group;
97 pg_trav._sort_index = _start_sort;
105 if (_watcher_group !=
nullptr) {
106 nassertr(_watcher !=
nullptr,
false);
107 _watcher->replace_group(old_watcher_group, _watcher_group);
133 if (_watcher_group !=
nullptr) {
134 _watcher_group->clear_top(
this);
136 if (_watcher !=
nullptr) {
137 _watcher->remove_group(_watcher_group);
141 _watcher_group =
nullptr;
143 if (_watcher !=
nullptr) {
145 _watcher->add_group(_watcher_group);
This TFormer maintains a list of rectangular regions on the screen that are considered special mouse ...
void set_mouse_watcher(MouseWatcher *watcher)
Sets the MouseWatcher pointer that the PGTop object registers its PG items with.
This object performs a depth-first traversal of the scene graph, with optional view-frustum culling,...
TypeHandle is the identifier used to differentiate C++ class types.
virtual void traverse_below(CullTraverserData &data)
Traverses all the children of the indicated node, with the given data, which has been converted into ...
virtual PandaNode * make_copy() const
Returns a newly-allocated Node that is a shallow copy of this one.
void set_attrib(const RenderAttrib *attrib, int override=0)
Adds the indicated render attribute to the scene graph on this node.
The "top" node of the new Panda GUI system.
This collects together the pieces of data that are accumulated for each node while walking the scene ...
This is a special kind of GeometricBoundingVolume that fills all of space.
This is a specialization of CullTraverser for use within the pgui system.
virtual bool cull_callback(CullTraverser *trav, CullTraverserData &data)
This function will be called during the cull traversal to perform any additional operations that shou...
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
virtual void end_traverse()
Should be called when the traverser has finished traversing its scene, this gives it a chance to do a...
void local_object()
This function should be called, once, immediately after creating a new instance of some ReferenceCoun...
virtual bool is_renderable() const
Returns true if there is some value to visiting this particular node during the cull traversal for an...
This is a specialization on MouseWatcherGroup, to associate it with a PGTop.
A basic node of the scene graph or data graph.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.