
Public Member Functions | |
| virtual void | Release () |
| void | AddChild (vtNode *pChild) |
| void | RemoveChild (vtNode *pChild) |
| vtNode * | GetChild (unsigned int num) const |
| unsigned int | GetNumChildren () const |
| const vtNode * | FindDescendantByName (const char *name) const |
| bool | ContainsChild (vtNode *pNode) const |
| void vtGroup::AddChild | ( | vtNode * | pChild | ) | [virtual] |
Add a node as a child of this Group.
Implements vtGroupBase.
| bool vtGroup::ContainsChild | ( | vtNode * | pNode | ) | const [virtual] |
Return true if the given node is a child of this group.
Implements vtGroupBase.
| const vtNode * vtGroup::FindDescendantByName | ( | const char * | name | ) | const [virtual] |
Looks for a descendent node with a given name. If not found, NULL is returned.
Implements vtGroupBase.
| vtNode * vtGroup::GetChild | ( | unsigned int | num | ) | const [virtual] |
Return a child node, by index.
Implements vtGroupBase.
| unsigned int vtGroup::GetNumChildren | ( | ) | const [virtual] |
Return the number of child nodes
Implements vtGroupBase.
| void vtGroup::Release | ( | ) | [virtual] |
Releases a node. Use this method instead of C++'s delete operator when you are done with a node. Internally, the node is reference counted so it is not deleted until all references to it are removed.
Reimplemented from vtNode.
Reimplemented in vtLodGrid, vtSimpleLodGrid, vtPagedStructureLOD, vtPagedStructureLodGrid, vtTransform, vtFog, vtShadow, vtLOD, and vtHUD.
| void vtGroup::RemoveChild | ( | vtNode * | pChild | ) | [virtual] |
Remove a node as a child of this Group. If the indicated node is not a child, then this method has no effect.
Implements vtGroupBase.
1.5.7.1