Debian Codegraph @

doc/man/man3/ivm/nodes/SoPathSwitch.ivm

raw
1 NAME SoPathSwitch SoPathSwitch "" {
2 group node that traverses only when traversed along a given path
3 }
4
5 INCLUDE nodes/SoPathSwitch.h
6
7 DESC {
8 \cSoPathSwitch\. is a group node that traverses its children only if
9 the current traversal path matches the \cSoPath\. in the \vpath\.
10 field. This can be used, for example, to affect only one instance of a
11 subgraph. The \vpath\. field contains the path up to (but not
12 including) the \cSoPathSwitch\.. The path need not go all the way back
13 to the root; if it does not, then only the number of ancestors that
14 are in the path are compared to see if the children should be
15 traversed. A NULL path means that the children are never traversed.
16 }
17
18 FIELD path { The path that must match the current traversal path. }
19
20 METHOD "" SoPathSwitch() {
21 Creates a path switch node with default settings.
22 }
23
24 METHOD CreateN SoPathSwitch(int nChildren) {
25 Constructor that takes approximate number of children.
26 }
27
28 METHOD "" static SoType getClassTypeId() {
29 Returns type identifier for this class.
30 }
31
32 ACTION SoGLRenderAction, SoCallbackAction,
33 SoGetBoundingBoxAction, SoRayPickAction, SoHandleEventAction {
34 Traverses the children if the paths match.
35 }
36
37 ALSO { SoPath, SoSwitch }