Open Inventor Reference
|
Animated oscillating rotation node. More...
#include <Inventor/nodes/SoPendulum.h>
Public Member Functions | |
SoPendulum () | |
Creates a pendulum node with default settings. | |
Static Public Member Functions | |
static void | initClass () |
Initializes base node class. | |
Public Attributes | |
Fields | |
SoSFRotation | rotation0 |
These define the two fixed rotations that are interpolated to create the pendular motion. | |
SoSFRotation | rotation1 |
These define the two fixed rotations that are interpolated to create the pendular motion. | |
SoSFFloat | speed |
Defines the speed of the pendulum, in cycles per second. | |
SoSFBool | on |
Allows applications to enable or disable the motion easily. | |
Protected Member Functions | |
virtual | ~SoPendulum () |
The SoPendulum class is derived from SoRotation, so it applies a rotation to the current transformation. Using engines connected to the realTime global field, the rotation value is animated over time between two fixed rotations, achieving the effect of a swinging pendulum. The period of the swing can be adjusted by changing the speed field. The current rotation at any time is available in the rotation field, inherited from SoRotation
Definition at line 102 of file SoPendulum.h.
SoPendulum::SoPendulum | ( | ) |
virtual SoPendulum::~SoPendulum | ( | ) | [protected, virtual] |
static void SoPendulum::initClass | ( | ) | [static] |
Reimplemented from SoRotation.
Definition at line 122 of file SoPendulum.h.
Definition at line 112 of file SoPendulum.h.
Definition at line 116 of file SoPendulum.h.
Definition at line 119 of file SoPendulum.h.