Class RotationAnimator

java.lang.Object
cz.fidentis.analyst.rendering.RotationAnimator

public class RotationAnimator extends Object
Animates rotation and zooming of objects, e.g., a camera in a GLCanvas or 3D shapes in the scene.
  • 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

      public void startAnimation(AnimationDirection dir, Animatable animObj)
      Starts the animation.This method is invoked after the mouse key is pressed and hold
      Parameters:
      dir - Animation direction
      animObj - 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.