|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectmovements.PersonMovement
movements.PersonMovementInTransition
This class implements a movement of a participant that is a transition from one movement to another.
Sometimes one figure or movement may end leaving a person in one position and the next figure or movement starts with that person in a different position. The purpose of this class is to adjust the end of the prior figure and the start of the following figure so that the dancer moves continuously and smoothly from one figure to the next.
| Field Summary | |
private PersonMovement |
followingMovement
|
private PersonMovement |
priorMovement
|
private double |
rateOfAdjustmentAcross
|
private double |
rateOfAdjustmentDirection
|
private double |
rateOfAdjustmentDown
|
protected int |
tickLength
|
private ParticipantPosition |
unadjustedPosition
Work object used to obtain the position where the participant would have been were there no adjustment for the transition. |
| Constructor Summary | |
(package private) |
PersonMovementInTransition(PersonMovement priorMovement,
PersonMovement followingMovement)
|
| Method Summary | |
(package private) ParticipantPosition |
getPosition(int ticksIntoMovement)
|
(package private) void |
getPosition(ParticipantPosition position,
int ticksIntoMovement)
|
(package private) int |
getTickLength()
|
private void |
readObject(java.io.ObjectInputStream in)
|
private double |
shortestTurn(double turnAngle)
Given an angle, in radians, that specifies an angle through which a dancer must turn, this method returns a turn angle that gets the dancer to face the same direction but by minimizing the amount of turning. |
(package private) PersonMovement |
splitMovement(int subPeriodStartTick,
int subPeriodEndTick)
Provides a movement that covers only a period of this movement. |
protected PersonMovement |
splitMovementInternal(int subPeriodStartTick,
int subPeriodEndTick)
Provides a movement that covers only a period of this movement. |
void |
Trace(java.lang.String indent)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
private PersonMovement priorMovement
private PersonMovement followingMovement
private double rateOfAdjustmentDown
private double rateOfAdjustmentAcross
private double rateOfAdjustmentDirection
private transient ParticipantPosition unadjustedPosition
protected int tickLength
| Constructor Detail |
PersonMovementInTransition(PersonMovement priorMovement,
PersonMovement followingMovement)
| Method Detail |
private void readObject(java.io.ObjectInputStream in)
throws java.io.IOException,
java.lang.ClassNotFoundException
java.io.IOException
java.lang.ClassNotFoundExceptionprivate double shortestTurn(double turnAngle)
void getPosition(ParticipantPosition position,
int ticksIntoMovement)
getPosition in class PersonMovementpublic void Trace(java.lang.String indent)
Trace in class PersonMovementint getTickLength()
ParticipantPosition getPosition(int ticksIntoMovement)
final PersonMovement splitMovement(int subPeriodStartTick,
int subPeriodEndTick)
protected PersonMovement splitMovementInternal(int subPeriodStartTick,
int subPeriodEndTick)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||