SoGroup Class Reference
[Groups]

Base class for all group nodes. More...

#include <Inventor/nodes/SoGroup.h>

Inheritance diagram for SoGroup:
SoNode SoFieldContainer SoBase SoRefCounter SoTypedObject SoArray SoGeoLOD SoLevelOfDetail SoLOD SoMultiPathSwitch SoMultipleCopy SoMultipleInstanceBase SoMultiSwitch SoNurbsGroup SoPathSwitch SoSeparator SoShadowGroup SoSwitch SoTransformSeparator SoVolumeClippingGroup SoVolumeMaskGroup ViewManager

List of all members.

Public Member Functions

virtual SoType getTypeId () const
 SoGroup ()
 SoGroup (int nChildren)
virtual void addChild (SoNode *child)
virtual void insertChild (SoNode *child, int newChildIndex)
virtual SoNodegetChild (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

Detailed Description

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).

FILE FORMAT/DEFAULT

ACTION BEHAVIOR

SEE ALSO

SoArray, SoLevelOfDetail, SoMultipleCopy, SoPathSwitch, SoSeparator, SoSwitch


Constructor & Destructor Documentation

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.


Member Function Documentation

virtual void SoGroup::addChild ( SoNode child  )  [virtual]

Adds a child as last one in group.

Reimplemented in SoExtSelection.

virtual int SoGroup::findChild ( const SoNode child  )  const [virtual]

Finds index of given child within group.

Returns -1 if not found.

virtual SoNode* SoGroup::getChild ( int  index  )  const [virtual]

Returns pointer the child node with the given index.

static SoType SoGroup::getClassTypeId (  )  [static]
virtual int SoGroup::getNumChildren (  )  const [virtual]

Returns number of children.

virtual SoType SoGroup::getTypeId (  )  const [virtual]
virtual void SoGroup::insertChild ( SoNode child,
int  newChildIndex 
) [virtual]

Adds a child so that it becomes the one with the given index.

virtual void SoGroup::removeAllChildren (  )  [virtual]

Removes all children from group.

virtual void SoGroup::removeChild ( SoNode child  )  [inline, virtual]

Removes first instance of given child from group.

virtual void SoGroup::removeChild ( int  index  )  [virtual]

Removes child with given index from group.

virtual void SoGroup::replaceChild ( SoNode oldChild,
SoNode newChild 
) [inline, virtual]

Replaces first instance of given child with new child.

virtual void SoGroup::replaceChild ( int  index,
SoNode newChild 
) [virtual]

Replaces child with given index with new child.


Member Data Documentation

Whether to ignore this node during bounding box traversal.

Default is FALSE.


The documentation for this class was generated from the following file:

Open Inventor Toolkit reference manual, generated on 28 Oct 2019
Copyright © Thermo Fisher Scientific All rights reserved.
http://www.openinventor.com/