Open Inventor Reference
SoShuttle Class Reference

Animated oscillating translation node. More...

#include <Inventor/nodes/SoShuttle.h>

Inheritance diagram for SoShuttle:
SoTranslation SoTransformation SoNode SoFieldContainer SoBase

List of all members.

Public Member Functions

 SoShuttle ()
 Creates a shuttle node with default settings.

Static Public Member Functions

static void initClass ()
 Initializes base node class.

Public Attributes

Fields
SoSFVec3f translation0
 These define the two fixed translations that are interpolated to create the shuttling motion.
SoSFVec3f translation1
 These define the two fixed translations that are interpolated to create the shuttling motion.
SoSFFloat speed
 Defines the speed of the shuttle, in cycles per second.
SoSFBool on
 Allows applications to enable or disable the motion easily.

Protected Member Functions

virtual ~SoShuttle ()

Detailed Description

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
SoPendulum, SoRotor

Definition at line 102 of file SoShuttle.h.


Constructor & Destructor Documentation

SoShuttle::SoShuttle ( )
virtual SoShuttle::~SoShuttle ( ) [protected, virtual]

Member Function Documentation

static void SoShuttle::initClass ( ) [static]

Reimplemented from SoTranslation.


Member Data Documentation

Definition at line 122 of file SoShuttle.h.

Definition at line 119 of file SoShuttle.h.

Definition at line 112 of file SoShuttle.h.

Definition at line 116 of file SoShuttle.h.


The documentation for this class was generated from the following file: