| 1 |
NAME SoBlinker "" "" { animated cycling switch node } |
| 2 |
|
| 3 |
INCLUDE nodes/SoBlinker.h |
| 4 |
|
| 5 |
DESC { |
| 6 |
The \cSoBlinker\. class is derived from \cSoSwitch\., so it selects |
| 7 |
one of its children to traverse. Using engines connected to the |
| 8 |
\vrealTime\. global field, the \vwhichChild\. field is animated over |
| 9 |
time. If the node has only one child, \vwhichChild\. toggles between |
| 10 |
\kSO_SWITCH_NONE\. and 0, causing the child to be switched on and off |
| 11 |
repeatedly. If the node has more than one child, they are cycled |
| 12 |
through continuously. |
| 13 |
} |
| 14 |
|
| 15 |
FIELD speed { Defines the speed of the blinker, in cycles per second. } |
| 16 |
|
| 17 |
FIELD on { Allows applications to enable or disable the blinking easily. } |
| 18 |
|
| 19 |
METHOD "" SoBlinker() { |
| 20 |
Creates a blinker node with default settings. |
| 21 |
} |
| 22 |
|
| 23 |
METHOD "" static SoType getClassTypeId() { |
| 24 |
Returns type identifier for this class. |
| 25 |
} |
| 26 |
|
| 27 |
ACTION SoGLRenderAction, SoCallbackAction, SoGetBoundingBoxAction, |
| 28 |
SoGetMatrixAction, SoHandleEventAction, |
| 29 |
SoRayPickAction, SoSearchAction { |
| 30 |
Same as for \cSoSwitch\.. |
| 31 |
} |