#include <HBhvUtility.h>
Public Member Functions | |
virtual HKeyframe * | Clone () |
HKeyframeChannel () | |
virtual void | Interpolate (HKeyframeChannel **posarray, int keyframe, float fraction, int length, HPoint &res) |
Public Attributes | |
HANIChannelType | m_channeltype |
HPoint | m_cp |
Channel keyframes are used for positional values as well as colour and scale.
HKeyframeChannel::HKeyframeChannel | ( | ) | [inline] |
Constructs an HKeyframeChannel object.
References HANIChannel.
virtual HKeyframe* HKeyframeChannel::Clone | ( | ) | [inline, virtual] |
This method makes an exact copy of the current HKeyframeChannel and returns a pointer to the newly created HKeyframeChannel object.
Reimplemented from HKeyframe.
Reimplemented in HKeyframeChannelLinear, HKeyframeChannelDiscrete, HKeyframeChannelCurve, and HKeyframeChannelFollowPath.
virtual void HKeyframeChannel::Interpolate | ( | HKeyframeChannel ** | posarray, | |
int | keyframe, | |||
float | fraction, | |||
int | length, | |||
HPoint & | res | |||
) | [inline, virtual] |
Calculates the interpolation between this keyframe and the next keyframe.
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. |
Reimplemented in HKeyframeChannelLinear, HKeyframeChannelDiscrete, HKeyframeChannelCurve, and HKeyframeChannelFollowPath.
The type of channel.
The channnel coordinates.
Referenced by HBhvInterpolatorScale::Insert(), HBhvInterpolatorColor::Insert(), HBhvInterpolatorPosition::InsertCurve(), HBhvInterpolatorPosition::InsertDiscrete(), HBhvInterpolatorPosition::InsertLinear(), HBhvInterpolatorScale::Replace(), HBhvInterpolatorColor::Replace(), HBhvInterpolatorPosition::ReplaceCurve(), and HBhvInterpolatorPosition::ReplaceLinear().