|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectoptics.Optics
optics.ParaxialPlanes
public class ParaxialPlanes
Class to manipulate paraxial system and image planes and the relations between them. All coordinates are globals.
Field Summary |
---|
Fields inherited from class optics.Optics |
---|
DEFAULT_WAVELENGTH, errorStream, fmt, MICRONS |
Constructor Summary | |
---|---|
ParaxialPlanes(LensSystem lens,
double lambda)
Constructor for ParaxialPlanes with the imaging system specifed by a LensSystem at a specified wavelength. |
|
ParaxialPlanes(ParaxialGroup g)
Constructor to form ParaxialPlanes with the imaging system specified by a ParaxialGroup. |
|
ParaxialPlanes(ParaxialSystem s)
Constructor to form ParaxialPlanes with the imaging system specified by a ParaxialGroup. |
Method Summary | |
---|---|
void |
draw(java.awt.Graphics2D g)
Method to draw the planes in a Graphics2D context |
java.awt.geom.Rectangle2D |
getBounds()
Method to get the graphical bounds all the pkanes. |
double |
getImageHeight()
Method to get image height |
double |
getImagePlane()
Return the image plane, if set, else Double.NaN |
double |
getLinearMagnification()
Return the lienar magnification between image to object plane if set, else Double.NaN |
double |
getObjectHeight()
Method to get object height |
double |
getObjectPlane()
Return the object plane if set, else Double.NaN |
ParaxialGroup |
getParaxialGroup()
Method to get the underlying ParaxialGroup |
javax.vecmath.Point2d |
imagePoint(javax.vecmath.Point2d objectPoint)
Method to get a image point for a two-dimensional objectpoint assumed to be in the objectPlane |
void |
setImageHeight(double h)
Method to set image height |
void |
setImagePlane(double z)
Set the image plane with respect to the origin and also calculate the object plane and linear magnification. |
void |
setLinearMagnification(double m)
Set the lienar magnification and calculate the locations of the object and image planes, with object plane will be to the left of the input plane. |
void |
setObjectHeight(double h)
Method to set object height |
void |
setObjectPlane(double z)
Set the object plane and also calculate the image plane and linear magnification. |
java.lang.String |
toString()
String method print the planes to a String. |
Methods inherited from class optics.Optics |
---|
getDefaultWaveLength, getErrorStream, getFormatString, getName, getStaticName, getVersion, printError, setDefaultWaveLength, setErrorStream, setFormatString, setMicrons |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ParaxialPlanes(ParaxialGroup g)
g
- the ParaxialGrouppublic ParaxialPlanes(ParaxialSystem s)
s
- the ParaxialSystempublic ParaxialPlanes(LensSystem lens, double lambda)
LensSystem at a specified wavelength.
The OpticalGroup is internally represebred by a
ParaxialGroup
that can be accesses by
getParaxialGroup()
.
- Parameters:
lens
- the lens system.lambda
- the wavelength in microns
Method Detail |
---|
public java.lang.String toString()
toString
in class java.lang.Object
public ParaxialGroup getParaxialGroup()
ParaxialGroup
the parxial lenspublic double getObjectPlane()
Double.NaN
double
location of object planepublic double getImagePlane()
Double.NaN
double
location of image planepublic double getLinearMagnification()
Double.NaN
double
the linear magnification.public void setObjectPlane(double z)
z
- Position of object plane in global coordinates.public void setImagePlane(double z)
z
- Position of object planspublic void setLinearMagnification(double m)
m
- the magnificationpublic void setObjectHeight(double h)
public void setImageHeight(double h)
public double getObjectHeight()
public double getImageHeight()
public javax.vecmath.Point2d imagePoint(javax.vecmath.Point2d objectPoint)
objectPoint
- Point2d in object plane
Point2d
Gaussian point in image planepublic java.awt.geom.Rectangle2D getBounds()
getBounds
in interface Diagram2DComponent
Rectangle2D
the boundspublic void draw(java.awt.Graphics2D g)
draw
in interface Diagram2DComponent
g
- the Graphics2D
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |