Class SoShuttle

  • All Implemented Interfaces:
    SafeDisposable

    public class SoShuttle
    extends SoTranslation
    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:
    SoPendulum, SoRotor
    • 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.
    • Constructor Detail

      • SoShuttle

        public SoShuttle()
        Creates a shuttle node with default settings.