Alphabetical Class Index  Class Hierarchy   File Members   Compound Members   File List  

HKeyframeChannelFollowPath Class Reference

The HKeyframeChannelFollowPath class is used for interpolators that change orientation in relation to position. More...

#include <HBhvUtility.h>

List of all members.

Public Member Functions

virtual HKeyframeClone ()
 HKeyframeChannelFollowPath ()
virtual void Interpolate (HKeyframeChannel **posarray, int keyframe, float fraction, int length, HPoint &res)
virtual void Serialize (HUtilityXMLTag *xmlgen)

Public Attributes

bool m_bLinear
bool m_bNoRotate
float tmatrix [16]
float tmatrix2 [16]

Detailed Description

The HKeyframeChannelFollowPath class is used for interpolators that change orientation in relation to position.

By specifying a set of positional control points, this interpolator can adjust the orientation of the target according to the path curvature like a car following the road.


Constructor & Destructor Documentation

HKeyframeChannelFollowPath::HKeyframeChannelFollowPath ( ) [inline]

Constructs a HKeyframeChannelFollowPath object.

References HANIFollowPath.


Member Function Documentation

virtual HKeyframe* HKeyframeChannelFollowPath::Clone ( ) [inline, virtual]

This method makes an exact copy of the current HKeyframeChannelFollowPath and returns a pointer to the newly created HKeyframeChannelFollowPath object.

Returns:
A pointer to newly created HKeyframeChannelFollowPath object.

Reimplemented from HKeyframeChannelCurve.

virtual void HKeyframeChannelFollowPath::Interpolate ( HKeyframeChannel **  posarray,
int  keyframe,
float  fraction,
int  length,
HPoint res 
) [virtual]

Calculates the interpolation between this keyframe and the next keyframe.

Parameters:
posarrayThe array of HKeyframeChannel objects.
keyframeThey current keyframe number.
fractionThe fraction from this keyframe to next.
lengthThe number of entries in the keyframe array.
resReturns the interpolation result.

Reimplemented from HKeyframeChannelCurve.

virtual void HKeyframeChannelFollowPath::Serialize ( HUtilityXMLTag *  xmlgen) [virtual]

Writes XML data to a buffer.

Reimplemented from HKeyframeChannelCurve.


Member Data Documentation

For internal use only.

For internal use only.


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