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
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
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.openinventor.inventor.Inventor
Inventor.ConstructorCommand
-
-
Field Summary
Fields Modifier and Type Field Description SoMFVec3f
center
Center point for scaling and rotating.SoEngineOutput
matrix
(SoMFMatrix
) Transformation matrix that transforms from object space into the space specified by the inputs.SoMFRotation
rotation
Rotation.SoMFVec3f
scaleFactor
Scale factors in x, y, and z.SoMFRotation
scaleOrientation
Rotational space for scaling.SoMFVec3f
translation
Translation in x, y, and z.-
Fields inherited from class com.openinventor.inventor.Inventor
VERBOSE_LEVEL, ZeroHandle
-
-
Constructor Summary
Constructors Constructor Description SoComposeMatrix()
Default Constructor.
-
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 Detail
-
translation
public final SoMFVec3f translation
Translation in x, y, and z.
-
rotation
public final SoMFRotation rotation
Rotation.
-
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.
-
-