Coin
4.0.3
Coin3D core library
|
The SoChildList class is a container for node children. More...
#include <Inventor/misc/SoChildList.h>
Additional Inherited Members | |
Protected Member Functions inherited from SbPList | |
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 ) |
Copy constructor.
SoChildList::~SoChildList | ( | ) |
Destructor.
Notify path whenever this list of node children changes.
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.
Overloaded from parent to accept an SoNode pointer argument.
void SoChildList::copy | ( | const SoChildList & | cl | ) |
Copy contents of cl into this list.
Overloaded from parent to handle notification.
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.
Overloaded from parent to accept an SoNode pointer argument.
Remove the item at index, moving all subsequent items downwards one place in the list.
Automatically notifies parent node and any SoPath instances auditing paths with nodes from this list.
Overloaded from parent to handle notification.
Remove path as an auditor for our list of node children.
Index operator to set element at index. Does not expand array bounds if index is outside the list.
Overloaded from parent to handle notification.
Traverse all nodes in the list, invoking their methods for the given action.
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.
Traverse the node at index (and possibly its children, if it is a group node), applying the node's method for the given action.
Traverse the node (and possibly its children, if it is a group node), applying the nodes method for the given action.
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.
Shorten the list to contain length elements, removing items from index length and onwards.
If fit is non-zero, will also shrink the internal size of the allocated array. Note that this is much less efficient than not re-fitting the array size.
Overloaded from parent to handle notification.