Package com.openinventor.inventor.nodes
Class SoShuttle
- All Implemented Interfaces:
SafeDisposable
Animated oscillating translation node.
The
SoShuttle
class is derived from SoTranslation
, 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 the speed
field. The current translation at any time is available in the translation field, inherited from SoTranslation
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:
-
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
FieldsModifier and TypeFieldDescriptionfinal SoSFBool
Allows applications to enable or disable the motion easily.final SoSFFloat
Defines the speed of the shuttle, in cycles per second.final SoSFVec3f
final SoSFVec3f
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 -
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
-
translation0
-
translation1
These define the two fixed translations that are interpolated to create the shuttling motion. -
speed
Defines the speed of the shuttle, in cycles per second. -
on
Allows applications to enable or disable the motion easily.
-
-
Constructor Details
-
SoShuttle
public SoShuttle()Creates a shuttle node with default settings.
-