public class SoPendulum extends SoRotation
SoPendulum
class is derived from SoRotation
, so it applies a rotation to the current transformation. Using engines connected to the realTime global field, the rotation value is animated over time between two fixed rotations, achieving the effect of a swinging pendulum. The period of the swing can be adjusted by changing the speed
field. The current rotation at any time is available in the rotation field, inherited from SoRotation
File format/default:
Pendulum {
rotation | 0 0 1 0 |
rotation0 | 0 0 1 0 |
rotation1 | 0 0 1 0 |
speed | 1 |
on | true |
Action behavior:
SoGLRenderAction
, SoCallbackAction
, SoGetBoundingBoxAction
, SoRayPickAction
Concatenates interpolated rotation value with the current transformation matrix.
SoGetMatrixAction
Returns transformation matrix specified by the interpolated rotation.
See also:
SoNode.RenderModes
Inventor.ConstructorCommand
Modifier and Type | Field and Description |
---|---|
SoSFBool |
on
Allows applications to enable or disable the motion easily.
|
SoSFRotation |
rotation0
Defines the first of the two fixed rotations that are interpolated to create the pendular motion.
|
SoSFRotation |
rotation1
Defines the second of the two fixed rotations that are interpolated to create the pendular motion.
|
SoSFFloat |
speed
Defines the speed of the pendulum, in cycles per second.
|
rotation
VERBOSE_LEVEL, ZeroHandle
Constructor and Description |
---|
SoPendulum()
Creates a pendulum 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 SoSFRotation rotation0
public final SoSFRotation rotation1
public final SoSFFloat speed
public final SoSFBool on
Generated on July 31, 2019, Copyright © Thermo Fisher Scientific. All rights reserved. http://www.openinventor.com