Inheritance diagram for osg::Group:
Public Member Functions | |
Group () | |
Group (const Group &, const CopyOp ©op=CopyOp::SHALLOW_COPY) | |
META_Node (osg, Group) | |
virtual Group * | asGroup () |
virtual const Group * | asGroup () const |
virtual void | traverse (NodeVisitor &nv) |
virtual bool | addChild (Node *child) |
virtual bool | insertChild (unsigned int index, Node *child) |
virtual bool | removeChild (Node *child) |
virtual bool | removeChild (unsigned int pos, unsigned int numChildrenToRemove=1) |
virtual bool | replaceChild (Node *origChild, Node *newChild) |
unsigned int | getNumChildren () const |
virtual bool | setChild (unsigned int i, Node *node) |
Node * | getChild (unsigned int i) |
const Node * | getChild (unsigned int i) const |
bool | containsNode (const Node *node) const |
unsigned int | getChildIndex (const Node *node) const |
Protected Member Functions | |
virtual | ~Group () |
virtual bool | computeBound () const |
virtual void | childRemoved (unsigned int, unsigned int) |
virtual void | childInserted (unsigned int) |
Protected Attributes | |
NodeList | _children |
|
|
|
Copy constructor using CopyOp to manage deep vs shallow copy. |
|
|
|
Add Node to Group. If node is not NULL and is not contained in Group then increment its reference count, add it to the child list and dirty the bounding sphere to force it to recompute on next getBound() and return true for success. Otherwise return false. Scene nodes can't be added as child nodes. Reimplemented in osg::LOD, osg::PagedLOD, osg::Switch, and osgSim::MultiSwitch. |
|
convert 'const this' into a const Group pointer if Node is a Group, otherwise return 0. Equivalent to dynamic_cast<const Group*>(this). Reimplemented from osg::Node. |
|
convert 'this' into a Group pointer if Node is a Group, otherwise return 0. Equivalent to dynamic_cast<Group*>(this). Reimplemented from osg::Node. |
|
Reimplemented in osg::LOD, and osg::PagedLOD. |
|
Reimplemented in osg::LOD, and osg::PagedLOD. |
|
Compute the bounding sphere around Node's geometry or children. This method is automatically called by getBound() when the bounding sphere has been marked dirty via dirtyBound(). Reimplemented from osg::Node. Reimplemented in osg::ClipNode, osg::Impostor, osg::LightSource, osg::LOD, osg::OccluderNode, and osg::Transform. |
|
Return true if node is contained within Group. |
|
Return child node at position i. |
|
Return child node at position i. |
|
Get the index number of child, return a value between 0 and _children.size()-1 if found, if not found then return _children.size(). |
|
Return the number of chilren nodes. |
|
Insert Node to Group at specific location. The new child node is inserted into the child list before the node at the specified index. No nodes are removed from the group with this operation. Reimplemented in osg::Switch, and osgSim::MultiSwitch. |
|
|
|
|
|
Remove Node from Group. If Node is contained in Group then remove it from the child list, decrement its reference count, and dirty the bounding sphere to force it to recompute on next getBound() and return true for success. If Node is not found then return false and do not change the reference count of the Node. Reimplemented in osg::LOD, osg::PagedLOD, osg::Switch, and osgSim::MultiSwitch. |
|
Replace specified Node with another Node. Equivalent to setChild(getChildIndex(orignChild),node) See docs for setChild for futher details on implementation. |
|
Set child node at position i. Return true if set correctly, false on failure (if node==NULL || i is out of range). When Set can be successful applied, the algorithm is : decrement the reference count origNode and increment the reference count of newNode, and dirty the bounding sphere to force it to recompute on next getBound() and return true. If origNode is not found then return false and do not add newNode. If newNode is NULL then return false and do not remove origNode. Also returns false if newChild is a Scene node. |
|
Traverse downwards : calls children's accept method with NodeVisitor. Reimplemented from osg::Node. Reimplemented in osg::LOD, osg::PagedLOD, osg::Sequence, osg::Switch, osgFX::Effect, osgSim::DOFTransform, osgSim::MultiSwitch, osgSim::VisibilityGroup, and osgTerrain::HeightFieldNode. |
|
|