![]() |
http://www.sim.no http://www.coin3d.org |
The SoChildList class is a container for node children. More...
#include <Inventor/misc/SoChildList.h>
Additional Inherited Members | |
![]() | |
void | expand (const int size) |
int | getArraySize (void) const |
The SoChildList class is a container for node children.
This class does automatic notification on the parent nodes upon adding or removing children.
Methods for action traversal of the children are also provided.
Default constructor, sets parent container and initializes a minimal list.
Constructor with hint about list size.
SoChildList::SoChildList | ( | SoNode *const | parentptr, |
const SoChildList & | cl ) |
SoChildList::~SoChildList | ( | ) |
Destructor.
Append a new node instance as a child of our parent container.
Automatically notifies parent node and any SoPath instances auditing paths with nodes from this list.
References SoBase::addAuditor(), SoNodeList::append(), and SoNode::startNotify().
Referenced by SoFile::copyContents(), SoNodeKitListPart::setContainerType(), SoClipPlaneManip::setDragger(), SoDirectionalLightManip::setDragger(), SoPointLightManip::setDragger(), SoSpotLightManip::setDragger(), SoTransformManip::setDragger(), SoBaseKit::setPart(), and SoNodeKitListPart::SoNodeKitListPart().
Insert a new node instance as a child of our parent container at position addbefore.
Automatically notifies parent node and any SoPath instances auditing paths with nodes from this list.
References SoBase::addAuditor(), SbList< Type >::getLength(), SbPList::getLength(), SbPList::insert(), and SoNode::startNotify().
Referenced by SoBaseKit::setPart().
Remove the child node pointer at index.
Automatically notifies parent node and any SoPath instances auditing paths with nodes from this list.
References SbList< Type >::getLength(), SbPList::getLength(), SoNodeList::operator[](), SbPList::remove(), SoBase::removeAuditor(), and SoNode::startNotify().
Referenced by SoNodeKitListPart::setContainerType(), SoClipPlaneManip::setDragger(), SoDirectionalLightManip::setDragger(), SoPointLightManip::setDragger(), SoSpotLightManip::setDragger(), SoTransformManip::setDragger(), and SoBaseKit::setPart().
void SoChildList::copy | ( | const SoChildList & | cl | ) |
Copy contents of cl into this list.
References SoBaseList::copy(), SbPList::getLength(), and SoNode::startNotify().
Referenced by SoFile::readNamedFile(), and SoChildList().
Index operator to set element at index. Does not expand array bounds if index is outside the list.
References SoBase::addAuditor(), SbList< Type >::getLength(), SbPList::getLength(), SoNodeList::operator[](), SoDebugError::postInfo(), SoBase::removeAuditor(), SoBaseList::set(), and SoNode::startNotify().
Referenced by SoDirectionalLightManip::setDragger(), SoPointLightManip::setDragger(), SoSpotLightManip::setDragger(), SoTransformManip::setDragger(), and SoBaseKit::setPart().
void SoChildList::traverseInPath | ( | SoAction *const | action, |
const int | numindices, | ||
const int * | indices ) |
Optimized IN_PATH traversal method.
This method is an extension versus the Open Inventor API.
References SoNode::affectsState(), SoAction::getCurPathCode(), SoAction::hasTerminated(), SoAction::popCurPath(), SoAction::pushCurPath(), and SoAction::traverse().
Referenced by SoClipPlaneManip::doAction(), SoDirectionalLightManip::doAction(), SoPointLightManip::doAction(), SoSpotLightManip::doAction(), SoTransformManip::doAction(), SoBaseKit::doAction(), SoNodeKitListPart::doAction(), SoFile::doAction(), SoLOD::doAction(), SoSwitch::doAction(), SoClipPlaneManip::getMatrix(), SoDirectionalLightManip::getMatrix(), SoPointLightManip::getMatrix(), SoSpotLightManip::getMatrix(), SoTransformManip::getMatrix(), SoBaseKit::getMatrix(), SoNodeKitListPart::getMatrix(), SoSeparator::getMatrix(), and SoTransformSeparator::getMatrix().
Traverse all nodes in the list, invoking their methods for the given action.
References SbPList::getLength(), and traverse().
Referenced by SoClipPlaneManip::doAction(), SoDirectionalLightManip::doAction(), SoPointLightManip::doAction(), SoSpotLightManip::doAction(), SoTransformManip::doAction(), SoBaseKit::doAction(), SoNodeKitListPart::doAction(), SoFile::doAction(), SoLOD::doAction(), SoSwitch::doAction(), SoClipPlaneManip::getBoundingBox(), SoDirectionalLightManip::getBoundingBox(), SoPointLightManip::getBoundingBox(), SoSpotLightManip::getBoundingBox(), SoTransformManip::getBoundingBox(), SoBaseKit::getBoundingBox(), SoNodeKitListPart::getBoundingBox(), SoClipPlaneManip::getMatrix(), SoDirectionalLightManip::getMatrix(), SoPointLightManip::getMatrix(), SoSpotLightManip::getMatrix(), SoTransformManip::getMatrix(), SoBaseKit::getMatrix(), SoNodeKitListPart::getMatrix(), SoSwitch::search(), traverse(), traverse(), traverse(), and SoBaseKit::write().
Traverse the node at index (and possibly its children, if its a group node), applying the nodes' method for the given action.
References SbPList::getLength(), and traverse().
Traverse the node (and possibly its children, if its a group node), applying the nodes' method for the given action.
References SbPList::find(), and traverse().
Traverse child nodes in the list from index first up to and including index last, or until the SoAction::hasTerminated() flag of action has been set.
References SoNode::affectsState(), SoAction::getCurPathCode(), SbPList::getLength(), SoAction::hasTerminated(), SoAction::popCurPath(), SoAction::popPushCurPath(), SoDebugError::postWarning(), SoAction::pushCurPath(), and SoAction::traverse().
Notify path whenever this list of node children changes.
References SbList< Type >::append(), and SoDebugError::postInfo().
Remove path as an auditor for our list of node children.
References SbList< Type >::find(), SoBase::getTypeId(), SoDebugError::post(), SoDebugError::postInfo(), and SbList< Type >::remove().
Copyright © 1998-2007 by Systems in Motion AS. All rights reserved.
Generated on Mon Jan 22 2024 for Coin by Doxygen. 1.10.0