- Parameters:
- x - The x position of the ISource, in relative units specified by setPixPerUnit
- y - The x position of the ISource, in relative units specified by setPixPerUnit
- size - The height from the top to bottom of the source, in pixels
- angle - The slope of the rays, -1
addLens
public void addLens(double x,
double fl)
- Adds a thin lens, no spherical abberation, based on matrix transformations
- Parameters:
- x - The x position of the lens, in relative units specified by setPixPerUnit()
- fl - The focal length of the lens, in relative units specified by setPixPerUnit()
addMirror
public void addMirror(double x,
double fl)
- Adds an ideal mirror, based on matrix transformations
- Parameters:
- x - The x position of the mirror, in relative units specified by setPixPerUnit()
- fl - The focal length of the mirror, in relative units specified by setPixPerUnit()
addSphericalMirror
public void addSphericalMirror(double x,
double fl)
- Adds a spherical mirror. Some aberations are calculated.
- Parameters:
- x - The x position of the mirror, in relative units specified by setPixPerUnit()
- fl - The focal length of the mirror, in relative units specified by setPixPerUnit()
addPSource
public void addPSource(double x,
double y)
- Adds an principal-ray source which draws the three principal rays
- Parameters:
- x - The x position of the PSource, in relative units specified by setPixPerUnit()
- y - The y position of the PSource, in relative units specified by setPixPerUnit()
addScreen
public void addScreen(double x)
- Adds a screen
- Parameters:
- x - The x position of the Screen, in relative units specified by setPixPerUnit()
addSource
public void addSource(double x,
double y,
double rayIncrement,
double raySlope)
- Adds a regular point source, with spreading rays from a single point
- Parameters:
- x - The x position of the Source, in relative units specified by setPixPerUnit()
- y - The y position of the source, in relative units specified by setPixPerUnit()
- rayIncrement - The delta slope between intervals of rays coming from the Source
- raySlope - The starting slope of the outermost rays (top and bottom)
addAperatureP
public void addAperatureP(int x,
int openingSize)
- Add a blocking aperature at x.
- Parameters:
- x - The position of the aperature, in direct pixel units
- openingSize - 0<=openingSize<=1
addDielectricP
public void addDielectricP(int x,
double dn,
int r)
- Add a dielectric interface that can have a radius of curvature or none at all. Small angle approximation that doesn't show abberation.
- Parameters:
- x - The position of the aperature, in pixel units
- dn - Change in index of refraction from left to right.
- r - The radius of curvature of the interface, in pixel units.
addIndexChangeP
public void addIndexChangeP(int x,
double dn)
- Add an index change that has no curvature. Uses Snell's law and can show total internal reflection.
- Parameters:
- x - The position of the aperature, in pixel units
- dn - The change (+/-) of index going from left to right across interface
addRefractionP
public void addRefractionP(int x,
double delN,
int rT)
- Adds a refraction interface that can represent a thick lens with spherical abberation and internal reflection. Uses Snell's law, with angular displacement.
- Parameters:
- x - The x position of the refraction, in pixel units
- delN - The change in index of refraction when going from left to right across inferface
- r - The radius of curvature of the interface, specified in pixel units.
addISourceP
public void addISourceP(int x,
int y,
int size,
double angle)
- Adds an infinite source with parallel rays
- Parameters:
- x - The x position of the ISource, in pixel units
- y - The x position of the ISource, in pixel units
- size - The height from the top to bottom of the source, in pixels
- angle - The slope of the rays, -1
addLensP
public void addLensP(int x,
double fl)
- Adds a thin lens, no spherical abberation, based on matrix transformations
- Parameters:
- x - The x position of the lens, in pixel units
- fl - The focal length of the lens, in pixel units
addMirrorP
public void addMirrorP(int x,
double fl)
- Adds an ideal mirror, based on matrix transformations
- Parameters:
- x - The x position of the mirror, in pixel units
- fl - The focal length of the mirror, in pixel units
addSphericalMirrorP
public void addSphericalMirrorP(int x,
double fl)
- Adds an spherical mirror. Only some aberations are calculated.
- Parameters:
- x - The x position of the mirror, in pixel units
- fl - The focal length of the mirror, in pixel units
addPSourceP
public void addPSourceP(int x,
int y)
- Adds an principal-ray source which draws the three principal rays
- Parameters:
- x - The x position of the PSource, in pixel units
- y - The y position of the PSource, in pixel units
addScreenP
public void addScreenP(int x)
- Adds a screen
- Parameters:
- x - The x position of the Screen, in pixel units
addSourceP
public void addSourceP(int x,
int y,
double rayIncrement,
double raySlope)
- Adds a regular point source, with spreading rays from a single point
- Parameters:
- x - The x position of the Source, in pixel units
- y - The y position of the source, in pixel units
- rayIncrement - The delta slope between intervals of rays coming from the source, typical value is .25
- raySlope - The starting slope of the outermost rays (top and bottom), typical value is between 0 and 1
setNull
public void setNull()
- Calls setBtnOff() and makes it so nothing is added when the mouse clicks the bench
setBtnOff
public void setBtnOff()
- Changes all the colors of the buttons to black
All Packages Class Hierarchy This Package Previous Next Index