The HBhvInterpolatorTrail class draws a line trail from one keyframe position to the next.
More...
#include <HBhvInterpolator.h>
|
virtual HBhvInterpolator * | CreateInstance (HBhvAnimation *ainst) |
|
const char * | GetType () |
|
| HBhvInterpolatorTrail (HBhvAnimation *animation=0, const char *name=0) |
|
void | Init () |
|
virtual void | Interpolate (int keyframe, float fraction) |
|
virtual void | Reset () |
|
virtual void | Serialize (HUtilityXMLGenerator *xmlgen) |
|
void | SetTrailColor (const char *color) |
|
void | SetTrailStyle (const char *style) |
|
void | SetTrailType (TrailInterpolatorType tt) |
|
void | SetTrailWeight (int weight) |
|
virtual void | CalculatePos (int keyframe, float fraction, HPoint &res) |
|
virtual void | Evaluate (int keyframe, float fraction, bool &hasPos, HPoint &pos, bool &hasQuat, HQuat &quat, bool &hasScale, HPoint &scale) |
|
| HBhvInterpolatorPosition (HBhvAnimation *animation=0, const char *name=0) |
|
void | InsertCurve (HPoint pos, int l=0) |
|
void | InsertDiscrete (HPoint pos, int l=0) |
|
void | InsertLinear (HPoint pos, int l=0) |
|
void | ReplaceCurve (HPoint pos, int l) |
|
void | ReplaceLinear (HPoint pos, int l) |
|
void | Append (HKeyframe *piece) |
|
void | Copy (int pos, int adpos, bool replace) |
|
void | Duplicate (int pos, bool replace, bool next) |
|
HBhvAnimation * | GetAnimation () |
|
HKeyframe ** | GetArray () |
|
virtual int | GetArrayLength () |
|
virtual HKeyframe * | GetAt (int pos) |
|
const char * | GetName () |
|
void | GetRotationFromMatrix (HQuat &rotation) |
|
void | GetTranslationFromMatrix (HPoint &translation) |
|
| HBhvInterpolator (HBhvAnimation *animation=0, const char *name=0) |
|
void | Insert (HKeyframe *piece, int pos=0) |
|
void | Remove (int pos) |
|
void | Replace (HKeyframe *c, int pos) |
|
void | SetAnimation (HBhvAnimation *animation) |
|
void | SetInstancedInterpolator (HBhvInterpolator *interpolator) |
|
|
static void * | XMLCallback (HUtilityXMLTag *xt, bool open, void *m_pExtraData) |
|
static void * | XMLCallback (HUtilityXMLTag *xt, bool open, void *m_pExtraData) |
|
The HBhvInterpolatorTrail class draws a line trail from one keyframe position to the next.
HBhvInterpolatorTrail honors all modifiers from HBhvInterpolatorPosition.
◆ HBhvInterpolatorTrail()
HBhvInterpolatorTrail::HBhvInterpolatorTrail |
( |
HBhvAnimation * |
animation = 0 , |
|
|
const char * |
name = 0 |
|
) |
| |
Constructs an HBhvInterpolatorTrail object.
- Parameters
-
animation | The animation that this interpolator belongs to. |
name | The name of the interpolator. |
◆ CreateInstance()
In special cases, you may want an interpolator that references this interpolator without changing it. Use this method to create the new interpolator passing a pointer to the animation that you want it to be associated with.
- Parameters
-
ainst | The animation instance that this interpolator is associated with. |
- Returns
- The newly created interpolator that references this interpolator.
Reimplemented from HBhvInterpolatorPosition.
◆ GetType()
const char* HBhvInterpolatorTrail::GetType |
( |
| ) |
|
|
virtual |
◆ Init()
void HBhvInterpolatorTrail::Init |
( |
| ) |
|
◆ Interpolate()
virtual void HBhvInterpolatorTrail::Interpolate |
( |
int |
keyframe, |
|
|
float |
fraction |
|
) |
| |
|
virtual |
Performs an interpolation on the animation target.
- Parameters
-
keyframe | The reference keyframe for this interpolation. |
fraction | The fraction value from the specified keyframe to the next keyframe. The value is from 0 to 1. |
Reimplemented from HBhvInterpolatorPosition.
◆ Reset()
virtual void HBhvInterpolatorTrail::Reset |
( |
| ) |
|
|
virtual |
◆ Serialize()
virtual void HBhvInterpolatorTrail::Serialize |
( |
HUtilityXMLGenerator * |
xmlgen | ) |
|
|
virtual |
◆ XMLCallback()
static void* HBhvInterpolatorTrail::XMLCallback |
( |
HUtilityXMLTag * |
xt, |
|
|
bool |
open, |
|
|
void * |
m_pExtraData |
|
) |
| |
|
static |
This is XML read callback which parses XML data and then populates the member variables with the associated values.
◆ m_Color
char HBhvInterpolatorTrail::m_Color[MVO_SMALL_BUFFER_SIZE] |
|
protected |
◆ m_Style
char HBhvInterpolatorTrail::m_Style[MVO_SMALL_BUFFER_SIZE] |
|
protected |
◆ m_trailKey
HC_KEY HBhvInterpolatorTrail::m_trailKey |
|
protected |
◆ m_TrailType
TrailInterpolatorType HBhvInterpolatorTrail::m_TrailType |
|
protected |
◆ m_Weight
int HBhvInterpolatorTrail::m_Weight |
|
protected |
The documentation for this class was generated from the following file: