|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectunc.cdva.graphics.models.AnimatedObject
public class AnimatedObject
Represents an object that possesses multiple animations composed of another texture/model couple and of keyframes. You start the animation by setting currentAnimation to the name of the animation, and then the animation will be displayed and updated every time the object is displayed on the screen
Constructor Summary | |
---|---|
AnimatedObject(StaticListObject baseObject,
java.util.Hashtable<java.lang.String,Animation> animations)
Inits an animated object |
Method Summary | |
---|---|
Object3D |
clone()
Clone the object (copy all the attributes) |
java.util.Hashtable<java.lang.String,Animation> |
getAnimations()
|
StaticListObject |
getBaseObject()
|
java.lang.String |
getCurrentAnimation()
|
boolean |
isAnimationRunning()
|
void |
render(javax.media.opengl.GL gl)
Render an object. |
void |
setAnimations(java.util.Hashtable<java.lang.String,Animation> animations)
|
void |
setBaseObject(StaticListObject baseObject)
|
void |
setCurrentAnimation(java.lang.String animationName)
Set and start an animation. |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AnimatedObject(StaticListObject baseObject, java.util.Hashtable<java.lang.String,Animation> animations)
baseObject
- base objectanimations
- corresponding animationsMethod Detail |
---|
public void setCurrentAnimation(java.lang.String animationName)
animationName
- name of the animationpublic void render(javax.media.opengl.GL gl)
Object3D
render
in interface Object3D
gl
- gl contextObject3D.render(GL)
public Object3D clone()
Object3D
clone
in interface Object3D
clone
in class java.lang.Object
Object3D.clone()
public java.util.Hashtable<java.lang.String,Animation> getAnimations()
public StaticListObject getBaseObject()
public java.lang.String getCurrentAnimation()
public void setAnimations(java.util.Hashtable<java.lang.String,Animation> animations)
animations
- the animations to setpublic void setBaseObject(StaticListObject baseObject)
baseObject
- the baseObject to setpublic boolean isAnimationRunning()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |