Class SoRotation

All Implemented Interfaces:
SafeDisposable
Direct Known Subclasses:
SoPendulum, SoRotor

public class SoRotation extends SoTransformation
Node representing a 3D rotation about an arbitrary axis. This node defines a 3D rotation about an arbitrary axis through the origin. The rotation is accumulated into the current transformation, which is applied to subsequent shapes. The rotation field provides a variety of methods for specifying the rotation.

File format/default:

Rotation {

    rotation 0 0 1 0
}

Action behavior:

SoGLRenderAction, SoCallbackAction, SoGetBoundingBoxAction, SoRayPickAction
Accumulates rotation transformation into the current transformation. Sets: SoModelMatrixElement

SoGetMatrixAction
Returns the matrix corresponding to the rotation.

See Also:
  • Field Details

    • rotation

      public final SoSFRotation rotation
      Rotation specification.
  • Constructor Details

    • SoRotation

      public SoRotation()
      Creates a rotation node with default settings.