edu.ohiou.cs456_badabing.sceneapi.exec
Class ViewPanel.zoomerInner

java.lang.Object
  extended by edu.ohiou.cs456_badabing.sceneapi.exec.ViewPanel.zoomerInner
Enclosing class:
ViewPanel

private class ViewPanel.zoomerInner
extends java.lang.Object

inner class to handle zooming in stuff.

Description: Experimentation with JOGL

Copyright: Copyright (c) 2008, Lev A Neiman

Company: Ohio University EECS


Field Summary
 long duration
          how long should the whole zoom-in process take place (in milliseconds) ? 1000 * 2 = 2 seconds.
private  double scale_i
          values of position, zoom_in and tilt at the time of creation.
(package private)  boolean should_destroy
          if this is set to true then shouldDestroy will return true, do appropriate steps, and display method will destroy instance of this object by setting it to null.
private  long start_time
          time that this object was created.
private  Coordinate where
          Coordinate of where zooming in should zoom in to.
private  double x_disp_i
          values of position, zoom_in and tilt at the time of creation.
private  double xtilt_i
          values of position, zoom_in and tilt at the time of creation.
private  double y_disp_i
          values of position, zoom_in and tilt at the time of creation.
private  double ytilt_i
          values of position, zoom_in and tilt at the time of creation.
private  double z_disp_i
          values of position, zoom_in and tilt at the time of creation.
 double zdisp_f
          this is equivalent to how close the zoom_in should be when its done.
 
Constructor Summary
ViewPanel.zoomerInner(Coordinate where)
          default constructor.
 
Method Summary
 boolean shouldDestroy()
          if this object should be destroyes, then set position and tilt values to their final ones, and return true so display method can destroy this object.
 void step()
          advance one step in zooming process.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

should_destroy

boolean should_destroy
if this is set to true then shouldDestroy will return true, do appropriate steps, and display method will destroy instance of this object by setting it to null.


start_time

private long start_time
time that this object was created.


xtilt_i

private double xtilt_i
values of position, zoom_in and tilt at the time of creation.


ytilt_i

private double ytilt_i
values of position, zoom_in and tilt at the time of creation.


x_disp_i

private double x_disp_i
values of position, zoom_in and tilt at the time of creation.


y_disp_i

private double y_disp_i
values of position, zoom_in and tilt at the time of creation.


z_disp_i

private double z_disp_i
values of position, zoom_in and tilt at the time of creation.


scale_i

private double scale_i
values of position, zoom_in and tilt at the time of creation.


where

private Coordinate where
Coordinate of where zooming in should zoom in to.


duration

public long duration
how long should the whole zoom-in process take place (in milliseconds) ? 1000 * 2 = 2 seconds.


zdisp_f

public double zdisp_f
this is equivalent to how close the zoom_in should be when its done.

Constructor Detail

ViewPanel.zoomerInner

public ViewPanel.zoomerInner(Coordinate where)
default constructor.

Parameters:
where - Coordinate
Method Detail

step

public void step()
advance one step in zooming process.


shouldDestroy

public boolean shouldDestroy()
if this object should be destroyes, then set position and tilt values to their final ones, and return true so display method can destroy this object.

Returns:
boolean