Package com.openinventor.inventor.nodes
Class SoShuttle
- java.lang.Object
-
- All Implemented Interfaces:
SafeDisposable
public class SoShuttle extends SoTranslation
Animated oscillating translation node. TheSoShuttle
class is derived fromSoTranslation
, so it applies a translation to the current transformation. Using engines connected to the realTime global field, the translation value is animated over time between two fixed translations, achieving a shuttling effect. The period of the motion can be adjusted by changing thespeed
field. The current translation at any time is available in the translation field, inherited fromSoTranslation
File format/default:
Shuttle {
translation 0 0 0 translation0 0 0 0 translation1 0 0 0 speed 1 on true Action behavior:
SoGLRenderAction
,SoCallbackAction
,SoGetBoundingBoxAction
,SoRayPickAction
Concatenates interpolated translation value with the current transformation matrix.SoGetMatrixAction
Returns transformation matrix specified by the interpolated translation.- See Also:
SoPendulum
,SoRotor
-
-
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
Fields Modifier and Type Field Description SoSFBool
on
Allows applications to enable or disable the motion easily.SoSFFloat
speed
Defines the speed of the shuttle, in cycles per second.SoSFVec3f
translation0
SoSFVec3f
translation1
These define the two fixed translations that are interpolated to create the shuttling motion.-
Fields inherited from class com.openinventor.inventor.nodes.SoTranslation
translation
-
Fields inherited from class com.openinventor.inventor.Inventor
VERBOSE_LEVEL, ZeroHandle
-
-
Constructor Summary
Constructors Constructor Description SoShuttle()
Creates a shuttle 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 Detail
-
translation0
public final SoSFVec3f translation0
-
translation1
public final SoSFVec3f translation1
These define the two fixed translations that are interpolated to create the shuttling motion.
-
speed
public final SoSFFloat speed
Defines the speed of the shuttle, in cycles per second.
-
on
public final SoSFBool on
Allows applications to enable or disable the motion easily.
-
-