55#ifndef _SO_NODE_KIT_PATH_
56#define _SO_NODE_KIT_PATH_
171 void append(
int childIndex);
174 void push(
int childIndex);
#define INVENTOR_API
Disable some annoying warnings on MSVC 6.
Base class for all node kits.
Path that points to a list of hierarchical nodekits.
bool containsNode(SoBaseKit *node) const
Returns TRUE if the passed nodekit is found anywhere in the path chain.
void append(const SoNodeKitPath *fromPath)
Adds all nodekits in fromPath's chain to end of chain; the head node of fromPath must be the same as ...
SoNode * getTail() const
Return the last nodekit in a path chain.
void append(SoBaseKit *childKit)
Adds childKit to end of chain; uses first occurrence of childKit as a part within current last nodeki...
SoNode * getNodeFromTail(int i) const
Returns a pointer to the i'th nodekit in the chain, counting backward from the tail nodekit.
SoNodeKitPath(int approxLength)
Hide the constructor.
int findFork(const SoNodeKitPath *path) const
If the two paths have different head nodes, this returns -1.
void pop()
Pops the last nodekit off the end of the path.
void truncate(int start)
Truncates the path chain, removing all nodes from index start on.
virtual ~SoNodeKitPath()
Destructor.
SoNode * getNode(int i) const
Returns a pointer to the i'th node in the nodekit path.
int getLength() const
Returns length of path chain (number of nodekits).
Abstract base class for all database nodes.
Path that points to a list of hierarchical nodes.
friend INVENTOR_API bool operator==(const SoPath &p1, const SoPath &p2)
Comparison operator: returns TRUE if all nodes in paths are identical.
void insertIndex(SoNode *parent, int newIndex)
This is called when a node in the path chain has a child added.
void append(int childIndex)
Adds node to end of chain; the node is the childIndex'th child of the current tail node.
void replaceIndex(SoNode *parent, int index, SoNode *newChild)
This is called when a node in the path chain replaces a child.
void removeIndex(SoNode *parent, int oldIndex)
This is called when a node in the path chain has a child removed.
int getIndex(int i) const
Return the index of the i'th node (within its parent) in the chain.
void push(int childIndex)
These allow a path to be treated as a stack; they push a node at the end of the chain and pop the las...
int getIndexFromTail(int i) const
Return the index of the i'th node (within its parent) in the chain, counting backward from the tail n...
Searches for nodes in a scene graph.