HKeyframeChannelDiscrete

Functions

HKeyframeChannelDiscrete

~HKeyframeChannelDiscrete

HKeyframe *

Clone

void

Interpolate

void

Serialize

Detailed Description

class HKeyframeChannelDiscrete : public HKeyframeChannel

The HKeyframeChannelDiscrete class is used for discrete interpolation of positional values.

No interpolation is performed between this keyframe and the next keyframe.

Public Functions

inline HKeyframeChannelDiscrete(float x = 0, float y = 0, float z = 0)

Constructs a HKeyframeChannelDiscrete Object.

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

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

Returns

A pointer to the newly created HKeyframeChannelDiscrete object.

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

Calculates the interpolation between this keyframe and the next keyframe. In this case, there is no interpolation. The calculated position will be the same position value of the given keyframe if the fraction is less than one. Otherwise, the caluculated position will be the position value of the next keyframe in the array.

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.

virtual void Serialize(HUtilityXMLTag *xmlgen)

Writes XML data to a buffer.