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 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 coordsdouble
depth(Point3d x)
void
dolly(double scale)
static View3dInfo
fromString(java.lang.String s)
boolean
frontFace(Point3d normal, Point3d p)
boolean
orthographic()
void
panDI(double dx, double dy)
void
set(View3dInfo vi)
void
setCamera(Point3d dirn)
Calculate UVW coordinate system, given view direction, using default up vectorvoid
setCamera(Point3d dirn, Point3d up)
Calculate UVW coordinate system, given view direction, and up vectorvoid
setPerspective(boolean persp)
void
setWindow(double wx, double wy, double wwidth, double wheight)
Set the window on the UV planejava.lang.String
toString()
java.lang.String
toVRML(java.lang.String description)
void
zoom(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:
toString
in classjava.lang.Object
-
fromString
- Throws:
java.lang.NumberFormatException
-
toVRML
public java.lang.String toVRML(java.lang.String description)
-