Open Inventor Reference
SoBlinker Class Reference

Animated cycling switch node. More...

#include <Inventor/nodes/SoBlinker.h>

Inheritance diagram for SoBlinker:
SoSwitch SoGroup SoNode SoFieldContainer SoBase

List of all members.

Public Member Functions

 SoBlinker ()
 Creates a blinker node with default settings.
virtual void getBoundingBox (SoGetBoundingBoxAction *action)
 Bounding box computation takes all children into account.
virtual void write (SoWriteAction *action)
 overload write method not to write internal engines

Static Public Member Functions

static void initClass ()
 Initializes base node class.

Public Attributes

Fields
SoSFFloat speed
 Defines the speed of the blinker, in cycles per second.
SoSFBool on
 Allows applications to enable or disable the blinking easily.

Protected Member Functions

virtual ~SoBlinker ()
virtual void notify (SoNotList *)
 Propagates modification notification through an instance.

Detailed Description

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.

Definition at line 94 of file SoBlinker.h.


Constructor & Destructor Documentation

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

Member Function Documentation

virtual void SoBlinker::getBoundingBox ( SoGetBoundingBoxAction action) [virtual]

Reimplemented from SoSwitch.

static void SoBlinker::initClass ( ) [static]

Reimplemented from SoSwitch.

virtual void SoBlinker::notify ( SoNotList list) [protected, virtual]

Reimplemented from SoNode.

virtual void SoBlinker::write ( SoWriteAction action) [virtual]

Reimplemented from SoSwitch.


Member Data Documentation

Definition at line 106 of file SoBlinker.h.

Definition at line 103 of file SoBlinker.h.


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