|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.awt.Polygon JSci.instruments.PTCroquetteCross
public class PTCroquetteCross
Data about a cross that can be put on an image, follow the center, find the height
Field Summary |
---|
Fields inherited from class java.awt.Polygon |
---|
bounds, npoints, xpoints, ypoints |
Constructor Summary | |
---|---|
PTCroquetteCross(int l,
int hw,
java.awt.Point p,
java.awt.Color col)
Crates a new cross |
Method Summary | |
---|---|
(package private) void |
addJNIToTemplate(Image f,
int x0,
int y0,
int l,
int w,
double[] templ,
int z)
|
void |
calibrationEnd()
call this when the calibration has been done |
void |
calibrationRequest(int zLevel)
Call this when the microscope objective position is right for the calibration. |
void |
calibrationSendImage(Image f)
send the image that has been acquired, so that it is used for calibration |
void |
calibrationStart(int zNum,
double minZ,
double maxZ)
Start the calibration |
void |
calibrationWait()
wait that the calibration, requested by calibrationRequest(), has been completed. |
void |
findXY(Image f)
Let the cross find the best center of the bead that is pointing |
void |
findZ(Image f)
Find the best position of the bead along the vertical axis |
(package private) int |
fromImg(byte c)
|
java.awt.Rectangle |
getBounds()
get the bounds of the cross. |
java.awt.Color |
getColor()
get the color of the cross. |
java.awt.Component |
getControlComponent()
get a Component that describes the Z position of the cross. |
java.awt.geom.Point2D |
getLocation()
get the position of the bead |
double |
getZ()
get the position of the bead along Z axis |
boolean |
isDragging()
the cross is being dragged by the mouse? |
void |
setBBox(java.awt.Rectangle r)
set the bounding box of the whole image. |
void |
setDragging(boolean v)
call this when the mouse starts dragging the cross |
void |
setLocation(java.awt.geom.Point2D p)
set the position of the cross. |
Methods inherited from class java.awt.Polygon |
---|
addPoint, contains, contains, contains, contains, contains, contains, getBoundingBox, getBounds2D, getPathIterator, getPathIterator, inside, intersects, intersects, invalidate, reset, translate |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PTCroquetteCross(int l, int hw, java.awt.Point p, java.awt.Color col)
l
- length of the arm of the crosshw
- half width of the arms of the crossp
- initial center of the crossMethod Detail |
---|
int fromImg(byte c)
void addJNIToTemplate(Image f, int x0, int y0, int l, int w, double[] templ, int z)
public void findXY(Image f)
public void findZ(Image f)
public void setDragging(boolean v)
v
- is dragged - don't move automatically, even if findXY is calledpublic boolean isDragging()
public void setBBox(java.awt.Rectangle r)
r
- the bounding boxpublic void setLocation(java.awt.geom.Point2D p)
p
- the new positionpublic java.awt.geom.Point2D getLocation()
public double getZ()
public java.awt.Rectangle getBounds()
getBounds
in interface java.awt.Shape
getBounds
in class java.awt.Polygon
public java.awt.Color getColor()
public java.awt.Component getControlComponent()
getControlComponent
in interface Control
public void calibrationStart(int zNum, double minZ, double maxZ)
zNum
- number of position of the microscope objectiveminZ
- minimum position of the microscope objectivemaxZ
- maximum position of the microscope objectivepublic void calibrationSendImage(Image f)
f
- the image from which data must be obtainedpublic void calibrationRequest(int zLevel)
zLevel
- position in the calibration image. Evaluate
zNum = how many levels are in the calibration image?
minZ, maxZ = the min and max levels (in micron)
z = where is now the objective?
So zLevel = (z-minZ)*zNum/(maxZ/minZ)public void calibrationWait()
public void calibrationEnd()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |