Class SoResetTransform

All Implemented Interfaces:
SafeDisposable

public class SoResetTransform extends SoTransformation
Node that resets the current transformation to identity. This node resets the current transformation to identity. It can be used to apply an absolute world space transformation afterwards, such as translating to a specific point from within a hierarchy. An SoResetTransform node should probably be used under an SoSeparator or SoTransformSeparator so it won't change transformations for the rest of the scene graph. An SoResetTransform node can also be used to reset the current bounding box to empty during traversal of an SoGetBoundingBoxAction, if the whatToReset field has the BBOX bit set.

CAUTION: Picking on a shape below an SoResetTransform may fail if bounding box caching is enabled (default). Bounding box caching is set using SoSeparator.

Clipping and culling anomalies may also occur.

File format/default:

ResetTransform {

    whatToReset TRANSFORM
}

Action behavior:

SoGLRenderAction, SoCallbackAction, SoRayPickAction
If specified, resets current transformation matrix to identity. Sets: SoModelMatrixElement, SoUnitsElement

SoGetBoundingBoxAction
If specified, resets current transformation matrix to identity and current computed bounding box to be empty. Sets: SoBBoxModelMatrixElement

SoGetMatrixAction
Returns identity matrix.

See Also:
  • Field Details

  • Constructor Details

    • SoResetTransform

      public SoResetTransform()
      Creates a reset transformation node with default settings.