HKeyframeChannelFollowPath Class Reference

The HKeyframeChannelFollowPath class is used for interpolators that change orientation in relation to position. More...

#include <HBhvUtility.h>

Public Member Functions

virtual HKeyframeClone ()
 
 HKeyframeChannelFollowPath ()
 
virtual void Interpolate (HKeyframeChannel **posarray, int keyframe, float fraction, int length, HPoint &res)
 
virtual void Serialize (HUtilityXMLTag *xmlgen)
 
- Public Member Functions inherited from HKeyframeChannelCurve
void CalculateCurveFactor (HBhvTimeline *timeline, int keyframe)
 
void CalculateCurveLength (HPoint p2)
 
void CalculateHermiteTangents (HPoint p0, HPoint p2, HPoint p3, float a=0.5f)
 
void DrawTangents (HPoint p2)
 
 HKeyframeChannelCurve (float x=0, float y=0, float z=0)
 
HPoint InterpolateHermiteSpline (float fraction, HPoint p1, HPoint p2)
 
- 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)
 

Public Attributes

bool m_bLinear
 
bool m_bNoRotate
 
float tmatrix [16]
 
float tmatrix2 [16]
 
- Public Attributes inherited from HKeyframeChannelCurve
float b
 
float c
 
HPointcontrol_polygon
 
float ItemType
 
float m_curvelength
 
float m_factor1
 
float m_factor2
 
HPoint m_tangent1
 
HPoint m_tangent2
 
- 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 HKeyframeChannelFollowPath class is used for interpolators that change orientation in relation to position.

By specifying a set of positional control points, this interpolator can adjust the orientation of the target according to the path curvature like a car following the road.

Constructor & Destructor Documentation

◆ HKeyframeChannelFollowPath()

HKeyframeChannelFollowPath::HKeyframeChannelFollowPath ( )
inline

Constructs a HKeyframeChannelFollowPath object.

References HANIFollowPath.

Member Function Documentation

◆ Clone()

virtual HKeyframe* HKeyframeChannelFollowPath::Clone ( )
inlinevirtual

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

Returns
A pointer to newly created HKeyframeChannelFollowPath object.

Reimplemented from HKeyframeChannelCurve.

◆ Interpolate()

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

Calculates the interpolation between this keyframe and the next keyframe.

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 HKeyframeChannelCurve.

◆ Serialize()

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

Writes XML data to a buffer.

Reimplemented from HKeyframeChannelCurve.

Member Data Documentation

◆ tmatrix

float HKeyframeChannelFollowPath::tmatrix[16]

For internal use only.

◆ tmatrix2

float HKeyframeChannelFollowPath::tmatrix2[16]

For internal use only.


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