|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectoptics.Optics
optics.Mask
public abstract class Mask
Abstract class to represent a two dimensional mask. This class defines the centre, the shape of the mask defined by the extending classes.
| Field Summary | |
|---|---|
protected javax.vecmath.Point2d |
centre
The centre of the mask |
| Fields inherited from class optics.Optics |
|---|
DEFAULT_WAVELENGTH, errorStream, fmt, MICRONS |
| Constructor Summary | |
|---|---|
Mask()
|
|
| Method Summary | |
|---|---|
javax.vecmath.Point2d |
getCentre()
Method to get the centre point |
boolean |
isClear(double x,
double y)
Method to test of mask is clear |
boolean |
isClear(javax.vecmath.Point2d p)
Boolean methor to test of mask is clear |
protected abstract boolean |
isClearAbs(double x,
double y)
Abstract class to define the actual mask |
void |
scale(double a)
Method to scale the mask by factor a |
void |
setCentre(double x,
double y)
Method to set centre of the mask double x the x location double y the y location |
void |
setCentre(javax.vecmath.Point2d p)
Method to set the centre with a Point2d |
| Methods inherited from class optics.Optics |
|---|
getDefaultWaveLength, getErrorStream, getFormatString, getName, getStaticName, getVersion, printError, setDefaultWaveLength, setErrorStream, setFormatString, setMicrons |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected javax.vecmath.Point2d centre
| Constructor Detail |
|---|
public Mask()
| Method Detail |
|---|
public boolean isClear(double x,
double y)
x - the x locationy - the y location
boolean true if transparentpublic boolean isClear(javax.vecmath.Point2d p)
p - the two-dimensional point
boolean true if transparent
protected abstract boolean isClearAbs(double x,
double y)
x - the x locationy - the y location
boolean true if transparent
public void setCentre(double x,
double y)
public void setCentre(javax.vecmath.Point2d p)
p - the centrepublic void scale(double a)
a - the scale factorpublic javax.vecmath.Point2d getCentre()
Point2d the centre
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||