Package com.openinventor.inventor.nodes
Class SoRotationXYZ
- java.lang.Object
-
- All Implemented Interfaces:
SafeDisposable
public class SoRotationXYZ extends SoTransformation
Node representing a 3D rotation about the x-, y-, or z-axis. This node defines a 3D rotation about one of the three principal axes. The rotation is accumulated into the current transformation, which is applied to subsequent shapes.File format/default:
RotationXYZ {
axis X angle 0 Action behavior:
SoGLRenderAction,SoCallbackAction,SoGetBoundingBoxAction,SoRayPickAction
Accumulates rotation transformation into the current transformation. Sets:SoModelMatrixElementSoGetMatrixAction
Returns the matrix corresponding to the rotation.- See Also:
SoRotation,SoTransform
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSoRotationXYZ.AxisTypeRotation axis enumeration values.-
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
Fields Modifier and Type Field Description SoSFFloatangleRotation angle (in radians), using the right-hand rule.SoSFEnum<SoRotationXYZ.AxisType>axisRotation axis.-
Fields inherited from class com.openinventor.inventor.Inventor
VERBOSE_LEVEL, ZeroHandle
-
-
Constructor Summary
Constructors Constructor Description SoRotationXYZ()Creates a rotation node with default settings.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SbRotationgetRotation()Returns anSbRotationequivalent to the specified rotation.-
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 Detail
-
axis
public final SoSFEnum<SoRotationXYZ.AxisType> axis
Rotation axis. Use enumAxis. Default is X.
-
angle
public final SoSFFloat angle
Rotation angle (in radians), using the right-hand rule.
-
-
Method Detail
-
getRotation
public SbRotation getRotation()
Returns anSbRotationequivalent to the specified rotation.
-
-