The HKeyframe class is the base class for all keyframe types. More...

#include <HBhvUtility.h>

Public Member Functions

virtual HKeyframeClone ()
 
 HKeyframe ()
 
virtual void Serialize (HUtilityXMLTag *xmlgen)
 
virtual void SetConstant (bool constant)
 
virtual void SetEaseInOut (bool easeinout)
 
virtual void SetRelative (bool relative)
 

Public Attributes

bool m_bConstant
 
bool m_bEaseInOut
 
bool m_bRelative
 
HANIKeyframeType m_type
 

Detailed Description

The HKeyframe class is the base class for all keyframe types.

Every interpolator has an array of keyframe values. Based on the given time an interpolation is performed between those keyframes which contribute to the overall animation. Keyframes can not only hold positional information or rotations but also information like color or segment identifiers. For performance reasons, all data members of the various keyframe classes are defined as public.

Constructor & Destructor Documentation

◆ HKeyframe()

HKeyframe::HKeyframe ( )
inline

Constructs an HKeyframe object.

Member Function Documentation

◆ Clone()

virtual HKeyframe* HKeyframe::Clone ( )
inlinevirtual

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

Returns
A pointer to the newly created HKeyframe object.

Reimplemented in HKeyframe3String, HKeyframeString, HKeyframeMatrix, HKeyframeQuatSquad, HKeyframeQuatSlerp, HKeyframeAxisRotation, HKeyframeRotation, HKeyframeChannelFollowPath, HKeyframeChannelCurve, HKeyframeChannelDiscrete, HKeyframeChannelLinear, and HKeyframeChannel.

◆ Serialize()

virtual void HKeyframe::Serialize ( HUtilityXMLTag *  xmlgen)
inlinevirtual

◆ SetConstant()

virtual void HKeyframe::SetConstant ( bool  constant)
inlinevirtual

Use this method to keep the keyframe value constant.

Parameters
constantPass true if you want to keep the same value as the previous keyframe or false if you want to use a different value.

◆ SetEaseInOut()

virtual void HKeyframe::SetEaseInOut ( bool  easeinout)
inlinevirtual

Use this method to indicate that you want a smooth transition during the start and end of the animation.

Parameters
easeinoutPass true to turn on easing in and out or false if you don't want this behavior.

◆ SetRelative()

virtual void HKeyframe::SetRelative ( bool  relative)
inlinevirtual

This feature is not yet implemented.

Member Data Documentation

◆ m_bConstant

bool HKeyframe::m_bConstant

The value is true if this keyframe's value is the same value as the previous keyframe.

◆ m_bEaseInOut

bool HKeyframe::m_bEaseInOut

The value is true if smooth transition for start and stop is turned on or false if otherwise.

◆ m_bRelative

bool HKeyframe::m_bRelative

This feature is not yet implemented.

◆ m_type

HANIKeyframeType HKeyframe::m_type

Type of Keyframe


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