|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectoptics.Optics
optics.Mask
optics.CircularMask
public class CircularMask
Method to implement a circular mask, being s cirle of fixed radius.
| Field Summary | |
|---|---|
protected double |
outerRadius
Outer radius of mask. |
| Fields inherited from class optics.Mask |
|---|
centre |
| Fields inherited from class optics.Optics |
|---|
DEFAULT_WAVELENGTH, errorStream, fmt, MICRONS |
| Constructor Summary | |
|---|---|
CircularMask(double r)
Form a circular mask of specified radius with a default origin at (0,0). |
|
CircularMask(double r,
javax.vecmath.Point2d c)
Form a circular mask of specified radius with a specified centre. |
|
| Method Summary | |
|---|---|
double |
getOuterRadius()
Method to get the outer radius |
protected boolean |
isClearAbs(double x,
double y)
Method to specify the mask wrt to the centre |
void |
scale(double a)
Method to scale by a factor a |
void |
setOuterRadius(double r)
Method to set the radius of the mask |
| Methods inherited from class optics.Mask |
|---|
getCentre, isClear, isClear, setCentre, setCentre |
| 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 double outerRadius
| Constructor Detail |
|---|
public CircularMask(double r)
r - the outer radius
public CircularMask(double r,
javax.vecmath.Point2d c)
r - the outer radius.c - the centre of the mask.| Method Detail |
|---|
public void setOuterRadius(double r)
r - the radiuspublic double getOuterRadius()
double the outer radiuspublic void scale(double a)
scale in class Maska - the scale factor
protected boolean isClearAbs(double x,
double y)
isClearAbs in class Maskx - the x locationy - the y location
boolean true if transparent
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||