public class SoGroup extends SoNode
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:
Group {
Action behavior:
SoGLRenderAction, SoCallbackAction, SoGetBoundingBoxAction, SoHandleEventAction, SoRayPickAction
 
 Traverses each child in order.
 
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.
 
See also:
SoArray, SoLevelOfDetail, SoMultipleCopy, SoPathSwitch, SoSeparator, SoSwitch
Inventor.ConstructorCommand| Modifier and Type | Field and Description | 
|---|---|
SoSFBool | 
boundingBoxIgnoring
Whether to ignore this node during bounding box traversal. 
 | 
VERBOSE_LEVEL, ZeroHandle| Constructor and Description | 
|---|
SoGroup()
Creates an empty group node. 
 | 
SoGroup(int nChildren)
Constructor that takes approximate number of children. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
addChild(SoNode child)
Adds a child as last one in group. 
 | 
int | 
findChild(SoNode child)
Finds index of given child within group. 
 | 
SoNode | 
getChild(int index)
Returns pointer the child node with the given index. 
 | 
int | 
getNumChildren()
Returns number of children. 
 | 
void | 
insertChild(SoNode child,
           int newChildIndex)
Adds a child so that it becomes the one with the given index. 
 | 
void | 
removeAllChildren()
Removes all children from group. 
 | 
void | 
removeChild(int index)
Removes child with given index from group. 
 | 
void | 
removeChild(SoNode child)
Removes first instance of given child from group. 
 | 
void | 
replaceChild(int index,
            SoNode newChild)
Replaces child with given index with new child. 
 | 
void | 
replaceChild(SoNode oldChild,
            SoNode newChild)
Replaces first instance of given child with new child. 
 | 
affectsState, callback, copy, copy, distribute, doAction, getAlternateRep, getBoundingBox, getByName, getMatrix, getPrimitiveCount, getRenderUnitID, GLRender, GLRenderBelowPath, GLRenderInPath, GLRenderOffPath, grabEventsCleanup, grabEventsSetup, handleEvent, isBoundingBoxIgnoring, isOverride, pick, rayPick, search, setOverride, touch, writecopyFieldValues, copyFieldValues, enableNotify, fieldsAreEqual, get, getAllFields, getEventIn, getEventOut, getField, getFieldName, hasDefaultValues, isNotifyEnabled, set, setToDefaultsdispose, getEXTERNPROTO, getName, getPROTO, isDisposable, isSynchronizable, setName, setSynchronizablegetAddress, getNativeResourceHandle, startInternalThreads, stopInternalThreadspublic final SoSFBool boundingBoxIgnoring
public SoGroup(int nChildren)
public SoGroup()
public void removeAllChildren()
public void addChild(SoNode child)
public void replaceChild(SoNode oldChild, SoNode newChild)
public void removeChild(int index)
public void replaceChild(int index,
                         SoNode newChild)
public void removeChild(SoNode child)
public SoNode getChild(int index)
public void insertChild(SoNode child, int newChildIndex)
public int getNumChildren()
public int findChild(SoNode child)
Generated on July 23, 2025, Copyright © Thermo Fisher Scientific. All rights reserved. http://www.openinventor.com