class GmTranslation

The GmTranslation animation construct handles all object translation and can be handled to make a particular animatable item follow a pre-determined, or even real-time calculated parametric path

Inheritance:


Public Methods

[more] GmTranslation ()
Standard constructor
[more]virtual void applyTransform (float percentageElapsed)
Applies an OpenGL translation transformations in the X, Y, and Z axis given the percentage of the total transformation curve.
[more]GlmPath3* getTranslationSpline ()
Gets the translation spline that is being used by this object.
[more]void setTranslationSpline (GlmPath3* translationSpline)
Sets the translation spline to be used by this GmTranslation objectDO NOT DELETE THE GIVEN VELOCITY CURVE OBJECT, IT IS USED DIRECTLY AND WILL BE DESTROYED WHEN THIS GMTRANSFORM OBJECT IS DESTROYED.
[more]virtual ~GmTranslation ()
Standard destructor

Protected Fields

[more]GlmPath3* mTranslationSpline
The translation spline evaluates what the X, Y and Z translations should be at a given percentage of the entire path travelled.


Inherited from GmTransform:

Public Methods

ovirtual GlmPath2* getVelocityCurve()
ovirtual void setVelocityCurve(GlmPath2* velocityCurve)

Protected Fields

oGlmPath2* mVelocityCurve


Documentation

The GmTranslation animation construct handles all object translation and can be handled to make a particular animatable item follow a pre-determined, or even real-time calculated parametric path
oGlmPath3* mTranslationSpline
The translation spline evaluates what the X, Y and Z translations should be at a given percentage of the entire path travelled. For example: What is the X, Y and Z translation at 50% of the total time spent during the animation.

o GmTranslation()
Standard constructor

ovirtual ~GmTranslation()
Standard destructor

ovirtual void applyTransform(float percentageElapsed)
Applies an OpenGL translation transformations in the X, Y, and Z axis given the percentage of the total transformation curve. For example, if applyTransformation(0.5) is called, the transformation calculation is performed based on a value at 50% of the transformation and velocity curves.

Parameters:
percentageElapsed - the percentage elapsed of the total transformation path

ovoid setTranslationSpline(GlmPath3* translationSpline)
Sets the translation spline to be used by this GmTranslation objectDO NOT DELETE THE GIVEN VELOCITY CURVE OBJECT, IT IS USED DIRECTLY AND WILL BE DESTROYED WHEN THIS GMTRANSFORM OBJECT IS DESTROYED.

Parameters:
translationSpline - the translation spline to use to perform the X, Y and Z translations. DO NOT DELETE THE GIVEN VELOCITY CURVE OBJECT, IT IS USED DIRECTLY AND WILL BE DESTROYED WHEN THIS GMTRANSFORM OBJECT IS DESTROYED.

oGlmPath3* getTranslationSpline()
Gets the translation spline that is being used by this object. DO NOT DELETE/MODIFY THE RETURNED VALUE, IT IS A POINTER TO THE ACTUAL DATA.

Parameters:
translationSpline - the translation spline to use to perform the X, Y and Z translations


This class has no child classes.

Alphabetic index HTML hierarchy of classes or Java



This page was generated with the help of DOC++.