SoPendulum Class Reference

Animated oscillating rotation node. More...

#include <Inventor/nodes/SoPendulum.h>

Inheritance diagram for SoPendulum:
SoRotation SoTransformation SoNode SoFieldContainer SoBase SoRefCounter SoTypedObject

List of all members.

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

Detailed Description

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




SoRotor, SoShuttle

Constructor & Destructor Documentation

SoPendulum::SoPendulum (  ) 

Creates a pendulum node with default settings.

Member Function Documentation

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.

Member Data Documentation

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.

The documentation for this class was generated from the following file:

Open Inventor Toolkit reference manual, generated on 12 Sep 2022
Copyright © Thermo Fisher Scientific All rights reserved.