|
| SoSearchAction () |
| Constructor. More...
|
|
virtual | ~SoSearchAction () |
| Destructor. More...
|
|
void | reset () |
| Resets options back to default values; clears list of returned paths. More...
|
|
void | setFind (int what) |
| Sets what to look for; what is a bitmask of LookFor enum values. More...
|
|
int | getFind () |
| Returns what to look for. More...
|
|
SoNode * | getNode () const |
| Returns the node to search for. More...
|
|
void | setNode (SoNode *n) |
| Sets the node to search for. More...
|
|
SoType | getType (bool &derivedIsOk) const |
| Gets the node type to search for. More...
|
|
void | setType (SoType t, bool derivedIsOk=TRUE) |
| Sets the node type to search for. More...
|
|
const SbName & | getName () const |
| Sets/returns the name of the node to search for. More...
|
|
void | setName (const SbName &n) |
| Sets/returns the name of the node to search for. More...
|
|
Interest | getInterest () const |
| Sets/returns which paths to return. Default is FIRST. More...
|
|
void | setInterest (Interest i) |
| Sets/returns which paths to return. Default is FIRST. More...
|
|
bool | isSearchingAll () const |
|
void | setSearchingAll (bool flag) |
| Sets/returns whether searching uses regular traversal or whether it traverses every single node. More...
|
|
SoPath * | getPath () const |
| Returns resulting path, or NULL if no path was found. More...
|
|
SoPathList & | getPaths () |
| Returns resulting path list. This should be used if the interest is ALL. More...
|
|
void | setFound () |
| Sets/returns whether action has found all desired nodes. More...
|
|
bool | isFound () const |
|
void | addPath (SoPath *path) |
| Sets found path or adds to list of found paths (depending on interest) More...
|
|
virtual | ~SoAction () |
| Destructor. More...
|
|
virtual SoType | getTypeId () const =0 |
| Returns the type identifier for a specific instance. More...
|
|
bool | isOfType (SoType type) const |
| Returns TRUE if this instance is of the type specified in type or is derived from that type. More...
|
|
virtual void | apply (SoNode *node) |
|
virtual void | apply (SoPath *path) |
|
virtual void | apply (const SoPathList &pathList, bool obeysRules=FALSE) |
| Initiates an action on the graph defined either by a node, path, or list of paths. More...
|
|
virtual void | invalidateState () |
| Invalidates the current traversal state in the action, forcing it to be recreated when the action is next applied. More...
|
|
AppliedCode | getWhatAppliedTo () const |
| Returns code indicating what action is being applied to. More...
|
|
SoNode * | getNodeAppliedTo () const |
| These returns a pointer to the node, path, or path list the action is being applied to. More...
|
|
SoPath * | getPathAppliedTo () const |
|
const SoPathList * | getPathListAppliedTo () const |
| A single path list may be split into several, one for each different head node. More...
|
|
const SoPathList * | getOriginalPathListAppliedTo () const |
|
bool | isLastPathListAppliedTo () const |
|
PathCode | getPathCode (int &numIndices, const int *&indices) |
| Returns path code based on where current node (the node at the end of the current path) lies with respect to the path(s) the action is being applied to. More...
|
|
void | traverse (SoNode *node) |
| Does traversal of a graph rooted by a node. More...
|
|
bool | hasTerminated () const |
| Returns TRUE if the traversal has reached a termination condition. More...
|
|
const SoPath * | getCurPath () |
| Returns a pointer to the path accumulated during traversal, i.e., the chain of nodes from the root of the traversed graph to the current node being traversed. More...
|
|
SoState * | getState () const |
| Get the state from the action. More...
|
|
PathCode | getCurPathCode () const |
| These methods maintain the current path accumulated so far during traversal. More...
|
|
void | pushCurPath (int childIndex) |
|
void | popCurPath (PathCode prevPathCode) |
|
virtual SoNode * | getCurPathTail () |
| This is virtual, so that SoCallbackAction can use current node. More...
|
|
void | usePathCode (int &numIndices, const int *&indices) |
| called by inline getPathCode: More...
|
|
void | pushCurPath () |
| Optimized versions of push/pop when we know path codes won't change: More...
|
|
void | popPushCurPath (int childIndex) |
|
void | popCurPath () |
|
const SoLightweightPath & | getCurrentLightweightPath () const |
| Returns the current "light" path. More...
|
|
void | setCurrentLightweightPath (const SoLightweightPath &path) |
| Sets the current "light" path. More...
|
|
This class is used to search scene graphs for specific nodes, nodes of a specific type, nodes with a specific name, or any combination of these. It can search for just the first or last node satisfying the criteria or for all such nodes. The actions return paths to each node found.
Note that by default nodekits do not search their children when a search action is applied. The man page for SoBaseKit discusses the methods SoBaseKit::isSearchingChildren() and SoBaseKit::setSearchingChildren(), which allow you to query and control this behavior.
- See Also
- SoPath, SoBaseKit
Definition at line 86 of file SoSearchAction.h.