NAME
SoPendulum – animated oscillating rotation node
INHERITS FROM
SoPendulum
SYNOPSIS
#include <Inventor/nodes/SoPendulum.h>
Fields from class SoPendulum:
Methods from class SoPendulum:
static SoType getClassTypeId()
void setOverride(SbBool state)
virtual SbBool affectsState() const
SbBool hasDefaultValues() const
SbBool set(const char *fieldDataString)
SbBool isNotifyEnabled() const
void unrefNoDelete() const
virtual SoType getTypeId() const
virtual void setName(const SbName &name)
virtual SbName getName() const
DESCRIPTION
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
FIELDS
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.
METHODS
SoPendulum()
Creates a pendulum node with default settings.
static SoType getClassTypeId()
Returns type identifier for this class.
ACTION BEHAVIOR
Concatenates interpolated rotation value with the current transformation matrix.
Returns transformation matrix specified by the interpolated rotation.
FILE FORMAT/DEFAULTS
SEE ALSO
Typeset by Felix Ritter (MeVis Research GmbH)
Hyperlinks by Wolfram Esser (method park Software AG)