HKeyframeChannelLinear Class Reference
The HKeyframeChannelLinear class is used for linear interpolation of positional values. More...
#include <HBhvUtility.h>
Public Member Functions | |
virtual HKeyframe * | Clone () |
HKeyframeChannelLinear (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) |
![]() | |
HKeyframeChannel () | |
![]() | |
HKeyframe () | |
virtual void | SetConstant (bool constant) |
virtual void | SetEaseInOut (bool easeinout) |
virtual void | SetRelative (bool relative) |
Additional Inherited Members | |
![]() | |
HANIChannelType | m_channeltype |
HPoint | m_cp |
![]() | |
bool | m_bConstant |
bool | m_bEaseInOut |
bool | m_bRelative |
HANIKeyframeType | m_type |
Detailed Description
The HKeyframeChannelLinear class is used for linear interpolation of positional values.
Constructor & Destructor Documentation
◆ HKeyframeChannelLinear()
|
inline |
Constructs a HKeyframeChannelLinear object.
References HANILinear.
Member Function Documentation
◆ Clone()
|
inlinevirtual |
This method makes an exact copy of the current HKeyframeChannelLinear and returns a pointer to the newly created HKeyframeChannelLinear object.
- Returns
- A pointer to newly created HKeyframeChannelLinear object.
Reimplemented from HKeyframeChannel.
◆ Interpolate()
|
virtual |
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.
Reimplemented from HKeyframeChannel.
◆ Serialize()
|
virtual |
Writes XML data to a buffer.
Reimplemented from HKeyframe.
The documentation for this class was generated from the following file: