optics
Class QuadricMirror

java.lang.Object
  extended by optics.Optics
      extended by optics.OpticalSurface
          extended by optics.OpticalPlane
              extended by optics.QuadricSurface
                  extended by optics.QuadricMirror
All Implemented Interfaces:
Diagram2DComponent
Direct Known Subclasses:
ParabolicMirror, SphericalMirror

public class QuadricMirror
extends QuadricSurface

Class to implements Quadric Mirror with reference point


Field Summary
protected  double centralAperture
          Protected double for central open aperture
 
Fields inherited from class optics.QuadricSurface
curvature, epsilon
 
Fields inherited from class optics.OpticalPlane
blockedNormal, maxRadius, planeNormal
 
Fields inherited from class optics.OpticalSurface
CLEAR, group, REFLECTING, REFRACTING, refractiveIndex, surfacePoint, surfaceType
 
Fields inherited from class optics.Optics
DEFAULT_WAVELENGTH, errorStream, fmt, MICRONS
 
Constructor Summary
QuadricMirror(double z, double c, double e, double rmax)
          Constructor with three paramters
QuadricMirror(Position p, double c, double e, double rmax)
          Consructor for Quadric Mirror spefifying three-dimensional reference point, curvature and max radius.
QuadricMirror(QuadricSurface m)
          Constrcutor for QuadricMirror with parameters from specified QuadricMirror
 
Method Summary
 QuadricMirror clone()
          Method to clone the QuadricMirror
 void draw(java.awt.Graphics2D g)
          Method to draw the surface is a Graphics2D context.
 double getCentralAperture()
          Method to get the central aperture radius
 void setCentralAperture(double r)
          Method to set the central aperture
 java.lang.String toString()
          To string method
 
Methods inherited from class optics.QuadricSurface
distance, getCurvature, getEdgePlane, getNormal, getQuadric, scale, setCurvature, setQuadric
 
Methods inherited from class optics.OpticalPlane
getBounds, getMaxRadius, getPlaneNormal, pointInPlane, setMaxRadius, setPlaneNormal
 
Methods inherited from class optics.OpticalSurface
distance, edit, entranceAperture, exitAperture, fromString, fromTokens, getGroup, getIndex, getNormal, getPoint, getRefractiveIndex, getSurfacePoint, getSurfaceType, getSurfaceType, makeStandAlone, pointInPlane, setGroup, setRefractiveIndex, setSurfacePoint, setSurfaceType
 
Methods inherited from class optics.Optics
getDefaultWaveLength, getErrorStream, getFormatString, getName, getStaticName, getVersion, printError, setDefaultWaveLength, setErrorStream, setFormatString, setMicrons
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

centralAperture

protected double centralAperture
Protected double for central open aperture

Constructor Detail

QuadricMirror

public QuadricMirror(double z,
                     double c,
                     double e,
                     double rmax)
Constructor with three paramters

Parameters:
z - z location of spherical surface
c - the curcature
e - the quadric parameter
rmax - the max radius

QuadricMirror

public QuadricMirror(Position p,
                     double c,
                     double e,
                     double rmax)
Consructor for Quadric Mirror spefifying three-dimensional reference point, curvature and max radius.

Parameters:
p - The reference point
c - curvature
e - the quadric parameter
rmax - the max radius

QuadricMirror

public QuadricMirror(QuadricSurface m)
Constrcutor for QuadricMirror with parameters from specified QuadricMirror

Parameters:
m - the specifying surface
Method Detail

clone

public QuadricMirror clone()
Method to clone the QuadricMirror

Overrides:
clone in class QuadricSurface
Returns:
SphericalMirror clone of current.

setCentralAperture

public void setCentralAperture(double r)
Method to set the central aperture

Parameters:
r - radius of central hole

getCentralAperture

public double getCentralAperture()
Method to get the central aperture radius

Returns:
double radius of central aperture

toString

public java.lang.String toString()
To string method

Overrides:
toString in class QuadricSurface

draw

public void draw(java.awt.Graphics2D g)
Method to draw the surface is a Graphics2D context.

Specified by:
draw in interface Diagram2DComponent
Overrides:
draw in class QuadricSurface
Parameters:
g - the Graphics2D