Abstract base class for all VRML grouping nodes that have children. More...
#include <Inventor/VRMLnodes/SoVRMLParent.h>
Public Member Functions | |
virtual SoType | getTypeId () const |
virtual SbBool | affectsState () const |
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) |
virtual SoChildList * | getChildren () const |
Static Public Member Functions | |
static SoType | getClassTypeId () |
Public Attributes | |
SoMFNode | children |
SoSFNode | metadata |
SoSFVec3f | bboxCenter |
SoSFVec3f | bboxSize |
The SoVRMLParent node is the abstract base class for all VRML grouping nodes that have children.
NOTE: This class does not exist in Open Inventor 10.0 and later.SoMFNode | addChildren |
SoMFNode | removeChildren |
SoMFNode | set_children |
SoSFNode | set_metadata |
SoMFNode | children_changed |
SoSFNode | metadata_changed |
virtual void SoVRMLParent::addChild | ( | SoNode * | child | ) | [virtual] |
Adds a child as last one in group.
Reimplemented from SoGroup.
virtual SbBool SoVRMLParent::affectsState | ( | ) | const [virtual] |
Returns TRUE if a node has an effect on the state during traversal.
The default method returns TRUE. Node classes (such as SoSeparator) that isolate their effects from the rest of the graph override this method to return FALSE.
Reimplemented from SoNode.
Reimplemented in SoVRMLLOD, and SoVRMLSwitch.
virtual int SoVRMLParent::findChild | ( | const SoNode * | child | ) | const [virtual] |
Finds index of given child within group.
Reimplemented from SoGroup.
virtual SoNode* SoVRMLParent::getChild | ( | int | index | ) | const [virtual] |
Returns the nth child node.
Reimplemented from SoGroup.
virtual SoChildList* SoVRMLParent::getChildren | ( | ) | const [virtual] |
Reimplemented from SoGroup.
static SoType SoVRMLParent::getClassTypeId | ( | ) | [static] |
Returns the type identifier for this class.
Reimplemented from SoGroup.
Reimplemented in SoVRMLGeoLocation, SoVRMLGeoLOD, SoVRMLAnchor, SoVRMLBillboard, SoVRMLCollision, SoVRMLGroup, SoVRMLLOD, SoVRMLSwitch, and SoVRMLTransform.
virtual int SoVRMLParent::getNumChildren | ( | ) | const [virtual] |
Returns number of children.
Reimplemented from SoGroup.
virtual SoType SoVRMLParent::getTypeId | ( | ) | const [virtual] |
Returns the type identifier for this specific instance.
Reimplemented from SoGroup.
Reimplemented in SoVRMLGeoLocation, SoVRMLGeoLOD, SoVRMLAnchor, SoVRMLBillboard, SoVRMLCollision, SoVRMLGroup, SoVRMLLOD, SoVRMLSwitch, and SoVRMLTransform.
virtual void SoVRMLParent::insertChild | ( | SoNode * | child, | |
int | newChildIndex | |||
) | [virtual] |
Adds a child so that it becomes the one with the given index.
Reimplemented from SoGroup.
virtual void SoVRMLParent::removeAllChildren | ( | ) | [virtual] |
Removes all children from group.
Reimplemented from SoGroup.
virtual void SoVRMLParent::removeChild | ( | SoNode * | child | ) | [inline, virtual] |
Removes first instance of given child from group.
Reimplemented from SoGroup.
virtual void SoVRMLParent::removeChild | ( | int | index | ) | [virtual] |
Removes child with given index from group.
Reimplemented from SoGroup.
Replaces first instance of given child with new child.
Reimplemented from SoGroup.
virtual void SoVRMLParent::replaceChild | ( | int | index, | |
SoNode * | newChild | |||
) | [virtual] |
Replaces child with given index with new child.
Reimplemented from SoGroup.
The bboxCenter and bboxSize fields specify a bounding box that encloses the SoVRMLParent's children.
This is a hint that may be used for optimization purposes. If the specified bounding box is smaller than the actual bounding box of the children at any time, then the results are undefined. A default bboxSize value, (-1 -1 -1), implies that the bounding box is not specified.
The bboxCenter and bboxSize fields specify a bounding box that encloses the SoVRMLParents's children.
See bboxCenter for details.
Field that contains a list of children nodes.
Reimplemented from SoGroup.
Specifies the metadata node.