| 1 |
NAME SoMultipleCopy SoMultCopy "" { |
| 2 |
group node that traverses multiple times, applying matrices |
| 3 |
} |
| 4 |
|
| 5 |
INCLUDE nodes/SoMultipleCopy.h |
| 6 |
|
| 7 |
DESC { |
| 8 |
This group node traverses its children, in order, several times, |
| 9 |
applying a different matrix each time. The matrices are stored in the |
| 10 |
multiple-value \vmatrix\. field. Each matrix is concatenated to the |
| 11 |
current transformation matrix, and all of the children are traversed. |
| 12 |
This allows the user to put multiple copies of the same data in |
| 13 |
different locations easily and efficiently. |
| 14 |
\p |
| 15 |
Traversing the \aN\.th child sets the current switch value to \aN\., for use |
| 16 |
with inherited switch values (see \cSoSwitch\.). |
| 17 |
} |
| 18 |
|
| 19 |
FIELD matrix { Set of matrices to apply to children. } |
| 20 |
|
| 21 |
METHOD "" SoMultipleCopy() { |
| 22 |
Creates a multiple copy node with default settings. |
| 23 |
} |
| 24 |
|
| 25 |
METHOD "" static SoType getClassTypeId() { |
| 26 |
Returns type identifier for this class. |
| 27 |
} |
| 28 |
|
| 29 |
ACTION SoGLRenderAction, SoCallbackAction, |
| 30 |
SoGetBoundingBoxAction, SoRayPickAction { |
| 31 |
Traverses all children for each matrix, saving and restoring state |
| 32 |
before and after each traversal. |
| 33 |
} |
| 34 |
|
| 35 |
ACTION SoSearchAction { |
| 36 |
Traverses all children once, setting the inherited switch value to |
| 37 |
\kSO_SWITCH_ALL\. first. |
| 38 |
} |
| 39 |
|
| 40 |
ALSO { SoArray, SoSwitch } |