Alphabetical Class Index  Class Hierarchy   File Members   Compound Members   File List  

HKeyframeChannelLinear Class Reference

The HKeyframeChannelLinear class is used for linear interpolation of positional values. More...

#include <HBhvUtility.h>

List of all members.

Public Member Functions

virtual HKeyframeClone ()
 HKeyframeChannelLinear (float x=0, float y=0, float z=0)
virtual void Interpolate (HKeyframeChannel **posarray, int keyframe, float fraction, int length, HPoint &res)
virtual void Serialize (HUtilityXMLTag *xmlgen)

Detailed Description

The HKeyframeChannelLinear class is used for linear interpolation of positional values.


Constructor & Destructor Documentation

HKeyframeChannelLinear::HKeyframeChannelLinear ( float  x = 0,
float  y = 0,
float  z = 0 
) [inline]

Constructs a HKeyframeChannelLinear object.

References HANILinear.


Member Function Documentation

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

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

Returns:
A pointer to newly created HKeyframeChannelLinear object.

Reimplemented from HKeyframeChannel.

virtual void HKeyframeChannelLinear::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 HKeyframeChannel.

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

Writes XML data to a buffer.

Reimplemented from HKeyframe.


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