|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--md3.md3model.MD3ModelVisitor | +--md3.md3view.MD3GLModelVisitor | +--md3.md3view.MD3GLModelChangeCurrentFrameVisitor
An MD3GLModel visitor that walks through an MD3GLModel structure and applies the specified animation operation (NEXT, PREVIOUS or REWIND) to the animation state data of the encounterd models, taking the specified animation into account.
Field Summary | |
protected static float |
FRACTION
|
static int |
NEXT
Switch to the next frame. |
static int |
PREVIOUS
Switch to the previous frame. |
static int |
REWIND
Rewind the animation. |
Constructor Summary | |
MD3GLModelChangeCurrentFrameVisitor(MD3Animation anim,
int op)
Create a new visitor to apply an animation operation (NEXT, REWIND, ...) to a MD3 model. |
|
MD3GLModelChangeCurrentFrameVisitor(MD3Animation anim,
int op,
boolean interpolate)
Create a new visitor to apply an animation operation (NEXT, REWIND, ...) to a MD3 model. |
Method Summary | |
boolean |
getInterpolate()
Is interpolation currently enabled? |
void |
setInterpolate(boolean b)
Enable or disable interpolation. |
void |
visit(MD3GLModel model)
Visit a MD3GLModel object. |
Methods inherited from class md3.md3view.MD3GLModelVisitor |
visit |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Field Detail |
protected static final float FRACTION
public static final int NEXT
Switch to the next frame.
public static final int PREVIOUS
Switch to the previous frame.
public static final int REWIND
Rewind the animation.
Constructor Detail |
public MD3GLModelChangeCurrentFrameVisitor(MD3Animation anim, int op)
Create a new visitor to apply an animation operation (NEXT, REWIND, ...) to a MD3 model. No interpolation will be done.
anim
- The animation that provides the context for the operation.op
- The operation to apply.public MD3GLModelChangeCurrentFrameVisitor(MD3Animation anim, int op, boolean interpolate)
Create a new visitor to apply an animation operation (NEXT, REWIND, ...) to a MD3 model. The operation is executed in the context of the specified animation.
anim
- The animation that provides the context for the operation.op
- The operation to apply.interpolate
- Should interpolation be done?Method Detail |
public void visit(MD3GLModel model)
Visit a MD3GLModel object.
model
- The object to visit.public void setInterpolate(boolean b)
Enable or disable interpolation.
public boolean getInterpolate()
Is interpolation currently enabled?
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |