optics
Class SphericalSurface

java.lang.Object
  extended by optics.Optics
      extended by optics.OpticalSurface
          extended by optics.OpticalPlane
              extended by optics.QuadricSurface
                  extended by optics.SphericalSurface
All Implemented Interfaces:
Diagram2DComponent

public class SphericalSurface
extends QuadricSurface

Class to implements SphericalSurface with reference point and refractive index. This is the main refractive surface for ray tracing.


Field Summary
 
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
SphericalSurface(double z, double c, double rmax, RefractiveIndex n)
          Form an on-axis SphericalSurface spefifying position along z-axis, curvature and Refarctive index
SphericalSurface(Position p, double c, double rmax, RefractiveIndex n)
          Form a SphericalSurface spefifying three-dimensional reference point, curvature and Refarctive index
SphericalSurface(QuadricSurface s)
          Form a SphericalSurface with parameters from specified QuadricSurface.
 
Method Summary
 SphericalSurface clone()
          Method to clone the current SphericalSurface
 java.lang.String toString()
          Method to return information about the surface as a String.
 
Methods inherited from class optics.QuadricSurface
distance, draw, 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
 

Constructor Detail

SphericalSurface

public SphericalSurface(double z,
                        double c,
                        double rmax,
                        RefractiveIndex n)
Form an on-axis SphericalSurface spefifying position along z-axis, curvature and Refarctive index

Parameters:
z - z location of spherical surface
c - the curcature
rmax - the max radius
n - the Refractive Index

SphericalSurface

public SphericalSurface(Position p,
                        double c,
                        double rmax,
                        RefractiveIndex n)
Form a SphericalSurface spefifying three-dimensional reference point, curvature and Refarctive index

Parameters:
p - The reference point
c - curvature param rmax the max radius
n - the Reftactive Index

SphericalSurface

public SphericalSurface(QuadricSurface s)
Form a SphericalSurface with parameters from specified QuadricSurface. This will convert all QuadricSurfaces into a Spherical surface of the equivalent curvature.

Parameters:
s - the specifying surface
Method Detail

clone

public SphericalSurface clone()
Method to clone the current SphericalSurface

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

toString

public java.lang.String toString()
Method to return information about the surface as a String.

Overrides:
toString in class QuadricSurface
Returns:
String the information String.