class GmAnimationSegment

An animation segment defines a set of motions (translation, rotation and scale) that occur over a certain period of time.

Public Methods

[more] GmAnimationSegment ()
Standard constructor
[more]virtual void applyAnimationTransforms (float secondsElapsed)
Applies all translation, scaling and rotation associated with this animation segment at the given time period.
[more]virtual float getLength ()
Gets the temporal length of the animation segment.
[more]GmRotation* getRotation ()
Gets the rotation motion for this animation segment.
[more]GmScale* getScale ()
Gets the scaling motion for this animation segment.
[more]GmTranslation* getTranslation ()
Gets the translation motion for this animation segment.
[more]virtual void setLength (float seconds)
Sets the temporal length of the animation segment in seconds.
[more]void setRotation (GmRotation* rotation)
Sets the rotation motion for this animation segment.
[more]void setScale (GmScale* scale)
Sets the scaling motion for this animation segment.
[more]void setTranslation (GmTranslation* translation)
Sets the translation motion for this animation segment.
[more]virtual ~GmAnimationSegment ()
Standard destructor

Protected Fields

[more]float mLengthInSeconds
The length in seconds of this animation segment
[more]GmRotation* mRotation
The rotation movement associated with this animation segment.
[more]GmScale* mScale
The scale changes associated with this animation segment.
[more]GmTranslation* mTranslation
The translation movement associated with this animation segment.


Documentation

An animation segment defines a set of motions (translation, rotation and scale) that occur over a certain period of time. The animation segment is usually chained together with other animation segments to provide complex movements for glam components.
oGmRotation* mRotation
The rotation movement associated with this animation segment. This controls how the object rotates in the X, Y, and Z axes.

oGmScale* mScale
The scale changes associated with this animation segment. This member variable controls how the object scales in the X, Y and Z directions during the animation segment.

oGmTranslation* mTranslation
The translation movement associated with this animation segment. This value describes how the object translates in the X, Y and Z directions during the animation segment.

ofloat mLengthInSeconds
The length in seconds of this animation segment

o GmAnimationSegment()
Standard constructor

ovirtual ~GmAnimationSegment()
Standard destructor

ovirtual void setLength(float seconds)
Sets the temporal length of the animation segment in seconds.

Parameters:
seconds - the length of the animation segment in seconds.

ovirtual float getLength()
Gets the temporal length of the animation segment.

Returns:
the temporal length of the animation segment in seconds.

ovoid setRotation(GmRotation* rotation)
Sets the rotation motion for this animation segment.

Parameters:
rotation - the rotation motion for this animation. DO NOT DELETE THE GIVEN POINTER AS IT IS USED AS-IS. THE ANIMATION SEGMENT WILL DELETE IT WHEN IT IS DONE WITH IT.

oGmRotation* getRotation()
Gets the rotation motion for this animation segment.

Returns:
s the rotation motion for this animation segment. DO NOT DELETE THE POINTER THAT THIS METHOD RETURNS, IT IS A POINTER TO A CLASS MEMBER.

ovoid setScale(GmScale* scale)
Sets the scaling motion for this animation segment.

Parameters:
scale - the scaling motion for this animation segment. DO NOT DELETE THE GIVEN POINTER AS IT IS USED AS-IS. THE ANIMATION SEGMENT WILL DELETE IT WHEN IT IS DONE WITH IT.

oGmScale* getScale()
Gets the scaling motion for this animation segment.

Returns:
s the scaling motion for this animation segment. DO NOT DELETE THE POINTER THAT THIS METHOD RETURNS, IT IS A POINTER TO A CLASS MEMBER.

ovoid setTranslation(GmTranslation* translation)
Sets the translation motion for this animation segment.

Parameters:
translation - the translation motion for this animation segment. DO NOT DELETE THE GIVEN POINTER AS IT IS USED AS-IS. THE ANIMATION SEGMENT WILL DELETE IT WHEN IT IS DONE WITH IT.

oGmTranslation* getTranslation()
Gets the translation motion for this animation segment.

Returns:
s the translation motion for this animation segment. DO NOT DELETE THE POINTER THAT THIS METHOD RETURNS, IT IS A POINTER TO A CLASS MEMBER.

ovirtual void applyAnimationTransforms(float secondsElapsed)
Applies all translation, scaling and rotation associated with this animation segment at the given time period.

Parameters:
secondsElapsed - the number of seconds that have elapsed in the animation segment.


This class has no child classes.

Alphabetic index HTML hierarchy of classes or Java



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