Base class for all group nodes. More...
#include <Inventor/nodes/SoGroup.h>
Public Member Functions | |
virtual SoType | getTypeId () const |
SoGroup () | |
SoGroup (int nChildren) | |
virtual void | addChild (SoNode *child) |
virtual void | insertChild (SoNode *child, int newChildIndex) |
virtual SoNode * | getChild (int index) const |
virtual int | findChild (const SoNode *child) const |
virtual int | getNumChildren () const |
virtual void | removeChild (int index) |
virtual void | removeChild (SoNode *child) |
virtual void | removeAllChildren () |
virtual void | replaceChild (int index, SoNode *newChild) |
virtual void | replaceChild (SoNode *oldChild, SoNode *newChild) |
Static Public Member Functions | |
static SoType | getClassTypeId () |
Public Attributes | |
SoSFBool | boundingBoxIgnoring |
Base class for all group nodes.
This node defines the base class for all group nodes. SoGroup is a node that contains an ordered list of child nodes. The ordering of the child nodes represents the traversal order for all operations (for example, rendering, picking, and so on). This node is simply a container for the child nodes and does not alter the traversal state in any way. During traversal, state accumulated for a child is passed on to each successive child and then to the parents of the group (SoGroup does not push or pop traversal state as SoSeparator does).
SoGetMatrixAction
Does nothing unless the group is in the middle of the path chain the action is being applied to. If so, the children up to and including the next node in the chain are traversed.
SoSearchAction
If searching for group nodes, compares with this group. Otherwise, continues to search children.
SoWriteAction
Writes out the group node. This method also deals with any field data associated with the group node. As a result, this method is used for most subclasses of SoGroup as well.
SoArray, SoLevelOfDetail, SoMultipleCopy, SoPathSwitch, SoSeparator, SoSwitch
SoGroup::SoGroup | ( | ) |
Creates an empty group node.
SoGroup::SoGroup | ( | int | nChildren | ) |
Constructor that takes approximate number of children.
Space is allocated to contain the specified number of children, but the group does not contain any actual child nodes.
virtual void SoGroup::addChild | ( | SoNode * | child | ) | [virtual] |
Adds a child as last one in group.
Reimplemented in SoExtSelection, and SoVRMLParent.
virtual int SoGroup::findChild | ( | const SoNode * | child | ) | const [virtual] |
virtual SoNode* SoGroup::getChild | ( | int | index | ) | const [virtual] |
Returns pointer the child node with the given index.
Reimplemented in SoVRMLParent.
static SoType SoGroup::getClassTypeId | ( | ) | [static] |
Returns the type identifier for this class.
Reimplemented from SoNode.
Reimplemented in SoGeoLOD, SoVRMLGeoLocation, SoVRMLGeoLOD, SoAnnotation, SoArray, SoBillboard, SoBlinker, SoExtSelection, SoFrontBufferGroup, SoInteractiveSwitch, SoLevelOfDetail, SoLevelOfSimplification, SoLocateHighlight, SoLOD, SoMultiPathSwitch, SoMultipleCopy, SoMultipleInstance, SoMultipleInstanceBase, SoMultiSwitch, SoNurbsGroup, SoOcclusionCulling, SoOctreeOrdering, SoPathSwitch, SoRenderList, SoRenderToTarget, SoSelection, SoSeparator, SoShadowGroup, SoSwitch, SoTransformSeparator, SoValueOrdering, SoVertexAttribFeedback, SoWWWAnchor, SoVRMLAnchor, SoVRMLBillboard, SoVRMLCollision, SoVRMLGroup, SoVRMLLOD, SoVRMLParent, SoVRMLStaticGroup, SoVRMLSwitch, SoVRMLTransform, SoMultiDataSeparator, DicomInfo, Gnomon, PlaneGeometryIntersection, Ruler, SceneView, SliceOrientationMarkers, SliceScaleBar, TextBox, ViewManager, SoScaleVizConfig, SoCSGGroup, SoVolumeClippingGroup, SoVolumeGroup, and SoVolumeMaskGroup.
virtual int SoGroup::getNumChildren | ( | ) | const [virtual] |
Returns number of children.
Reimplemented in SoVRMLParent.
virtual SoType SoGroup::getTypeId | ( | ) | const [virtual] |
Returns the type identifier for this specific instance.
Reimplemented from SoNode.
Reimplemented in SoGeoLOD, SoVRMLGeoLocation, SoVRMLGeoLOD, SoAnnotation, SoArray, SoBillboard, SoBlinker, SoExtSelection, SoFrontBufferGroup, SoInteractiveSwitch, SoLevelOfDetail, SoLevelOfSimplification, SoLocateHighlight, SoLOD, SoMultiPathSwitch, SoMultipleCopy, SoMultipleInstance, SoMultipleInstanceBase, SoMultiSwitch, SoNurbsGroup, SoOcclusionCulling, SoOctreeOrdering, SoPathSwitch, SoRenderList, SoRenderToTarget, SoSelection, SoSeparator, SoShadowGroup, SoSwitch, SoTransformSeparator, SoValueOrdering, SoVertexAttribFeedback, SoWWWAnchor, SoVRMLAnchor, SoVRMLBillboard, SoVRMLCollision, SoVRMLGroup, SoVRMLLOD, SoVRMLParent, SoVRMLStaticGroup, SoVRMLSwitch, SoVRMLTransform, SoMultiDataSeparator, DicomInfo, Gnomon, PlaneGeometryIntersection, Ruler, SceneView, SliceOrientationMarkers, SliceScaleBar, TextBox, ViewManager, SoScaleVizConfig, SoCSGGroup, SoVolumeClippingGroup, SoVolumeGroup, and SoVolumeMaskGroup.
virtual void SoGroup::insertChild | ( | SoNode * | child, | |
int | newChildIndex | |||
) | [virtual] |
Adds a child so that it becomes the one with the given index.
Reimplemented in SoVRMLParent.
virtual void SoGroup::removeAllChildren | ( | ) | [virtual] |
Removes all children from group.
Reimplemented in SoVRMLParent.
virtual void SoGroup::removeChild | ( | SoNode * | child | ) | [inline, virtual] |
Removes first instance of given child from group.
Reimplemented in SoVRMLParent.
virtual void SoGroup::removeChild | ( | int | index | ) | [virtual] |
Removes child with given index from group.
Reimplemented in SoVRMLParent.
Replaces first instance of given child with new child.
Reimplemented in SoVRMLParent.
virtual void SoGroup::replaceChild | ( | int | index, | |
SoNode * | newChild | |||
) | [virtual] |
Replaces child with given index with new child.
Reimplemented in SoVRMLParent.
Whether to ignore this node during bounding box traversal.
Default is FALSE.