|
sdr 0.6 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.cscott.sdr.anim.AnimDancer
public abstract class AnimDancer
An AnimDancer encapsulates all the information needed to
display and animate a single dancer. It is given a list of
TimedPositions, and uses these and a BeatTimer
to update the position and animation state of the scene graph Node
corresponding to the dancer.
| Field Summary | |
|---|---|
StandardDancer |
dancer
The StandardDancer corresponding to this animated dancer. |
SwitchNode |
node
The scene graph Node corresponding to this animated dancer. |
| Constructor Summary | |
|---|---|
protected |
AnimDancer(StandardDancer dancer)
|
| Method Summary | |
|---|---|
void |
addAction(Fraction time,
Action target)
Add a new timed action. |
void |
addPosition(Fraction time,
Position target)
Add a new position target. |
TimedPosition |
getLastPosition()
|
TimedPosition |
getNextPosition(Fraction time)
Get the next position with time greater than or equal to the given time. |
abstract void |
update(Fraction time)
Update the node based on the current beat time. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public final StandardDancer dancer
StandardDancer corresponding to this animated dancer.
public final SwitchNode node
Node corresponding to this animated dancer.
| Constructor Detail |
|---|
protected AnimDancer(StandardDancer dancer)
| Method Detail |
|---|
public abstract void update(Fraction time)
public void addPosition(Fraction time,
Position target)
public void addAction(Fraction time,
Action target)
public TimedPosition getNextPosition(Fraction time)
getLastPosition(). Returns null if there is no
position more recent than that returned by
getLastPosition().
public TimedPosition getLastPosition()
|
sdr 0.6 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||