HBhvInterpolatorTrail
Functions
char const * |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void * |
Detailed Description
-
class HBhvInterpolatorTrail : public HBhvInterpolatorPosition
The HBhvInterpolatorTrail class draws a line trail from one keyframe position to the next.
HBhvInterpolatorTrail honors all modifiers from HBhvInterpolatorPosition.
Public Functions
-
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()
-
virtual char const *GetType()
- Returns:
Type of the interpolator is ‘Trail’.
-
virtual HBhvInterpolator *CreateInstance(HBhvAnimation *ainst)
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 Serialize(HUtilityXMLGenerator *xmlgen)
Writes XML data to a buffer using the passed XML generator.
-
virtual void Interpolate(int keyframe, float fraction)
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 Reset()
Resets interpolator instance.
-
void Init()
Sets up the Trail
-
inline void SetTrailType(TrailInterpolatorType tt)
-
inline void SetTrailColor(char const *color)
-
inline void SetTrailWeight(int weight)
-
inline void SetTrailStyle(char const *style)
Public Static Functions
-
static void *XMLCallback(HUtilityXMLTag *xt, bool open, void *m_pExtraData)
This is XML read callback which parses XML data and then populates the member variables with the associated values.
-
HBhvInterpolatorTrail(HBhvAnimation *animation = 0, char const *name = 0)