class GmTransform

The base class for all animation primitives in GLAM.

Inheritance:


Public Methods

[more] GmTransform ()
Standard constructor
[more]virtual void applyTransform (float percentageElapsed)
Applies an OpenGL transformation given the percentage of the total transformation curve.
[more]virtual GlmPath2* getVelocityCurve ()
Gets the velocity curve for this transformation object.
[more]virtual void setVelocityCurve (GlmPath2* velocityCurve)
Sets the velocity curve to the given GlmPath2 object, which affects the final position of the object.
[more]virtual ~GmTransform ()
Standard virtual destructor

Protected Fields

[more]GlmPath2* mVelocityCurve
The velocity curve affects the speed at which an object accelerates and decelerates during the course of a transform.


Documentation

The base class for all animation primitives in GLAM. All animation primitives must be able to perform a specific set of OpenGL transformations given a certain percentage of elapsed time. All animations also have a velocity curve to determine how fast they transition from one part of the path to the next.
oGlmPath2* mVelocityCurve
The velocity curve affects the speed at which an object accelerates and decelerates during the course of a transform. For example, how quickly an object translates from point A to point B can be affected by the velocity curve and is completely separate from the route the object takes from point A to point B. If the velocity curve is not set, a constant transformation velocity is assumed.

o GmTransform()
Standard constructor

ovirtual ~GmTransform()
Standard virtual destructor

ovirtual void applyTransform(float percentageElapsed) = 0
Applies an OpenGL transformation 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

ovirtual void setVelocityCurve(GlmPath2* velocityCurve)
Sets the velocity curve to the given GlmPath2 object, which affects the final position of the object. For example, how quickly an object translates from point A to point B can be affected by the velocity curve and is completely separate from the route the object takes from point A to point B.

Parameters:
velocityCurve - the curve defining acceleration and deceleration points in the transformation. DO NOT DELETE THE GIVEN VELOCITY CURVE OBJECT, IT IS USED DIRECTLY AND WILL BE DESTROYED WHEN THIS GMTRANSFORM OBJECT IS DESTROYED.

ovirtual GlmPath2* getVelocityCurve()
Gets the velocity curve for this transformation object.

Returns:
the curve defining acceleration and deceleration points in the transformation. DO NOT DELETE THE RETURNED VELOCITY CURVE OBJECT. It is a pointer to the classes data.


Direct child classes:
GmTranslation
GmScale
GmRotation

Alphabetic index HTML hierarchy of classes or Java



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