|
Rings Version 0.3 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectthreeD.raytracer.camera.OrthographicCamera
threeD.raytracer.camera.PinholeCamera
threeD.raytracer.camera.ThinLensCamera
A ThinLensCamera object provides a camera with viewing rays that originate from a random point on a circular lens. By default the width and height of the projection are set to 0.036 by 0.024 and the focal length is set to 0.05. Also, the focus distance is set to 1.0 and the radius of the lens is set to 0.005 (default focal length / 10 to produce an f-number of 5).
| Field Summary |
| Fields inherited from class threeD.raytracer.camera.OrthographicCamera |
u, v |
| Constructor Summary | |
ThinLensCamera()
Constructs a new ThinLensCamera object. |
|
| Method Summary | |
double |
getFocalLength()
Returns the focal length of this PinholeCamera object as a double value. |
double |
getFocus()
|
double[] |
getFOV()
|
double |
getLensRadius()
|
double |
getProjectionHeight()
Returns the projection height of this ThinLensCamera object as a double value. |
double |
getProjectionWidth()
Returns the projection width of this ThinLensCamera object as a double value. |
Ray |
rayAt(double i,
double j,
int screenW,
int screenH)
Returns a Ray object that represents a line of sight from the camera represented by this PinholeCamera object. |
void |
setFocalLength(double focalLength)
Sets the focal length used by this ThinLensCamera object. |
void |
setFocus(double focus)
Sets the distance at which this ThinLensCamera object is focused. |
void |
setLensRadius(double radius)
Sets the radius of the lens used by this ThinLensCamera object. |
void |
setProjectionDimensions(double w,
double h)
Sets the projection dimensions used by this ThinLensCamera object to the specified values. |
void |
setProjectionHeight(double h)
Sets the projection height of this ThinLensCamera object to the specified projection height. |
void |
setProjectionWidth(double w)
Sets the projection width of this ThinLensCamera object to the specified projection width. |
protected void |
updateProjectionDimensions()
|
| Methods inherited from class threeD.raytracer.camera.OrthographicCamera |
getLocation, getRotationMatrix, getUpDirection, getViewDirection, getViewingDirection, setLocation, setUpDirection, setViewDirection, setViewingDirection, updateUVW |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public ThinLensCamera()
| Method Detail |
protected void updateProjectionDimensions()
public void setProjectionDimensions(double w,
double h)
setProjectionDimensions in class OrthographicCamerapublic void setProjectionWidth(double w)
setProjectionWidth in class OrthographicCamerapublic void setProjectionHeight(double h)
setProjectionHeight in class OrthographicCamerapublic double getProjectionWidth()
getProjectionWidth in class OrthographicCamerapublic double getProjectionHeight()
getProjectionHeight in class OrthographicCamerapublic void setFocalLength(double focalLength)
setFocalLength in class PinholeCamerafocalLength - The focalLength value to use.public void setFocus(double focus)
focus - The focus distance to use.public void setLensRadius(double radius)
radius - The radius to use.public double getFocus()
public double getFocalLength()
PinholeCamera
getFocalLength in class PinholeCamerapublic double getLensRadius()
public double[] getFOV()
getFOV in class PinholeCamera
public Ray rayAt(double i,
double j,
int screenW,
int screenH)
PinholeCamera
rayAt in interface CamerarayAt in class PinholeCamera
|
Rings Version 0.3 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||