Class SoBlinker

All Implemented Interfaces:
SafeDisposable

public class SoBlinker extends SoSwitch
Animated cycling switch node. The SoBlinker class is derived from SoSwitch, so it selects one of its children to traverse. Using engines connected to the realTime global field, the whichChild field is animated over time. If the node has only one child, whichChild toggles between SO_SWITCH_NONE and 0, causing the child to be switched on and off repeatedly. If the node has more than one child, they are cycled through continuously.

File format/default:

Blinker {

    whichChild -1
    speed 1
    on true
}

Action behavior:

SoGLRenderAction, SoCallbackAction, SoGetBoundingBoxAction, SoGetMatrixAction, SoHandleEventAction, SoRayPickAction, SoSearchAction
Same as for SoSwitch.

  • Field Details

    • speed

      public final SoSFFloat speed
      Defines the speed of the blinker, in cycles per second.
    • on

      public final SoSFBool on
      Allows applications to enable or disable the blinking easily.
  • Constructor Details

    • SoBlinker

      public SoBlinker()
      Creates a blinker node with default settings.