Interpolates among a set of rotation values. More...
#include <Inventor/VRMLnodes/SoVRMLOrientationInterpolator.h>
Public Member Functions | |
SoVRMLOrientationInterpolator () | |
Public Attributes | |
SoMFFloat | key |
SoMFRotation | keyValue |
See the VRML97 Specification, below.
NOTE: This class does not exist in Open Inventor 10.0 and later.This section may reference portions of the VRML97 specification that are not present in this help file. The complete VRML97 spec is available at http://www.web3d.org .
This node interpolates among a set of SFRotation values. The rotations are absolute in object space and are, therefore, not cumulative. The keyValue field must contain exactly as many rotations as there are keyframes in the key field, or an error will be generated and results will be undefined.
An orientation represents the final position of an object after a rotation has been applied. An SoVRMLOrientationInterpolator will interpolate between two orientations by computing the shortest path on the unit sphere between the two orientations. The interpolation will be linear in arc length along this path. The path between two diagonally opposed orientations will be any one of the infinite possible paths with arc length pi.
If two consecutive keyValue values exist such that the arc length between them is greater than pi, then the interpolation will take place on the arc complement. For example, the interpolation between the orientations:
0 1 0 0 --> 0 1 0 5.0
is equivalent to the rotation between the two orientations:
0 1 0 2*PI --> 0 1 0 5.0
Refer to "Concepts - Interpolators" for a more detailed discussion of interpolators.
key | [] |
keyValue | [] |
metadata | NULL |
SoSFFloat | set_fraction |
SoMFFloat | set_key |
SoMFRotation | set_keyValue |
SoSFNode | set_metadata |
SoSFRotation | value_changed |
SoMFFloat | key_changed |
SoMFRotation | keyValue_changed |
SoSFNode | metadata_changed |
SoVRMLOrientationInterpolator::SoVRMLOrientationInterpolator | ( | ) |
Constructor.