HKeyframeChannelDiscrete
-
class
HKeyframeChannelDiscrete The
HKeyframeChannelDiscreteclass is used for discrete interpolation of positional values.No interpolation is performed between this keyframe and the next keyframe.
Inherits from:
HKeyframeChannel
Methods
-
HKeyframeChannelDiscrete::HKeyframeChannelDiscrete(float x = 0, float y = 0, float z = 0) Constructs a
HKeyframeChannelDiscreteObject.
-
virtual
HKeyframeChannelDiscrete::~HKeyframeChannelDiscrete() virtual
-
virtual HKeyframe *
HKeyframeChannelDiscrete::Clone() virtual
This method makes an exact copy of the current
HKeyframeChannelDiscreteand returns a pointer to the newly createdHKeyframeChannelDiscreteobject.Returns
A pointer to the newly createdHKeyframeChannelDiscreteobject.
-
virtual void
HKeyframeChannelDiscrete::Interpolate(HKeyframeChannel const *posarray[], int keyframe, float fraction, int length, HPoint &res) virtual
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
HKeyframeChannelobjects.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
HKeyframeChannelDiscrete::Serialize(HUtilityXMLTag *xmlgen) virtual
Writes XML data to a buffer.