Class SoComposeMatrix

  • All Implemented Interfaces:
    SafeDisposable

    public class SoComposeMatrix
    extends SoEngine
    Composes a transformation matrix. This engine has inputs that specify values for translation, rotation, scale, and center of transformation. As output, it produces a transformation matrix that transforms objects into the space specified by the scale, rotation, and translation inputs (in that order).

    The input fields can have multiple values, allowing the engine to compose several matrices in parallel. Some inputs may have more values than others. In such cases, the last value of the shorter inputs will be repeated as necessary.

    File format/default:

    ComposeMatrix {

      translation 0 0 0
      rotation 0 0 1 0
      scaleFactor 1 1 1
      scaleOrientation 0 0 1 0
      center 0 0 0
    }

    See Also:
    SoDecomposeMatrix, SoEngineOutput
    • Field Detail

      • translation

        public final SoMFVec3f translation
        Translation in x, y, and z.
      • scaleFactor

        public final SoMFVec3f scaleFactor
        Scale factors in x, y, and z.
      • scaleOrientation

        public final SoMFRotation scaleOrientation
        Rotational space for scaling.
      • center

        public final SoMFVec3f center
        Center point for scaling and rotating.
      • matrix

        public final SoEngineOutput matrix
        ( SoMFMatrix ) Transformation matrix that transforms from object space into the space specified by the inputs.
    • Constructor Detail

      • SoComposeMatrix

        public SoComposeMatrix()
        Default Constructor.