|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.j3d.threeD.raytracer.camera.OrthographicCamera
net.sf.j3d.threeD.raytracer.camera.PinholeCamera
net.sf.j3d.threeD.raytracer.camera.ThinLensCamera
public class 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).
| 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. |
| Methods inherited from class net.sf.j3d.threeD.raytracer.camera.PinholeCamera |
|---|
getBlur, setBlur, toString |
| Methods inherited from class net.sf.j3d.threeD.raytracer.camera.OrthographicCamera |
|---|
getLocation, getRotationMatrix, getUpDirection, getViewDirection, getViewingDirection, setLocation, setUpDirection, setViewDirection, setViewingDirection, updateUVW |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ThinLensCamera()
| Method Detail |
|---|
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 setFocus(double focus)
focus - The focus distance to use.public double getFocus()
public void setFocalLength(double focalLength)
setFocalLength in class PinholeCamerafocalLength - The focal length value to use.public double getFocalLength()
PinholeCamera
getFocalLength in class PinholeCamerapublic void setLensRadius(double radius)
radius - The radius to use.public 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 PinholeCamerai - X coordinate of pixel.j - Y coordinate of pixel.screenW - Width of image.screenH - Height of image.
Camera.rayAt(double, double, int, int)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||