50#ifndef _SO_SEARCH_ACTION_
51#define _SO_SEARCH_ACTION_
53#include <Inventor/actions/SoSubAction.h>
285#ifndef HIDDEN_FROM_DOC
332 { derivedIsOk = derivedOk;
return type; }
391 virtual void setFound();
395 void addPath(
SoPath *path);
399 static void initClass();
400 static void exitClass();
405 static SbBool duringSearchAll;
410 virtual void beginTraversal(
SoNode *node);
Character string stored in a hash table.
Abstract base class for all actions.
SbBool hasTerminated() const
Returns TRUE if the traversal has reached a termination condition.
Abstract base class for all database nodes.
Path that points to a list of hierarchical nodes.
Maintains a list of pointers to paths.
Searches for nodes in a scene graph.
void setFind(int what)
Sets what to look for; what is a bitmask of LookFor enum values.
void setType(SoType t, SbBool derivedIsOk=TRUE)
Sets the node type to search for.
SbBool isSearchingAll() const
Returns FALSE if searching uses regular traversal, TRUE if it traverses every single node.
int getFind()
Returns what to look for.
virtual void reset()
Resets options back to default values; clears list of returned paths.
SoSearchAction()
Constructor.
Interest
Enum that defines which paths to return.
@ FIRST
Return only the first path found (default)
@ ALL
Return all paths found.
@ LAST
Return only the last path found.
LookFor
Enum that defines the search criterion.
@ NODE
Search for a particular node instance.
@ TYPE
Search for a particular type of node.
@ NAME
Search for a node with a particular name.
SoPathList & getPaths()
Returns resulting path list.
virtual void clearApplyResult()
When applied, an action may reference nodes or create objects (e.g.
SoPath * getPath() const
Returns resulting path, or NULL if no path was found.
const SbName & getName() const
Returns the name of the node to search for.
void setInterest(Interest i)
Sets which paths to return.
SoType getType(SbBool &derivedIsOk) const
Returns the node type to search for.
void setName(const SbName &n)
Sets the name of the node to search for.
void setSearchingAll(SbBool flag)
Sets whether searching uses regular traversal or whether it traverses every single node.
void setNode(SoNode *n)
Sets the node to search for.
SoNode * getNode() const
Returns the node to search for.
Interest getInterest() const
Returns which paths to return.
Stores runtime type information.