Package cz.fidentis.analyst.rendering
Class RotationAnimator
java.lang.Object
cz.fidentis.analyst.rendering.RotationAnimator
Animates rotation and zooming of objects, e.g., a camera in a GLCanvas
or 3D shapes in the scene.
-
Constructor Summary
ConstructorsConstructorDescriptionConstructor.RotationAnimator
(com.jogamp.opengl.awt.GLCanvas glCanvas) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionvoid
startAnimation
(AnimationDirection dir, Animatable animObj) Starts the animation.This method is invoked after the mouse key is pressed and holdvoid
Stops the animation.This method is invoked after the mouse key is clicked only.
-
Constructor Details
-
RotationAnimator
public RotationAnimator(com.jogamp.opengl.awt.GLCanvas glCanvas) Constructor.- Parameters:
glCanvas
- OpenGL canvas- Throws:
IllegalArgumentException
- if some argument is missing
-
RotationAnimator
public RotationAnimator()Constructor.
-
-
Method Details
-
startAnimation
Starts the animation.This method is invoked after the mouse key is pressed and hold- Parameters:
dir
- Animation directionanimObj
- Object to be animated- Throws:
UnsupportedOperationException
- if there is unfinished animation
-
stopAnimation
public void stopAnimation()Stops the animation.This method is invoked after the mouse key is clicked only.
-