optics.analysis
Class Psf

java.lang.Object
  extended by javax.vecmath.Tuple3d
      extended by javax.vecmath.Point3d
          extended by optics.Position
              extended by 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

Field Summary
protected  double intensity
           
protected  Color psfColour
           
 
Fields inherited from class javax.vecmath.Tuple3d
x, y, z
 
Constructor Summary
Psf()
           
 
Method Summary
abstract  void draw(Graphics2D g)
          Method to draw the Psf in Graphics2D context
 Rectangle2D getBounds()
          Method to get the bounds of the object
 double getIntensity()
          Method to get the intensity
 void setColour(Color c)
          Method to set the colour of the psf when added to Diagram2D classes.
 void setIntensity(double i)
          Method to set the intensity
 
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, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

intensity

protected double intensity

psfColour

protected Color psfColour
Constructor Detail

Psf

public Psf()
Method Detail

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