Debian Codegraph @

doc/man/man3/ivm/actions/SoAction.ivm

raw
1 NAME SoAction SoAct "" { abstract base class for all actions }
2
3 INCLUDE actions/SoAction.h
4
5 DESC {
6 \cSoAction\. is the abstract base class for all actions. Classes
7 derived from \cSoAction\. define operations to be applied at each node
8 encountered during traversal of a scene graph. The function that gets
9 called to implement the action for a particular node type is
10 determined by a lookup table in the global database.
11 }
12
13 METHOD "" virtual ~SoAction() { Destructor. }
14
15 METHOD "" virtual void apply(SoNode *node) {}
16 METHOD ApplyPath virtual void apply(SoPath *path) {}
17 METHOD ApplyPathList virtual void apply(const SoPathList &pathList,
18 SbBool obeysRules = FALSE) {
19 Initiates an action on the graph defined either by a node, path, or
20 list of paths. TRUE can be passed for the \aobeysRules\. flag if the
21 given path list has the following 4 properties:
22 \b
23 1 - All paths have the same head node
24 2 - Paths are sorted in traversal order
25 3 - If one path ends at node \eA\., no other path
26 continues through \eA\.
27 4 - No two paths are the same
28 \.
29 These rules will be obeyed by path lists returned by picking and by
30 searches for non-group nodes.
31 }
32
33 METHOD "" static SoType getClassTypeId() {
34 Returns the type identifier for this class.
35 }
36
37 METHOD "" virtual SoType getTypeId() {
38 Returns the type identifier for a specific instance.
39 }
40
41 METHOD "" virtual SbBool isOfType(SoType type) {
42 Returns TRUE if this instance is of the type specified in \atype\. or is
43 derived from that type. Otherwise, it returns FALSE. For example,
44 \b\k
45 \+actionPtr->isOfType(SoGetMatrixAction::getClassTypeId())\.
46 \-SoActionIsOfType(actionPtr, SoGetMxActGetClassTypeId())\.
47 \.\.
48 returns TRUE if \aactionPtr\. is an instance of \cSoGetMatrixAction\.
49 or one of its subclasses.
50 }
51
52 METHOD "" virtual void invalidateState() {
53 Invalidates the current traversal state in the action, forcing it to
54 be recreated when the action is next applied. This is typically
55 unnecessary in most applications.
56 }
57
58 ALSO {
59 SoNode,
60 SoPath,
61 SoPathList,
62 SoCallbackAction,
63 SoGLRenderAction,
64 SoGetBoundingBoxAction,
65 SoGetMatrixAction,
66 SoHandleEventAction,
67 SoPickAction,
68 SoRayPickAction,
69 SoSearchAction,
70 SoWriteAction
71 }