|
|||||||||
| 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
public class RayPencil
Abstract Class to implement a RayPencil
being an Vector of rays.
This class also implements propagation through OpticalSurfaces and OticalGroups.
For incoherent un-polarsied illumination this class is accessed
via is extending class IntensityRayPencil.
| Field Summary |
|---|
| Fields inherited from class java.util.Vector |
|---|
capacityIncrement, elementCount, elementData |
| Fields inherited from class java.util.AbstractList |
|---|
modCount |
| Constructor Summary | |
|---|---|
RayPencil()
Forrm a RayPencil with default title of "Pencil" |
|
RayPencil(java.lang.String title)
Form RayPencil with specfifed title |
|
| Method Summary | |
|---|---|
void |
addRay(Ray r)
Method to add a Ray to the pencil. |
Ray |
getNext()
Get the next valid Ray from the Pencil, rays set to invalid are ignored. |
Ray |
getRay(int i)
Method to get the nth Ray, Need to be defined in extending class to return the correct type of Ray. |
java.lang.String |
getTitle()
Method to get the title string. |
double |
getWaveLength()
Method to get the wavelength of the rays, this will be the wavelength of the FIRST valid ray, and other will ne assumned to be the same. |
int |
propagateThrough(LensSystem g)
Method to propagate the RayPencil through an OpticalGroup
and report the number of rays propagated through its
full length. |
int |
propagateThrough(OpticalSurface s)
Method to propagate the RayPencil through a single
OpticalSurface and report the number of rays
propagated. |
int |
removeInvalid()
Method to delete the invalid Rays from the RayPencil and report the number deleted. |
void |
reset()
Method to reset the nextRay counter to zero. |
void |
setTitle(java.lang.String t)
Method to set the title. |
| 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 RayPencil(java.lang.String title)
title - public RayPencil()
| Method Detail |
|---|
public void setTitle(java.lang.String t)
t - the titlepublic java.lang.String getTitle()
String the title.public double getWaveLength()
If there are no vaild rays the package default will be rerturned.
double typical wavelength of Pencilpublic void addRay(Ray r)
r - the ray to be added.public Ray getRay(int i)
i - the ray index
RayVector the ray.public void reset()
public Ray getNext()
null is returned if
there are no more arrays available.
RayVector the next valid RayVectorreset()public int removeInvalid()
RayPencil and report the number deleted.
int number or rays deleted from the
pencilpublic int propagateThrough(OpticalSurface s)
RayPencil through a single
OpticalSurface and report the number of rays
propagated.
s - The OpticalSurface
int the number of rays propagatedpublic int propagateThrough(LensSystem g)
OpticalGroup
and report the number of rays propagated through its
full length.
g - the LensSystem
int number of rays propagated
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||