Debian Codegraph @

doc/man/man3/ivm/nodes/SoArray.ivm

raw
1 NAME SoArray "" "" {
2 group node that creates a regular IxJxK array of copies of its children
3 }
4
5 INCLUDE nodes/SoArray.h
6
7 DESC {
8
9 This group node traverses its children, in order, several times,
10 creating a regular 3D array of copies of them. The number of copies
11 in each of the three directions is specified by fields, as are the
12 vectors used to separate the copies in each of the three dimensions.
13 \p
14 For example, an \cSoArray\. node can be used to create a 2x3x4 array
15 of copies of its children, where the separation vectors between
16 adjacent copies in the three array dimensions are (1,2,3), (-4,-5,-6),
17 and (7,8,9), respectively. The base point of the array can be set to
18 one of several values, as described in the \corigin\. field.
19 \p
20 Copies are traversed so that the first dimension cycles most quickly,
21 followed by the second, and then the third. This order is important
22 because \cSoArray\. sets the current switch value to N before
23 traversing the children for the Nth time (for use with inherited
24 switch values - see \cSoSwitch\.).
25 }
26
27 ENUM Origin {
28 FIRST "First copy is rendered at the current local origin;
29 all other copies are distributed relative to it",
30 CENTER "Copies are distributed relative to the center of the array",
31 LAST "Last copy is rendered at the current local origin;
32 all other copies are distributed relative to it"
33 }
34
35 FIELD numElements1 {}
36 FIELD numElements2 {}
37 FIELD numElements3 {
38 Number of elements in each of the three array dimensions.
39 }
40
41 FIELD separation1 {}
42 FIELD separation2 {}
43 FIELD separation3 {
44 Separation vector in each of the three array dimensions.
45 }
46
47 FIELD origin {
48 Defines the base point from which copies are distributed.
49 }
50
51 METHOD "" SoArray() {
52 Creates an array node with default settings.
53 }
54
55 METHOD "" static SoType getClassTypeId() {
56 Returns type identifier for this class.
57 }
58
59 ACTION SoGLRenderAction, SoCallbackAction,
60 SoGetBoundingBoxAction, SoRayPickAction {
61 Traverses all children for each array element, saving and restoring
62 state before and after each traversal.
63 }
64
65 ACTION SoSearchAction {
66 Traverses all children once, setting the inherited switch value to
67 \cSO_SWITCH_ALL\. first.
68 }
69
70 ALSO { SoMultipleCopy, SoSwitch }
71