HKeyframeChannelDiscrete Class Reference

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

#include <HBhvUtility.h>

Public Member Functions

virtual HKeyframeClone ()
 
 HKeyframeChannelDiscrete (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)
 
- Public Member Functions inherited from HKeyframeChannel
 HKeyframeChannel ()
 
- Public Member Functions inherited from HKeyframe
 HKeyframe ()
 
virtual void SetConstant (bool constant)
 
virtual void SetEaseInOut (bool easeinout)
 
virtual void SetRelative (bool relative)
 

Additional Inherited Members

- Public Attributes inherited from HKeyframeChannel
HANIChannelType m_channeltype
 
HPoint m_cp
 
- Public Attributes inherited from HKeyframe
bool m_bConstant
 
bool m_bEaseInOut
 
bool m_bRelative
 
HANIKeyframeType m_type
 

Detailed Description

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

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

Constructor & Destructor Documentation

◆ HKeyframeChannelDiscrete()

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

Constructs a HKeyframeChannelDiscrete Object.

References HANIDiscrete.

Member Function Documentation

◆ Clone()

virtual HKeyframe* HKeyframeChannelDiscrete::Clone ( )
inlinevirtual

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.

Reimplemented from HKeyframeChannel.

◆ Interpolate()

virtual void HKeyframeChannelDiscrete::Interpolate ( HKeyframeChannel **  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
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.

◆ Serialize()

virtual void HKeyframeChannelDiscrete::Serialize ( HUtilityXMLTag *  xmlgen)
virtual

Writes XML data to a buffer.

Reimplemented from HKeyframe.


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