Open Inventor Reference
|
Animated cycling switch node. More...
#include <Inventor/nodes/SoBlinker.h>
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. |
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.
Blinker { whichChild -1 speed 1 on TRUE }
Definition at line 94 of file SoBlinker.h.
SoBlinker::SoBlinker | ( | ) |
virtual SoBlinker::~SoBlinker | ( | ) | [protected, virtual] |
virtual void SoBlinker::getBoundingBox | ( | SoGetBoundingBoxAction * | action | ) | [virtual] |
Reimplemented from SoSwitch.
static void SoBlinker::initClass | ( | ) | [static] |
Reimplemented from SoSwitch.
virtual void SoBlinker::write | ( | SoWriteAction * | action | ) | [virtual] |
Reimplemented from SoSwitch.
Definition at line 106 of file SoBlinker.h.
Definition at line 103 of file SoBlinker.h.