class GmAnimatedWidget

The animated widget class encapsulates all animation behavior for glam components

Inheritance:


Public Methods

[more] GmAnimatedWidget ()
Standard constructor
[more]virtual void animationFinished (GmTypes::AnimationType animationType)
This is a callback that is called whenever an animation completes running.
[more]virtual void applyAnimationTransforms ()
Applies all animation transforms for the current component based on the current animation that is active
[more]virtual void setEventAnimation (GmTypes::AnimationType animType, GmAnimation* animation)
Sets the animation to use for a particular animation type.
[more]virtual ~GmAnimatedWidget ()
Standard destructor

Protected Fields

[more]GmAnimation* mAppearAnimation
The appear animation is performed when the setVisible(true) method is called upon the GLAM component
[more]GmTypes::AnimationType mCurrentAnimation
The current animation type that is being played back
[more]GmAnimation* mIdleAnimation
The idle animation is played whenever this GLAM component is just sitting around doing nothing
[more]GmAnimation* mVanishAnimation
The vanish animation is performed when the setVisible(false) method is called upon the GLAM component


Inherited from GmDrawable:

Public Methods

ovirtual void applyLayout(float minX, float minY, float minZ, float maxX, float maxY, float maxZ)
ovirtual GlmColor4* getBaseColor()
ovirtual GmTypes::CoordinateType getCoordType()
ovirtual float getDepth()
ovirtual float getGlDepth()
ovirtual void getGlExtents(float& width, float& height)
ovirtual float getGlHeight()
ovirtual GlmPoint3* getGlPosition()
ovirtual float getGlWidth()
ovirtual float getHeight()
ovirtual void getMinimumGeometry(float& width, float& height, float& depth)
ovirtual GlmPoint3* getPosition()
ovirtual bool getVisible()
ovirtual float getWidth()
ovirtual void render(GmTypes::RenderOptionType renderOptions)
ovirtual void setAbsoluteGeometry(float x, float y, float z, float width, float height, float depth)
ovirtual void setBaseColor(GlmColor4* color)
ovirtual void setBaseColor(float r, float g, float b, float a)
ovirtual void setCoordType(GmTypes::CoordinateType coordType)
ovirtual void setDepth(float depth)
ovirtual void setHeight(float height)
ovirtual void setPosition(GlmPoint3* point)
ovirtual void setPosition(float x, float y, float z)
ovirtual void setRelativeGeometry(float x, float y, float width, float height)
ovirtual void setRelativeGeometry(float x, float y, float z, float width, float height, float depth)
ovirtual void setVisible(bool visible)
ovirtual void setWidth(float width)

Protected Fields

oGlmColor4 mBaseColor
oGmTypes::CoordinateType mCoordType
ofloat mDepth
obool mDisplayListGenerate
oint mDisplayListId
ofloat mGlDepth
ofloat mGlHeight
oGlmPoint3 mGlPosition
ofloat mGlWidth
ofloat mHeight
oGlmPoint3 mPosition
obool mVisible
ofloat mWidth

Protected Methods

ovirtual bool getDisplayListGenerate()
ovirtual int getDisplayListId()
ovirtual void render2d(GmTypes::RenderOptionType renderOptions)
ovirtual void render2dSelect(GmTypes::RenderOptionType renderOptions)
ovirtual void setDisplayListGenerate(bool generate)
ovirtual void setDisplayListId(int id)


Inherited from GmObject:

Public Methods

ounsigned short getObjectId()

Protected Fields

oThe object ID is used to uniquely identify each GmObject unsigned short mObjectId


Inherited from GmAnimationEventHandler:


Documentation

The animated widget class encapsulates all animation behavior for glam components
oGmTypes::AnimationType mCurrentAnimation
The current animation type that is being played back

oGmAnimation* mAppearAnimation
The appear animation is performed when the setVisible(true) method is called upon the GLAM component

oGmAnimation* mVanishAnimation
The vanish animation is performed when the setVisible(false) method is called upon the GLAM component

oGmAnimation* mIdleAnimation
The idle animation is played whenever this GLAM component is just sitting around doing nothing

o GmAnimatedWidget()
Standard constructor

ovirtual ~GmAnimatedWidget()
Standard destructor

ovirtual void setEventAnimation(GmTypes::AnimationType animType, GmAnimation* animation)
Sets the animation to use for a particular animation type. Animation types can include mouse button presses, keyboard presses, idle loops, and other various times in which an animation would play.

Parameters:
animType - the animation type to associate with the given animation.
animation - the animation to associate with the given animation type.

ovirtual void applyAnimationTransforms()
Applies all animation transforms for the current component based on the current animation that is active

ovirtual void animationFinished(GmTypes::AnimationType animationType)
This is a callback that is called whenever an animation completes running. The animation type is returned to denote which animation has completed running.


Direct child classes:
GmInteractiveWidget
GmDecorator

Alphabetic index HTML hierarchy of classes or Java



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