File: SoGroup.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 (100 lines) | stat: -rw-r--r-- 2,774 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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
NAME SoGroup "" "" { base class for all group nodes }

INCLUDE nodes/SoGroup.h

DESC {
This node defines the base class for all group nodes. \cSoGroup\. is a
node that contains an ordered list of child nodes. The ordering of the
child nodes represents the traversal order for all operations (for
example, rendering, picking, and so on). This node is simply a
container for the child nodes and does not alter the traversal state
in any way. During traversal, state accumulated for a child is passed
on to each successive child and then to the parents of the group
(\cSoGroup\. does not push or pop traversal state as \cSoSeparator\.
does).
}

METHOD "" SoGroup() {
Creates an empty group node.
}

METHOD CreateN SoGroup(int nChildren) {
Constructor that takes approximate number of children. Space is
allocated for pointers to the children, but the group does not contain
any actual child nodes.
}

METHOD "" void addChild(SoNode *child) {
Adds a child as last one in group.
}

METHOD "" void insertChild(SoNode *child, int newChildIndex) {
Adds a child so that it becomes the one with the given index.
}

METHOD "" SoNode * getChild(int index) const {
Returns pointer to child node with the given index.
}

METHOD "" int findChild(const SoNode *child) const {
Finds index of given child within group. Returns -1 if not found.
}

METHOD "" int getNumChildren() const {
Returns number of children.
}

METHOD "" void removeChild(int index) {
Removes child with given index from group.
}

METHOD RemoveChildNode void removeChild(SoNode *child) {
Removes first instance of given child from group.
}

METHOD "" void removeAllChildren() {
Removes all children from group.
}

METHOD "" void replaceChild(int index, SoNode *newChild) {
Replaces child with given index with new child.
}

METHOD ReplaceChildNode void replaceChild(SoNode *oldChild, SoNode *newChild) {
Replaces first instance of given child with new child.
}

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

ACTION SoGLRenderAction, SoCallbackAction, SoGetBoundingBoxAction,
       SoHandleEventAction, SoRayPickAction {
Traverses each child in order.
}

ACTION SoGetMatrixAction {
Does nothing unless the group is in the middle of the path chain the
action is being applied to. If so, the children up to and including
the next node in the chain are traversed.
}

ACTION SoSearchAction {
If searching for group nodes, compares with this group. Otherwise,
continues to search children.
}

ACTION SoWriteAction {
Writes out the group node. This method also deals with any field data
associated with the group node. As a result, this method is used for
most subclasses of \cSoGroup\. as well.
}

ALSO {
SoArray,
SoLevelOfDetail,
SoMultipleCopy,
SoPathSwitch,
SoSeparator,
SoSwitch
}