optics.graphics
Class RayAberration

java.lang.Object
  extended by optics.Optics
      extended by optics.graphics.RayAberration

public class RayAberration
extends Optics

Class to plot the RayAberration for various conditions.


Field Summary
 ptolemy.plot.Plot plot
          The ptplot object to which plots formed.
 int[] plots
          Public boolean array to control which plot are formed in which DataSets.
 
Fields inherited from class optics.Optics
DEFAULT_WAVELENGTH, errorStream, fmt, MICRONS
 
Constructor Summary
RayAberration(OpticalGroup g)
          Form a RayAberration object for a specified OpticalGroup at current DEFAULT_WAVELENGTH
RayAberration(OpticalGroup g, double lambda)
          Form a RayAberration object for a specified OpticalGroup at specified wavelength
 
Method Summary
 ptolemy.plot.Plot distortionPlot(double field, double lambda)
          Form the distortion plot up to the specified field angle and wavelength
 ptolemy.plot.Plot getPlot()
          Method get the current Plot
 void setPlot(ptolemy.plot.Plot p)
          Method to set the Plot object
 void setRayNumber(int n)
          Method to set the number of rays, so point on plots.
 void setWaveLength(double lambda)
          Method to set the wavelength of the analysis.
 ptolemy.plot.Plot transversePlot(double theta)
          Method to give a default transverse ray aberration plot at specified angle using the design wavelength in the geometric back focal plane of the lens.
 ptolemy.plot.Plot transversePlot(double theta, double lambda, double plane)
          Method to get the transverse aberrations plots for infinite object at specified angle, and wavelength in specified plane.
 ptolemy.plot.Plot transversePlot(Position object)
          Method to give a default transverse aberration plot with with rays from specified object point at the wavelength set by {#link #setWaveLength}.
 ptolemy.plot.Plot transversePlot(Position object, double lambda, double plane)
          Method to form a transverse ray aberration plot with rays from a specified object point as specified wavelength and plane
 
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, toString, wait, wait, wait
 

Field Detail

plot

public ptolemy.plot.Plot plot
The ptplot object to which plots formed.


plots

public int[] plots
Public boolean array to control which plot are formed in which DataSets.

Constructor Detail

RayAberration

public RayAberration(OpticalGroup g,
                     double lambda)
Form a RayAberration object for a specified OpticalGroup at specified wavelength

Parameters:
g - the lens group.
lambda - the wavelength

RayAberration

public RayAberration(OpticalGroup g)
Form a RayAberration object for a specified OpticalGroup at current DEFAULT_WAVELENGTH

Parameters:
g - the lens group.
Method Detail

setRayNumber

public void setRayNumber(int n)
Method to set the number of rays, so point on plots.

Parameters:
n - the number of rays.

setWaveLength

public void setWaveLength(double lambda)
Method to set the wavelength of the analysis.

Parameters:
lambda - the wavelength

setPlot

public void setPlot(ptolemy.plot.Plot p)
Method to set the Plot object

Parameters:
p - the Plot object on which plots are formed

getPlot

public ptolemy.plot.Plot getPlot()
Method get the current Plot

Returns:
Plot containing the graphs.

transversePlot

public ptolemy.plot.Plot transversePlot(double theta)
Method to give a default transverse ray aberration plot at specified angle using the design wavelength in the geometric back focal plane of the lens.

Parameters:
theta - field angle.

transversePlot

public ptolemy.plot.Plot transversePlot(double theta,
                                        double lambda,
                                        double plane)
Method to get the transverse aberrations plots for infinite object at specified angle, and wavelength in specified plane.

Note origin of the graph will be calculated using the design wavelength, setWaveLength(double) while the actual ray aberration will be calculated using the specified wavelength.

Parameters:
theta - field angle
lambda - the plot wavelength
plane - the ray plane

transversePlot

public ptolemy.plot.Plot transversePlot(Position object)
Method to give a default transverse aberration plot with with rays from specified object point at the wavelength set by {#link #setWaveLength}. The plot will occur in the geometric image plane.

Parameters:
object - the object location.

transversePlot

public ptolemy.plot.Plot transversePlot(Position object,
                                        double lambda,
                                        double plane)
Method to form a transverse ray aberration plot with rays from a specified object point as specified wavelength and plane

Note origin of the graph will be calculated using the design wavelength, setWaveLength(double) while the actual ray aberration will be calculated using the specified wavelength.

Parameters:
object - the object position from which rays come
lambda - the analysis wavelength
plane - the aberration in formed in.

distortionPlot

public ptolemy.plot.Plot distortionPlot(double field,
                                        double lambda)
Form the distortion plot up to the specified field angle and wavelength

Parameters:
field - the maximum half-field angle
lambda - the wavelength