File: SoPathSwitch.ivm

package info (click to toggle)
inventor 2.1.5-10-14
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 32,892 kB
  • ctags: 21,729
  • sloc: ansic: 33,867; lisp: 7,361; cpp: 3,874; yacc: 369; sh: 359; perl: 234; awk: 141; makefile: 76; csh: 35; sed: 11
file content (37 lines) | stat: -rw-r--r-- 1,197 bytes parent folder | download | duplicates (12)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
NAME SoPathSwitch SoPathSwitch "" {
group node that traverses only when traversed along a given path
}

INCLUDE nodes/SoPathSwitch.h

DESC {
\cSoPathSwitch\. is a group node that traverses its children only if
the current traversal path matches the \cSoPath\. in the \vpath\.
field. This can be used, for example, to affect only one instance of a
subgraph. The \vpath\. field contains the path up to (but not
including) the \cSoPathSwitch\.. The path need not go all the way back
to the root; if it does not, then only the number of ancestors that
are in the path are compared to see if the children should be
traversed. A NULL path means that the children are never traversed.
}

FIELD path { The path that must match the current traversal path. }

METHOD "" SoPathSwitch() {
Creates a path switch node with default settings.
}

METHOD CreateN SoPathSwitch(int nChildren) {
Constructor that takes approximate number of children.
}

METHOD "" static SoType getClassTypeId() {
Returns type identifier for this class.
}

ACTION SoGLRenderAction, SoCallbackAction,
SoGetBoundingBoxAction, SoRayPickAction, SoHandleEventAction {
Traverses the children if the paths match.
}

ALSO { SoPath, SoSwitch }