Animated oscillating rotation node. More...
#include <Inventor/nodes/SoPendulum.h>
Public Member Functions | |
virtual SoType | getTypeId () const |
SoPendulum () | |
Static Public Member Functions | |
static SoType | getClassTypeId () |
Public Attributes | |
SoSFRotation | rotation0 |
SoSFRotation | rotation1 |
SoSFFloat | speed |
SoSFBool | on |
Animated oscillating rotation node.
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
rotation | 0 0 1 0 |
rotation0 | 0 0 1 0 |
rotation1 | 0 0 1 0 |
speed | 1 |
on | TRUE |
SoGetMatrixAction
Returns transformation matrix specified by the interpolated rotation.
SoPendulum::SoPendulum | ( | ) |
Creates a pendulum node with default settings.
static SoType SoPendulum::getClassTypeId | ( | ) | [static] |
Returns the type identifier for this class.
Reimplemented from SoRotation.
virtual SoType SoPendulum::getTypeId | ( | ) | const [virtual] |
Returns the type identifier for this specific instance.
Reimplemented from SoRotation.
Allows applications to enable or disable the motion easily.
Defines the first of the two fixed rotations that are interpolated to create the pendular motion.
Defines the second of the two fixed rotations that are interpolated to create the pendular motion.
Defines the speed of the pendulum, in cycles per second.