|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectoptics.Optics
optics.WaveLengthFunction
optics.WaveLengthSpectrum
optics.ConstantSpectrum
public class ConstantSpectrum
Class to implement constant spectral response independent of wavelength.
| Field Summary | |
|---|---|
protected double |
brightness
Brightness variable |
| Fields inherited from class optics.WaveLengthFunction |
|---|
maxPlotLambda, minPlotLambda, plotPoints |
| Fields inherited from class optics.Optics |
|---|
DEFAULT_WAVELENGTH, errorStream, fmt, MICRONS, version |
| Constructor Summary | |
|---|---|
ConstantSpectrum()
Form a default ConstantSpectrum with brightness
of unity. |
|
ConstantSpectrum(double b)
Form a ConstantSpectrum with specified brightness. |
|
ConstantSpectrum(WaveLengthSpectrum s)
Constructor with parameters set by WaveLebgthSpectrum. |
|
| Method Summary | |
|---|---|
ConstantSpectrum |
clone()
Method to clone the current ConstantSpectrum |
double |
getIntensity(double lambda)
Public method to get the intensity. |
void |
setBrightness(double b)
Public method to set the intensity |
String |
toString()
Public toString to report useful information. |
| Methods inherited from class optics.WaveLengthSpectrum |
|---|
getValue |
| Methods inherited from class optics.WaveLengthFunction |
|---|
getPlot, getPlotPoints, setPlot, setPlotPoints, setPlotRange, setPlotRange, toGraph, toPlot, toPlot, toPlot |
| 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 brightness
| Constructor Detail |
|---|
public ConstantSpectrum()
ConstantSpectrum with brightness
of unity.
public ConstantSpectrum(double b)
ConstantSpectrum with specified brightness.
b - the brigthnesspublic ConstantSpectrum(WaveLengthSpectrum s)
WaveLebgthSpectrum.
The brighntess is set by the value of the specifed spectrum
at Constants.GREEN.
s - specifying spectrum.| Method Detail |
|---|
public ConstantSpectrum clone()
clone in class ObjectConstantSpectrum clone of current.public void setBrightness(double b)
b - the brightnesspublic double getIntensity(double lambda)
getIntensity in class WaveLengthSpectrumlambda - the wavelength (is ignored)
double the intensitypublic String toString()
toString in class ObjectString information String.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||