|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.vecmath.Tuple3d
javax.vecmath.Point3d
optics.Position
optics.SourcePoint
public class SourcePoint
Class to implement point source being a point in 3-D
with a specified spectral response in the form of
a WaveLengthSpectrum
Field Summary | |
---|---|
protected WaveLengthSpectrum |
spectrum
The Wavelegth spectrum |
Fields inherited from class javax.vecmath.Tuple3d |
---|
x, y, z |
Constructor Summary | |
---|---|
SourcePoint()
Default constructor with point at 0,0,0 of unit intensity with Green light |
|
SourcePoint(double x,
double y,
double z,
double brightness)
Constructor to specify position and brightness, which results in a constant spectrum of specified brightness |
|
SourcePoint(double x,
double y,
double z,
WaveLengthSpectrum s)
Constructor to specify position and spectrum |
|
SourcePoint(javax.vecmath.Point2d pt,
double z,
double brightness)
Constructor with x/y specified by a Point2d
in a plane and z by the location of the plane. |
|
SourcePoint(javax.vecmath.Point2d pt,
double z,
WaveLengthSpectrum s)
Constructor with x/y specified by a Point2d and z by a double. |
|
SourcePoint(Position p)
Constructor to specify position with unity brightness. |
|
SourcePoint(Position p,
double brightness)
Constructor to specify position and brightness, which results in a constant spectrum of specified brightness |
|
SourcePoint(Position p,
WaveLengthSpectrum s)
Constructor to specify position and Spectrum class |
Method Summary | |
---|---|
SourcePoint |
clone()
Method to return a clone of the source Point with the Same spectrum as the current point. |
double |
getIntensity(Director u,
double lambda)
Method to get the intensity at specified wavelength in specified direction. |
double |
getIntensity(double lambda)
Method to get the intensity at specified wavelength |
WaveLengthSpectrum |
getSpectrum()
Method to get the spectral function. |
void |
setSpectrum(WaveLengthSpectrum s)
Method set the spectrum |
java.lang.String |
toString()
Standard toString format the location and
spectrum as a String |
Methods inherited from class optics.Position |
---|
add, direction, fromString, fromTokens, getPoint2d, length, length, lengthSquared, lengthSquared, max, min, propagate |
Methods inherited from class javax.vecmath.Point3d |
---|
distance, distanceL1, distanceLinf, distanceSquared, project |
Methods inherited from class javax.vecmath.Tuple3d |
---|
absolute, absolute, add, add, clamp, clamp, clamp, clamp, clampMax, clampMax, clampMax, clampMax, clampMin, clampMin, clampMin, clampMin, epsilonEquals, equals, equals, get, get, getX, getY, getZ, hashCode, interpolate, interpolate, interpolate, interpolate, negate, negate, scale, scale, scaleAdd, scaleAdd, scaleAdd, set, set, set, set, setX, setY, setZ, sub, sub |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected WaveLengthSpectrum spectrum
Constructor Detail |
---|
public SourcePoint(double x, double y, double z, WaveLengthSpectrum s)
x
- the x locationsy
- the y locationz
- the z locations
- The spectrumpublic SourcePoint(double x, double y, double z, double brightness)
x
- the x locationsy
- the y locationbrightness
- the brightness if the ConstantSpectrum
ConstantSpectrum
public SourcePoint(Position p, WaveLengthSpectrum s)
p
- locations
- the spectral responsepublic SourcePoint(Position p, double brightness)
p
- position of source pointbrightness
- the brightnessConstantSpectrum
public SourcePoint(javax.vecmath.Point2d pt, double z, WaveLengthSpectrum s)
pt
- point in the planez
- the planes
- the spectrumpublic SourcePoint(javax.vecmath.Point2d pt, double z, double brightness)
Point2d
in a plane and z by the location of the plane.
pt
- point is a plane.z
- the planebrightness
- the spectrumConstantSpectrum
public SourcePoint(Position p)
p
- the source position.public SourcePoint()
Method Detail |
---|
public SourcePoint clone()
Note spectrum is not cloned.
clone
in class Position
SourcePoint
cloned point.public void setSpectrum(WaveLengthSpectrum s)
s
- the spectrumpublic WaveLengthSpectrum getSpectrum()
WaveLengthSpectrum
the spectrurm.public double getIntensity(double lambda)
lambda
- the wavelength in microns
double
itnesity at specified wavelnegth.public double getIntensity(Director u, double lambda)
For simple SourcePoint
the direction
is ignored. This method it overloaded in entending methods
where there is an directional dependance.
u
- the ray directionlambda
- the wavelength
double
itnesity at specified wavelnegthpublic java.lang.String toString()
toString
format the location and
spectrum as a String
toString
in class javax.vecmath.Tuple3d
String
formatted string.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |