HKeyframeChannel

Fields

HPoint

m_cp

HANIChannelType

m_channeltype

Functions

HKeyframeChannel

~HKeyframeChannel

HKeyframe *

Clone

void

Interpolate

Detailed Description

class HKeyframeChannel : public HKeyframe

The HKeyframeChannel class is the base class for all channel related keyframe types.

Channel keyframes are used for positional values as well as colour and scale.

Subclassed by HKeyframeChannelCurve, HKeyframeChannelDiscrete, HKeyframeChannelLinear

Public Functions

inline HKeyframeChannel()

Constructs an HKeyframeChannel object.

inline virtual ~HKeyframeChannel()
inline virtual HKeyframe *Clone()

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

Returns:

A pointer to the newly created HKeyframeChannel object.

inline virtual void Interpolate(HKeyframeChannel **posarray, int keyframe, float fraction, int length, HPoint &res)

Calculates the interpolation between this keyframe and the next keyframe.

Parameters:
  • posarray – The array of HKeyframeChannel objects.

  • keyframe – They current keyframe number.

  • fraction – The fraction from this keyframe to next.

  • length – The number of entries in the keyframe array.

  • res – Returns the interpolation result.

Public Members

HPoint m_cp

The channnel coordinates.

HANIChannelType m_channeltype

The type of channel.