#include <Inventor/misc/SoChildList.h>
Inheritance diagram for SoChildList:
Public Member Functions | |
SoChildList (SoNode *const parent) | |
SoChildList (SoNode *const parent, const int size) | |
SoChildList (SoNode *const parent, const SoChildList &cl) | |
~SoChildList () | |
void | append (SoNode *const node) |
void | insert (SoNode *const ptr, const int addbefore) |
void | remove (const int index) |
void | truncate (const int length) |
void | copy (const SoChildList &cl) |
void | set (const int index, SoNode *const node) |
void | traverseInPath (SoAction *const action, const int numindices, const int *indices) |
void | traverse (SoAction *const action) |
void | traverse (SoAction *const action, const int index) |
void | traverse (SoAction *const action, SoNode *node) |
void | traverse (SoAction *const action, const int first, const int last) |
void | addPathAuditor (SoPath *const path) |
void | removePathAuditor (SoPath *const path) |
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.
|
|
Copy constructor.
|
|
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. Reimplemented from SoNodeList. |
|
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. |
|
Remove the child node pointer at index. Automatically notifies parent node and any SoPath instances auditing paths with nodes from this list. Reimplemented from SoBaseList. |
|
Makes the list contain only the length first items, removing all items from index length and onwards to the end of the list. Dereferences the objects to be removed (unless addReferences() has been set to
Reimplemented from SoBaseList. |
|
Copy contents of cl into this list. |
|
Index operator to set element at index. Does not expand array bounds if index is outside the list. |
|
Optimized IN_PATH traversal method. This method is an extension versus the Open Inventor API. |
|
Traverse all nodes in the list, invoking their methods for the given action. |
|
Traverse the node at index (and possibly its children, if its a group node), applying the nodes' method for the given action. |
|
Traverse the node (and possibly its children, if its a group node), applying the nodes' method 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. |
|
Notify path whenever this list of node children changes. |
|
Remove path as an auditor for our list of node children. |