HBhvInterpolatorTrail

class HBhvInterpolatorTrail

The HBhvInterpolatorTrail class draws a line trail from one keyframe position to the next.

HBhvInterpolatorTrail honors all modifiers from HBhvInterpolatorPosition.

Inherits from: HBhvInterpolatorPosition

Methods

HBhvInterpolatorTrail::HBhvInterpolatorTrail(HBhvAnimation *animation = 0, char const *name = 0)

Constructs an HBhvInterpolatorTrail object.

Parameters

animation: The animation that this interpolator belongs to.

name: The name of the interpolator.

HBhvInterpolatorTrail::~HBhvInterpolatorTrail()
char const *HBhvInterpolatorTrail::GetType()

virtual

Returns

Type of the interpolator is ‘Trail’.
virtual HBhvInterpolator *HBhvInterpolatorTrail::CreateInstance(HBhvAnimation *ainst)

virtual

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.
virtual void HBhvInterpolatorTrail::Serialize(HUtilityXMLGenerator *xmlgen)

virtual

Writes XML data to a buffer using the passed XML generator.

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.

virtual void HBhvInterpolatorTrail::Reset()

virtual

Resets interpolator instance.

void HBhvInterpolatorTrail::Init()

Sets up the Trail

void HBhvInterpolatorTrail::SetTrailType(TrailInterpolatorType tt)
void HBhvInterpolatorTrail::SetTrailColor(char const *color)
void HBhvInterpolatorTrail::SetTrailWeight(int weight)
void HBhvInterpolatorTrail::SetTrailStyle(char const *style)
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.

Variables

TrailInterpolatorType HBhvInterpolatorTrail::m_TrailType

protected

TrailInterpolatorType

For internal use only.

char HBhvInterpolatorTrail::m_Color[MVO_SMALL_BUFFER_SIZE]

protected

char

For internal use only.

int HBhvInterpolatorTrail::m_Weight

protected

int

For internal use only.

char HBhvInterpolatorTrail::m_Style[MVO_SMALL_BUFFER_SIZE]

protected

char

For internal use only.

HC_KEY HBhvInterpolatorTrail::m_TrailSegment

protected

HC_KEY
HC_KEY HBhvInterpolatorTrail::m_trailKey

protected

HC_KEY

For internal use only.

int HBhvInterpolatorTrail::m_lastkeyframe

protected

int
bool HBhvInterpolatorTrail::m_initialized

protected

bool