All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class utils.d3.Perspective

java.lang.Object
   |
   +----utils.d3.Perspective

public class Perspective
extends Object

Variable Index

 o A
the tangent of the angle which defines the cone of things which are visible
 o down
 o forward
 o loc
the position of the observer
 o OBS
assumed distance (in pixels) between viewers eyes and the screen
 o right
 o size
the size of the view screen

Constructor Index

 o Perspective()

Method Index

 o clearChanged()
 o crane(RotMat)
 o craneRight(double)
 o craneRoll(double)
 o craneUp(double)
 o getCenter()
 o getDepth(ThreeVector)
 o getDisplay(Locator, ThreeVector)
 o getDown()
 o getForward()
 o getRight()
 o hasChanged()
 o rotateObserver(RotMat)
 o set_centered(int, int)
 o set_positionDefaults(double, double)
 o set_scaledDefaults(int, int, double, double)
 o set_scaledScales(int, int, double, double)
 o set_trueDefaults(int, int, double)
 o set_trueScales(int, int)
 o setLocation(ThreeVector)
 o translate(ThreeVector)
 o translateDown(double)
 o translateForward(double)
 o translateRight(double)

Variables

 o OBS
 public static final double OBS
assumed distance (in pixels) between viewers eyes and the screen

 o forward
 protected ThreeVector forward
 o down
 protected ThreeVector down
 o right
 protected ThreeVector right
 o loc
 protected ThreeVector loc
the position of the observer

 o A
 protected double A
the tangent of the angle which defines the cone of things which are visible

 o size
 protected double size
the size of the view screen

Constructors

 o Perspective
 public Perspective()

Methods

 o set_positionDefaults
 public void set_positionDefaults(double a,
                                  double scale)
 o set_trueScales
 public void set_trueScales(int w,
                            int h)
 o set_scaledScales
 public void set_scaledScales(int w,
                              int h,
                              double scale,
                              double distance)
 o set_centered
 public void set_centered(int w,
                          int h)
 o set_scaledDefaults
 public void set_scaledDefaults(int w,
                                int h,
                                double scale,
                                double distance)
 o set_trueDefaults
 public void set_trueDefaults(int w,
                              int h,
                              double scale)
 o hasChanged
 public final boolean hasChanged()
 o clearChanged
 public final void clearChanged()
 o getForward
 public ThreeVector getForward()
 o getRight
 public ThreeVector getRight()
 o getDown
 public ThreeVector getDown()
 o setLocation
 public void setLocation(ThreeVector a)
 o translate
 public void translate(ThreeVector a)
 o rotateObserver
 public void rotateObserver(RotMat r)
 o translateForward
 public final void translateForward(double a)
 o translateRight
 public final void translateRight(double a)
 o translateDown
 public final void translateDown(double a)
 o getCenter
 public final Point getCenter()
 o crane
 public void crane(RotMat r)
 o craneUp
 public final void craneUp(double ang)
 o craneRight
 public final void craneRight(double ang)
 o craneRoll
 public final void craneRoll(double ang)
 o getDisplay
 public final void getDisplay(Locator L,
                              ThreeVector a)
 o getDepth
 public final double getDepth(ThreeVector v)

All Packages  Class Hierarchy  This Package  Previous  Next  Index