vtGroup Class Reference
[Scene Graph]

Inheritance diagram for vtGroup:

Inheritance graph
[legend]

List of all members.

Public Member Functions

virtual void Release ()
void AddChild (vtNode *pChild)
void RemoveChild (vtNode *pChild)
vtNodeGetChild (unsigned int num) const
unsigned int GetNumChildren () const
const vtNodeFindDescendantByName (const char *name) const
bool ContainsChild (vtNode *pNode) const


Detailed Description

Represents a Group (a node that can have children) in the vtlib Scene Graph.

Member Function Documentation

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.


Generated on Wed Dec 24 13:08:43 2008 for vtlib library by  doxygen 1.5.7.1