| 1 |
NAME SoClipPlane SoClpPln "" { clipping plane node } |
| 2 |
|
| 3 |
INCLUDE nodes/SoClipPlane.h |
| 4 |
|
| 5 |
DESC { |
| 6 |
This node clips all subsequent shapes in the scene graph to the |
| 7 |
half-space defined by the \cplane\. field. The half-space is the side |
| 8 |
of the plane in the direction of the plane normal. |
| 9 |
For example, if the plane is positioned at the origin |
| 10 |
and the normal is pointing down the positive X axis, |
| 11 |
everything in the negative X space will be clipped away. |
| 12 |
\p |
| 13 |
Any number of |
| 14 |
clipping planes may be active simultaneously, although the graphics |
| 15 |
library may place a limit on this number during rendering. |
| 16 |
} |
| 17 |
|
| 18 |
FIELD plane { Plane defining half-space. } |
| 19 |
|
| 20 |
FIELD on { Whether clipping plane is active. } |
| 21 |
|
| 22 |
METHOD "" SoClipPlane() { |
| 23 |
Creates a clip plane node with default settings. |
| 24 |
} |
| 25 |
|
| 26 |
METHOD "" static SoType getClassTypeId() { |
| 27 |
Returns type identifier for this class. |
| 28 |
} |
| 29 |
|
| 30 |
ACTION SoGLRenderAction, SoCallbackAction, SoRayPickAction { |
| 31 |
Adds the plane to the current list of clipping planes in the state. |
| 32 |
} |
| 33 |
|
| 34 |
ALSO { SoCamera, SoShapeHints } |