Class SoComposeMatrix
java.lang.Object
com.openinventor.inventor.Inventor
com.openinventor.inventor.misc.SoBase
com.openinventor.inventor.fields.SoFieldContainer
com.openinventor.inventor.engines.SoEngine
com.openinventor.inventor.engines.SoComposeMatrix
- All Implemented Interfaces:
SafeDisposable
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:
-
Nested Class Summary
Nested classes/interfaces inherited from class com.openinventor.inventor.Inventor
Inventor.ConstructorCommand
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal SoMFVec3f
Center point for scaling and rotating.final SoEngineOutput
(SoMFMatrix
) Transformation matrix that transforms from object space into the space specified by the inputs.final SoMFRotation
Rotation.final SoMFVec3f
Scale factors in x, y, and z.final SoMFRotation
Rotational space for scaling.final SoMFVec3f
Translation in x, y, and z.Fields inherited from class com.openinventor.inventor.Inventor
VERBOSE_LEVEL, ZeroHandle
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class com.openinventor.inventor.engines.SoEngine
copy, getByName, getOutput, getOutputName
Methods inherited from class com.openinventor.inventor.fields.SoFieldContainer
copyFieldValues, copyFieldValues, enableNotify, fieldsAreEqual, get, getAllFields, getEventIn, getEventOut, getField, getFieldName, hasDefaultValues, isNotifyEnabled, set, setToDefaults
Methods inherited from class com.openinventor.inventor.misc.SoBase
dispose, getName, isDisposable, isSynchronizable, setName, setSynchronizable, touch
Methods inherited from class com.openinventor.inventor.Inventor
getNativeResourceHandle
-
Field Details
-
translation
Translation in x, y, and z. -
rotation
Rotation. -
scaleFactor
Scale factors in x, y, and z. -
scaleOrientation
Rotational space for scaling. -
center
Center point for scaling and rotating. -
matrix
(SoMFMatrix
) Transformation matrix that transforms from object space into the space specified by the inputs.
-
-
Constructor Details
-
SoComposeMatrix
public SoComposeMatrix()Default Constructor.
-