|
||||||||||
| 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.GroupRotator
public class GroupRotator
This class is useful to automatically rotate a branch in your scenegraph. Unlike the RotatableGroup it rotates 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 | |
|---|---|
GroupRotator(Transformable tn)
Creates a new GroupRotater with default TransformationDirectives in use. |
|
GroupRotator(Transformable tn,
TransformationDirectives rotDirecs)
Creates a new GroupRotater with the given TransformationDirectives in use. |
|
GroupRotator(TransformationDirectives rotDirecs)
Creates a new GroupRotater 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 AngleInterpolater |
getAngleInterpolater(TransformationDirectives.Axes axis)
|
protected float |
getRotationValue(TransformationDirectives.Axes axis,
long gameMicros)
|
void |
setTransformationDirectives(TransformationDirectives rotDirecs)
Changes the RotationDirectives used by this RotatableGroup. |
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 GroupRotator(Transformable tn,
TransformationDirectives rotDirecs)
tn - the TransformNode to rotaterotDirecs - the new TransformationDirectivespublic GroupRotator(TransformationDirectives rotDirecs)
rotDirecs - the new TransformationDirectivespublic GroupRotator(Transformable tn)
| Method Detail |
|---|
protected AngleInterpolater getAngleInterpolater(TransformationDirectives.Axes axis)
axis - the axis to get the AngleInterpolater for
protected float getRotationValue(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 rotDirecs)
setTransformationDirectives in class GroupAnimatorrotDirecs - the new RotationDirectives
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||