optics
Class LambertianPoint

java.lang.Object
  extended by javax.vecmath.Tuple3d
      extended by javax.vecmath.Point3d
          extended by optics.Position
              extended by optics.SourcePoint
                  extended by optics.LambertianPoint
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable

public class LambertianPoint
extends SourcePoint

Class to implement a Lambertian point source with a specified preferred direction.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class optics.SourcePoint
spectrum
 
Fields inherited from class javax.vecmath.Tuple3d
x, y, z
 
Constructor Summary
LambertianPoint(Position p, Director u, double brightness)
          Constructor to form Lambertian point specifying position and direction of fixed brightness
LambertianPoint(Position p, Director u, WaveLengthSpectrum s)
          Constructor for a Lambertian point specifying position, direction and spectrum.
LambertianPoint(Position p, double brightness)
          Constructor to form Lambertian point specifying position and brightness, direction defaults to z axis
LambertianPoint(Position p, WaveLengthSpectrum s)
          Constructor for Lambertian point specifying position and spectrum, direction defaults to along z axis
 
Method Summary
 LambertianPoint clone()
          Method to get a clone of the current Point.
 Director getDirection()
          Public method to get the value of the source direction
 double getIntensity(Director v, double lambda)
          Public double to get the intensity is a specified direction
 void setDirection(Director u)
          Method to set source preferred direction
 
Methods inherited from class optics.SourcePoint
getIntensity, getSpectrum, setSpectrum, toString
 
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
 

Constructor Detail

LambertianPoint

public LambertianPoint(Position p,
                       Director u,
                       WaveLengthSpectrum s)
Constructor for a Lambertian point specifying position, direction and spectrum.

Parameters:
p - the point location
u - the source direction
s - the source spectral response

LambertianPoint

public LambertianPoint(Position p,
                       WaveLengthSpectrum s)
Constructor for Lambertian point specifying position and spectrum, direction defaults to along z axis

Parameters:
p - the point location
s - the source spectral response

LambertianPoint

public LambertianPoint(Position p,
                       Director u,
                       double brightness)
Constructor to form Lambertian point specifying position and direction of fixed brightness

Parameters:
p - the point location
u - the source direction
brightness - the source brightness

LambertianPoint

public LambertianPoint(Position p,
                       double brightness)
Constructor to form Lambertian point specifying position and brightness, direction defaults to z axis

Parameters:
p - the point location
brightness - the source brightness
Method Detail

clone

public LambertianPoint clone()
Method to get a clone of the current Point. Position and direction are cloned, but spectrum is copied.

Overrides:
clone in class SourcePoint
Returns:
LambertianPoint clone of Point

setDirection

public void setDirection(Director u)
Method to set source preferred direction

Parameters:
u - the source direction

getDirection

public Director getDirection()
Public method to get the value of the source direction

Returns:
Director3d copy of the position point

getIntensity

public double getIntensity(Director v,
                           double lambda)
Public double to get the intensity is a specified direction

Overrides:
getIntensity in class SourcePoint
Parameters:
v - the direction
lambda - the wavelength
Returns:
double itnesity at specified wavelnegth