Package com.openinventor.inventor.nodes
Class SoMatrixTransform
java.lang.Object
com.openinventor.inventor.Inventor
com.openinventor.inventor.misc.SoBase
com.openinventor.inventor.fields.SoFieldContainer
com.openinventor.inventor.nodes.SoNode
com.openinventor.inventor.nodes.SoTransformation
com.openinventor.inventor.nodes.SoMatrixTransform
- All Implemented Interfaces:
SafeDisposable
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:
-
Nested Class Summary
Nested classes/interfaces inherited from class com.openinventor.inventor.nodes.SoNode
SoNode.RenderModes
Nested classes/interfaces inherited from class com.openinventor.inventor.Inventor
Inventor.ConstructorCommand
-
Field Summary
FieldsFields inherited from class com.openinventor.inventor.Inventor
VERBOSE_LEVEL, ZeroHandle
-
Constructor Summary
ConstructorsConstructorDescriptionCreates a matrix transformation node with default settings. -
Method Summary
Methods inherited from class com.openinventor.inventor.nodes.SoNode
affectsState, callback, copy, copy, distribute, doAction, getAlternateRep, getBoundingBox, getByName, getMatrix, getPrimitiveCount, getRenderEngineMode, getRenderUnitID, GLRender, GLRenderBelowPath, GLRenderInPath, GLRenderOffPath, grabEventsCleanup, grabEventsSetup, handleEvent, isBoundingBoxIgnoring, isOverride, pick, rayPick, search, setOverride, touch, write
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
Methods inherited from class com.openinventor.inventor.Inventor
getNativeResourceHandle
-
Field Details
-
matrix
Transformation matrix.
-
-
Constructor Details
-
SoMatrixTransform
public SoMatrixTransform()Creates a matrix transformation node with default settings.
-