public class SoShuttle extends SoTranslation
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:
SoNode.RenderModes
Inventor.ConstructorCommand
Modifier and Type | Field and 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.
|
translation
VERBOSE_LEVEL, ZeroHandle
Constructor and Description |
---|
SoShuttle()
Creates a shuttle node with default settings.
|
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
copyFieldValues, copyFieldValues, enableNotify, fieldsAreEqual, get, getAllFields, getEventIn, getEventOut, getField, getFieldName, hasDefaultValues, isNotifyEnabled, set, setToDefaults
dispose, getName, isDisposable, isSynchronizable, setName, setSynchronizable
getNativeResourceHandle
public final SoSFVec3f translation0
public final SoSFVec3f translation1
public final SoSFFloat speed
public final SoSFBool on
Generated on July 31, 2019, Copyright © Thermo Fisher Scientific. All rights reserved. http://www.openinventor.com