|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.vecmath.Tuple3d
javax.vecmath.Point3d
optics.Position
optics.analysis.Psf
optics.analysis.GeometricPsf
public class GeometricPsf
Class to form and calcualte the Geometric PSF as a best fitting ellipse in the x/y plane
Field Summary |
---|
Fields inherited from class optics.analysis.Psf |
---|
intensity, psfColour |
Fields inherited from class javax.vecmath.Tuple3d |
---|
x, y, z |
Constructor Summary | |
---|---|
GeometricPsf()
Form a default psf being at position (0,0,0) or radius and intensity also set to zero. |
|
GeometricPsf(Position p,
double i,
double r)
Form a circular geometric Psf with |
|
GeometricPsf(Position p,
double i,
double a,
double b,
double alpha)
Form a geometric Psf with all parameters speficied |
|
GeometricPsf(RayPencil p,
double plane)
Form the Geometric PSF from where a RayPencil intersects a specifed plane. |
|
GeometricPsf(RayPencil p,
OpticalPlane plane)
Form the Geometric PSF from where a RayPencil intersects a specifed OpticalPlane |
Method Summary | |
---|---|
void |
draw(Graphics2D g)
Method to draw the component in Graphics2D context. |
double |
getAngle()
Method to get the angle of the ellipse wrt to the x axis. |
double |
getArea()
Method to get the area of the PSF |
double |
getEccentricity()
Method to get the eccentricity of the PSF |
double |
getRadius()
Method to get average radius |
void |
set(Moments m,
double plane)
Method to set the Psf from moments (to second order) in a spefied plane. |
void |
set(RayPencil pencil,
double plane)
Method set the psf from a RayPencil in a specified plane. |
void |
set(RayPencil pencil,
OpticalPlane plane)
Method set the psf from a RayPencil in a specified OpticalPlane |
String |
toString()
Method format the PSF as a String |
Methods inherited from class optics.analysis.Psf |
---|
getBounds, getIntensity, setColour, setIntensity |
Methods inherited from class optics.Position |
---|
add, clone, direction, fromString, fromTokens, getPoint2d, length, lengthSquared, main, max, min, propagate |
Methods inherited from class javax.vecmath.Point3d |
---|
distance, distanceL1, distanceLinf, distanceSquared, project |
Methods inherited from class javax.vecmath.Tuple3d |
---|
absolute, absolute, add, add, clamp, clamp, clamp, clamp, clampMax, clampMax, clampMax, clampMax, clampMin, clampMin, clampMin, clampMin, epsilonEquals, equals, equals, get, get, getX, getY, getZ, hashCode, interpolate, interpolate, interpolate, interpolate, negate, negate, scale, scale, scaleAdd, scaleAdd, scaleAdd, set, set, set, set, setX, setY, setZ, sub, sub |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public GeometricPsf(Position p, double i, double a, double b, double alpha)
p
- positioni
- the intensitya
- the major axisb
- the minor axisalpha
- the ellipse anglepublic GeometricPsf(Position p, double i, double r)
p
- positioni
- the intensityr
- radiuspublic GeometricPsf()
public GeometricPsf(RayPencil p, double plane)
p
- the Raypencilplane
- the z-planepublic GeometricPsf(RayPencil p, OpticalPlane plane)
p
- the Raypencilplane
- the OpticalPlaneMethod Detail |
---|
public void set(RayPencil pencil, double plane)
pencil
- RayPencil containing the rays.plane
- plane where PSF is to be calculatedpublic void set(RayPencil pencil, OpticalPlane plane)
OpticalPlane
pencil
- RayPencil containing the rays.plane
- OpticalPlane withe the PSF is specfified.public void set(Moments m, double plane)
m
- the Monenst to secton order.plane
- the z-location of the plane.public double getEccentricity()
double
the eccentricity of the ellipsepublic double getAngle()
double
the angle of the ellipsepublic double getArea()
double
the area of the ellipse.public double getRadius()
double
the radiuspublic String toString()
toString
in class Tuple3d
String
formatted string.public void draw(Graphics2D g)
draw
in interface Diagram2DComponent
draw
in class Psf
g
- the Graphics2D context
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |