Class SoMatrixTransform

All Implemented Interfaces:
SafeDisposable

public class SoMatrixTransform extends SoTransformation
Node that specifies a 3D geometric transformation as a matrix. This node defines a geometric 3D transformation with a single SbMatrix. Note that some matrices (such as singular ones) may result in errors in bounding boxes, picking, and lighting.

File format/default:

MatrixTransform {

    matrix 1 0 0 0
    0 1 0 0
    0 0 1 0
    0 0 0 1
}

Action behavior:

SoGLRenderAction, SoCallbackAction, SoGetBoundingBoxAction, SoRayPickAction
Concatenates matrix given in the matrix field with the current transformation matrix. Sets: SoModelMatrixElement

SoGetMatrixAction
Returns transformation matrix specified in the matrix field.

See Also:
  • Field Details

    • matrix

      public final SoSFMatrix matrix
      Transformation matrix.
  • Constructor Details

    • SoMatrixTransform

      public SoMatrixTransform()
      Creates a matrix transformation node with default settings.