|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.xith3d.schedops.movement.GroupAnimator
org.xith3d.schedops.movement.GroupTranslator
public class GroupTranslator
This class is useful to automatically translate a branch in your scenegraph. Unlike the TranslatableGroup it translates a foreign group and does not extend TransformGroup itself.
| Field Summary |
|---|
| Fields inherited from class org.xith3d.schedops.movement.GroupAnimator |
|---|
rnd, t3dMain, transformNodes |
| Constructor Summary | |
|---|---|
GroupTranslator(Transformable tn)
Creates a new GroupTranslator with default TransformationDirectives in use |
|
GroupTranslator(Transformable tn,
TransformationDirectives transDirecs)
Creates a new GroupTranslator with the given TransformationDirectives in use |
|
GroupTranslator(TransformationDirectives transDirecs)
Creates a new GroupTranslator with the given TransformationDirectives in use |
|
| Method Summary | |
|---|---|
boolean |
animate(long gameTime,
long frameTime,
UpdatingThread.TimingMode timingMode)
calculates positions and rotation of contained objects to render them at their new placement, if the animation has been started. |
protected DistanceInterpolater |
getDistanceInterpolater(TransformationDirectives.Axes axis)
|
protected float |
getTranslationValue(TransformationDirectives.Axes axis,
long gameMicros)
|
void |
setTransformationDirectives(TransformationDirectives transDirecs)
Changes the TransformationDirectives used by this TranslatableGroup |
void |
startAnimation(long gameTime,
UpdatingThread.TimingMode timingMode)
Starts the animation of this object. |
void |
stopAnimation()
Stops the animation of this object. |
| Methods inherited from class org.xith3d.schedops.movement.GroupAnimator |
|---|
addTransformNode, getNumTransformNodes, getTransformationDirectives, getTransformNode, getTransformNode, isAlive, isAnimating, isPersistent, setAlive, setScale, setTransform, setTransformNode, setTransformNode, setTranslation, setTranslation, update |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public GroupTranslator(Transformable tn,
TransformationDirectives transDirecs)
tn - the TransformNode to rotatetransDirecs - the new TransformationDirectivespublic GroupTranslator(TransformationDirectives transDirecs)
transDirecs - the new TransformationDirectivespublic GroupTranslator(Transformable tn)
| Method Detail |
|---|
protected DistanceInterpolater getDistanceInterpolater(TransformationDirectives.Axes axis)
axis - the axis to get the AngleInterpolater for
protected float getTranslationValue(TransformationDirectives.Axes axis,
long gameMicros)
axis - the axis to get the AngleInterpolater forgameMicros - the time to get the value at
public void startAnimation(long gameTime,
UpdatingThread.TimingMode timingMode)
startAnimation in interface AnimatablestartAnimation in class GroupAnimatorpublic void stopAnimation()
stopAnimation in interface AnimatablestopAnimation in class GroupAnimator
public boolean animate(long gameTime,
long frameTime,
UpdatingThread.TimingMode timingMode)
animate in class GroupAnimatorgameTime - the amount of milliseconds since the game startedframeTime - miliseconds needed to render one frame
public void setTransformationDirectives(TransformationDirectives transDirecs)
setTransformationDirectives in class GroupAnimatortransDirecs - the new TransformationDirectives
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||