optics.analysis
Class Psf
java.lang.Object
javax.vecmath.Tuple3d
javax.vecmath.Point3d
optics.Position
optics.analysis.Psf
- All Implemented Interfaces:
- Serializable, Cloneable, Diagram2DComponent
- Direct Known Subclasses:
- GeometricPsf
public abstract class Psf
- extends Position
- implements Diagram2DComponent
Abstract class to represent a PSF (Point spread function) in a
two dimensional plane.
- See Also:
- Serialized Form
Fields inherited from class javax.vecmath.Tuple3d |
x, y, z |
Constructor Summary |
Psf()
|
Methods inherited from class optics.Position |
add, clone, direction, fromString, fromTokens, getPoint2d, length, lengthSquared, main, max, min, propagate |
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, toString |
intensity
protected double intensity
psfColour
protected Color psfColour
Psf
public Psf()
setIntensity
public void setIntensity(double i)
- Method to set the intensity
- Parameters:
i
- the intensity
getIntensity
public double getIntensity()
- Method to get the intensity
- Returns:
double
the intensity
setColour
public void setColour(Color c)
- Method to set the colour of the psf when added to Diagram2D
classes.
- Parameters:
c
- the Color
getBounds
public Rectangle2D getBounds()
- Method to get the bounds of the object
- Specified by:
getBounds
in interface Diagram2DComponent
- Returns:
Rectangle2D
the bounding Rectangle
draw
public abstract void draw(Graphics2D g)
- Method to draw the Psf in Graphics2D context
- Specified by:
draw
in interface Diagram2DComponent
- Parameters:
g
- the Graphics2D context