|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectoptics.Optics
optics.OpticalSurface
optics.OpticalPlane
optics.QuadricSurface
public class QuadricSurface
Class to implements a general
QuadricSurface
in a plane. The
conventional spherical and parabilic surfaces are
special cases of this surface.
Field Summary | |
---|---|
protected double |
curvature
The surface curvature |
protected double |
epsilon
The shape factor |
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 | |
---|---|
QuadricSurface()
Form a default QuadricSurface |
|
QuadricSurface(double z,
double c,
double e,
double rmax,
RefractiveIndex n)
Form an on-axis QuadricSurface with
all other parameters specified. |
|
QuadricSurface(Position p,
double c,
double e,
double rmax,
RefractiveIndex n)
Form a QuadricSurface with all
parameters specifed. |
|
QuadricSurface(QuadricSurface s)
Constuctor with all parameters set you specifing QuadricSurface. |
Method Summary | |
---|---|
QuadricSurface |
clone()
Method to clone the current QuadricSurface |
double |
distance(Position r,
Director v)
Method get the distance from a Position to the surface |
void |
draw(java.awt.Graphics2D g)
Method to draw the surface is a Graphics2D context. |
double |
getCurvature()
Method to get the surface curvature |
double |
getEdgePlane()
Method to get the edge plane, being the plane at maximum radius. |
Director |
getNormal(Position r)
Method to get the surface normal, at a specified point which is assumes yto be on the surface/ |
double |
getQuadric()
Method to get the Quadric parameter |
void |
scale(double a)
Scale the surface surface |
void |
setCurvature(double c)
Method to set the curvature |
void |
setQuadric(double e)
Method to set the Quardic parameter |
java.lang.String |
toString()
String method for formatted strings. |
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 |
---|
protected double curvature
protected double epsilon
Constructor Detail |
---|
public QuadricSurface(double z, double c, double e, double rmax, RefractiveIndex n)
QuadricSurface
with
all other parameters specified.
z
- z location of surfacec
- the curvaturee
- the quadric parameterrmax
- the maximum radiusn
- the Refractive Indexpublic QuadricSurface(Position p, double c, double e, double rmax, RefractiveIndex n)
QuadricSurface
with all
parameters specifed.
p
- the surface reference pointc
- curvaturee
- the quadric parameterrmax
- the maximum radiusn
- the refractive indexpublic QuadricSurface(QuadricSurface s)
All parameters except OpticalGroup
are copied.
s
- the specifying surfacepublic QuadricSurface()
QuadricSurface
Method Detail |
---|
public QuadricSurface clone()
clone
in class OpticalPlane
QuadricSurface
clone of current.public void setCurvature(double c)
c
- The curvaturepublic double getCurvature()
getCurvature
in class OpticalPlane
double
the curvaturepublic void setQuadric(double e)
e
- the Quadric parameterpublic double getQuadric()
public void scale(double a)
scale
in class OpticalPlane
a
- the scalepublic double distance(Position r, Director v)
distance
in class OpticalPlane
r
- The ray positionv
- the ray director
double
the distance to the surfacepublic Director getNormal(Position r)
getNormal
in class OpticalPlane
r
- The position
Director3d
the surface normalpublic double getEdgePlane()
getEdgePlane
in class OpticalPlane
double
the plane edge.public java.lang.String toString()
toString
in class OpticalPlane
public void draw(java.awt.Graphics2D g)
draw
in interface Diagram2DComponent
draw
in class OpticalPlane
g
- the Graphics2D
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |