| 1 |
NAME SoTransformSeparator SoXfSep "" { |
| 2 |
group node that saves and restores transformation state |
| 3 |
} |
| 4 |
|
| 5 |
INCLUDE nodes/SoTransformSeparator.h |
| 6 |
|
| 7 |
DESC { |
| 8 |
This group node is similar to the \cSoSeparator\. node in that it |
| 9 |
saves state before traversing its children and restores it afterwards. |
| 10 |
However, it saves only the current transformation; all other state is |
| 11 |
left as is. This node can be useful for positioning a camera, since |
| 12 |
the transformations to the camera will not affect the rest of the |
| 13 |
scene, even through the camera will view the scene. Similarly, this |
| 14 |
node can be used to isolate transformations to light sources or other |
| 15 |
objects. |
| 16 |
} |
| 17 |
|
| 18 |
METHOD "" SoTransformSeparator() { |
| 19 |
Creates a transform separator node with default settings. |
| 20 |
} |
| 21 |
|
| 22 |
METHOD CreateN SoTransformSeparator(int nChildren) { |
| 23 |
Constructor that takes approximate number of children. |
| 24 |
} |
| 25 |
|
| 26 |
METHOD "" static SoType getClassTypeId() { |
| 27 |
Returns type identifier for this class. |
| 28 |
} |
| 29 |
|
| 30 |
ACTION SoGLRenderAction, SoCallbackAction, SoGetBoundingBoxAction, |
| 31 |
SoGetMatrixAction, SoRayPickAction { |
| 32 |
Saves the current transformation state, traverses all children, and |
| 33 |
restores the previous transformation state. |
| 34 |
} |
| 35 |
|
| 36 |
ALSO { SoResetTransform, SoTransformation } |