|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.AbstractCollection<E>
java.util.AbstractList<E>
java.util.Vector<Ray>
optics.RayPencil
optics.IntensityRayPencil
public class IntensityRayPencil
Class to implement a pencil of IntensityRayPencil
being a vector of IntensityRays
used in the analysis
of incoherent, un-polarsied systems.
Field Summary |
---|
Fields inherited from class java.util.Vector |
---|
capacityIncrement, elementCount, elementData |
Fields inherited from class java.util.AbstractList |
---|
modCount |
Constructor Summary | |
---|---|
IntensityRayPencil(Director u,
double lambda,
double intensity,
OpticalPlane plane,
int rays)
Form an IntensityRayPencil being a collimated beam
in specified direction, wavelength and number or rays,
evenly filling an OpticalPlane to maximum radius. |
|
IntensityRayPencil(SourcePoint s,
double lambda,
OpticalPlane plane,
int rays)
Form an IntensityRayPencil from a specified SourcePoint at specified wavelength even
filling an OpticalPlane to maximum radius with specified number
of rays. |
|
IntensityRayPencil(java.lang.String t)
Constructor to create a new empty IntensityRayPencil with a specified name. |
Method Summary | |
---|---|
void |
addCollimated(Director u,
double lambda,
double intensity,
OpticalPlane plane,
int rays)
Method to add a collimated ray pencil filling the specified OpticalPlane with specified number of rays. |
void |
addFromPoint(SourcePoint s,
double lambda,
OpticalPlane plane,
int rays)
Method to add a pencil from a SourcePoint evenly filling a circular aperture with a specified number of rays. |
IntensityRay |
getNext()
Get the next valid Ray from the Pencil, null if there are none. |
IntensityRay |
getRay(int i)
Method to get the nth Intensity Ray |
Methods inherited from class optics.RayPencil |
---|
addRay, getTitle, getWaveLength, propagateThrough, propagateThrough, removeInvalid, reset, setTitle |
Methods inherited from class java.util.Vector |
---|
add, add, addAll, addAll, addElement, capacity, clear, clone, contains, containsAll, copyInto, elementAt, elements, ensureCapacity, equals, firstElement, get, hashCode, indexOf, indexOf, insertElementAt, isEmpty, lastElement, lastIndexOf, lastIndexOf, remove, remove, removeAll, removeAllElements, removeElement, removeElementAt, removeRange, retainAll, set, setElementAt, setSize, size, subList, toArray, toArray, toString, trimToSize |
Methods inherited from class java.util.AbstractList |
---|
iterator, listIterator, listIterator |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.util.List |
---|
iterator, listIterator, listIterator |
Constructor Detail |
---|
public IntensityRayPencil(java.lang.String t)
t
- the namepublic IntensityRayPencil(SourcePoint s, double lambda, OpticalPlane plane, int rays)
SourcePoint
at specified wavelength even
filling an OpticalPlane to maximum radius with specified number
of rays.
Due to rounding approximations the actual number of rays in the pencil may be +/- 2 of the number specified.
s
- the SourcePoint, given position and intensity.lambda
- the wavelengthplane
- the plane to be filled, usually the entrance
aperture of an OpticalGroup
.rays
- number of rays.public IntensityRayPencil(Director u, double lambda, double intensity, OpticalPlane plane, int rays)
IntensityRayPencil
being a collimated beam
in specified direction, wavelength and number or rays,
evenly filling an OpticalPlane to maximum radius.
All the rays will be in the specifying OpticalPlane.
u
- the direction of the pencillambda
- the wavelength.intensity
- the intensity of each ray.plane
- the OpticalPlane to be filled.rays
- number of rays.Method Detail |
---|
public IntensityRay getRay(int i)
getRay
in class RayPencil
i
- the ray index
IntensityRay
the ray.public IntensityRay getNext()
getNext
in class RayPencil
IntensityRay
the next valid RayRayPencil.reset()
public void addFromPoint(SourcePoint s, double lambda, OpticalPlane plane, int rays)
The actual number of rays added may be subject to a rounding error.
s
- the intensity source pointlambda
- the wavelength in micronsplane
- the OpticalPlane to fillrays
- number of rays in pencil.public void addCollimated(Director u, double lambda, double intensity, OpticalPlane plane, int rays)
The actual number of rays added may be subject to a rounding error.
u
- the direction of the collimated pencillambda
- the wavelengthintensity
- the intensityplane
- the plane to be filledrays
- number or rays.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |