File: SoSwitch.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 (50 lines) | stat: -rw-r--r-- 1,678 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
38
39
40
41
42
43
44
45
46
47
48
49
50
NAME SoSwitch SoSwitch "" { group node that traverse one chosen child }

INCLUDE nodes/SoSwitch.h

DESC {
This group node usually traverses only one or none of its children.
It implements an operation similar to the \kswitch\. statement in C.
One can use this node to switch on and off the effects of some
properties or to switch between different properties.
\p
The \vwhichChild\. field specifies the index of the child to traverse,
where the first child has index 0.
\p
A value of \kSO_SWITCH_NONE\. (-1, the default) means do not traverse
any children. A value of \kSO_SWITCH_INHERIT\. (-2) allows the index
to be inherited from a previously-encountered \cSoSwitch\. node or
from certain other nodes (such as \cSoArray\. or \cSoMultipleCopy\.)
that set the switch value. A value of \kSO_SWITCH_ALL\. (-3) traverses
all children, making the switch behave exactly like a regular
\cSoGroup\..
}

FIELD whichChild {
Index of the child to traverse, or one of \kSO_SWITCH_NONE\.,
\kSO_SWITCH_INHERIT\., or \kSO_SWITCH_ALL\..
}

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

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

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

ACTION SoGLRenderAction, SoCallbackAction, SoGetBoundingBoxAction,
       SoGetMatrixAction, SoHandleEventAction, SoRayPickAction {
Traverses the chosen child or children.
}

ACTION SoSearchAction {
If the action's Searching-All flag is set, always traverses all
children.  Otherwise, traverses just the chosen child or children.
}

ALSO { SoArray, SoLevelOfDetail, SoMultipleCopy, SoPathSwitch }