Package au.edu.unsw.cse
Class View3dInfo
java.lang.Object
au.edu.unsw.cse.View3dInfo
- Direct Known Subclasses:
View3d
public class View3dInfo
extends java.lang.Object
-
Field Summary
-
Constructor Summary
Constructors Constructor Description View3dInfo()View3dInfo(boolean persp)View3dInfo(Point3d dirn)View3dInfo(Point3d dirn, boolean persp)View3dInfo(Point3d dirn, Point3d up)View3dInfo(Point3d dirn, Point3d up, boolean persp)View3dInfo(Point3d dirn, Point3d up, double dinverse)View3dInfo(Point3d dirn, Point3d up, double dinverse, double wx, double wy, double wwidth, double wheight) -
Method Summary
Modifier and Type Method Description voidadjustCameraDI(double dx, double dy)Adjust the position of the camera, given a displacement of the view position relative to U and V vectors adjustment is given in Device Independant coordsdoubledepth(Point3d x)voiddolly(double scale)static View3dInfofromString(java.lang.String s)booleanfrontFace(Point3d normal, Point3d p)booleanorthographic()voidpanDI(double dx, double dy)voidset(View3dInfo vi)voidsetCamera(Point3d dirn)Calculate UVW coordinate system, given view direction, using default up vectorvoidsetCamera(Point3d dirn, Point3d up)Calculate UVW coordinate system, given view direction, and up vectorvoidsetPerspective(boolean persp)voidsetWindow(double wx, double wy, double wwidth, double wheight)Set the window on the UV planejava.lang.StringtoString()java.lang.StringtoVRML(java.lang.String description)voidzoom(double scale)Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Field Details
-
wx
protected double wx -
wy
protected double wy -
wwidth
protected double wwidth -
wheight
protected double wheight -
dinverse
protected double dinverse -
u
-
v
-
w
-
-
Constructor Details
-
View3dInfo
public View3dInfo() -
View3dInfo
public View3dInfo(boolean persp) -
View3dInfo
-
View3dInfo
-
View3dInfo
-
View3dInfo
-
View3dInfo
-
View3dInfo
-
-
Method Details
-
set
-
orthographic
public boolean orthographic() -
setPerspective
public void setPerspective(boolean persp) -
setCamera
Calculate UVW coordinate system, given view direction, and up vector -
setCamera
Calculate UVW coordinate system, given view direction, using default up vector -
adjustCameraDI
public void adjustCameraDI(double dx, double dy)Adjust the position of the camera, given a displacement of the view position relative to U and V vectors adjustment is given in Device Independant coords -
panDI
public void panDI(double dx, double dy) -
zoom
public void zoom(double scale) -
dolly
public void dolly(double scale) -
setWindow
public void setWindow(double wx, double wy, double wwidth, double wheight)Set the window on the UV plane -
depth
-
frontFace
-
toString
public java.lang.String toString()- Overrides:
toStringin classjava.lang.Object
-
fromString
- Throws:
java.lang.NumberFormatException
-
toVRML
public java.lang.String toVRML(java.lang.String description)
-