|
ICY Version 1.0.1.0
|
Classes | |
| class | ROI2DAreaPainter |
Public Member Functions | |
| ROI2DArea (Point2D position) | |
| int | getMaskColor () |
| void | updateMask (int x, int y, boolean remove) |
| void | updateMask (Shape shape, boolean remove) |
| void | setMousePos (Point2D pos) |
| ROI2DAreaPainter | getPainter () |
| void | addPoint (Point pos) |
| void | addPoint (int x, int y) |
| void | removePoint (Point pos) |
| void | removePoint (int x, int y) |
| void | addRect (Rectangle r) |
| void | addRect (int x, int y, int w, int h) |
| void | removeRect (Rectangle r) |
| void | removeRect (int x, int y, int w, int h) |
| void | clear () |
| boolean | isOver (IcyCanvas canvas, double x, double y) |
| boolean | isOverPoint (IcyCanvas canvas, double x, double y) |
| boolean | contains (double x, double y) |
| boolean | contains (double x, double y, double w, double h) |
| Rectangle | getBounds () |
| Rectangle2D | getBounds2D () |
| boolean | intersects (double x, double y, double w, double h) |
| boolean[] | getAsBooleanMask (Rectangle r) |
| boolean[] | getAsBooleanMask (int x, int y, int w, int h) |
| void | translate (double dx, double dy) |
| void | setAsBooleanMask (Rectangle r, boolean[] booleanMask) |
| void | setAsBooleanMask (int x, int y, int w, int h, boolean[] booleanMask) |
| boolean | loadFromXML (Node node) |
| boolean | saveToXML (Node node) |
| void | endUpdate () |
Protected Member Functions | |
| ROI2DAreaPainter | createPainter () |
| boolean | hasSelectedPoint () |
| boolean | addPointAt (Point2D pos) |
| boolean | removePointAt (IcyCanvas canvas, Point2D pos) |
Package Functions | |
| void | addToBounds (Rectangle bnd) |
| void | optimizeBounds (boolean removeIfEmpty) |
| void | updateMaskColor () |
| void | updateImage (Rectangle oldBnd, Rectangle newBnd) |
Package Attributes | |
| BufferedImage | mask |
| final Rectangle | bounds |
| int[] | maskData |
| boolean | boundsNeedUpdate |
| double | translateX |
| double | translateY |
| Color | previousColor |
Static Package Attributes | |
| static float | cursorSize = DEFAULT_CURSOR_SIZE |
| void icy.roi.ROI2DArea.addPoint | ( | Point | pos | ) |
Add a point to the mask
| void icy.roi.ROI2DArea.addPoint | ( | int | x, |
| int | y | ||
| ) |
Add a point to the mask
| boolean icy.roi.ROI2DArea.addPointAt | ( | Point2D | pos | ) | [protected, virtual] |
Add a new point at specified position (used to build ROI)
Implements icy.roi.ROI2D.
| void icy.roi.ROI2DArea.addRect | ( | Rectangle | r | ) |
Add a rectangle to the mask
| void icy.roi.ROI2DArea.addRect | ( | int | x, |
| int | y, | ||
| int | w, | ||
| int | h | ||
| ) |
Add a rectangle to the mask
| void icy.roi.ROI2DArea.clear | ( | ) |
Clear the mask
| boolean icy.roi.ROI2DArea.hasSelectedPoint | ( | ) | [protected, virtual] |
Return true if the ROI has a current selected
Implements icy.roi.ROI2D.
| boolean icy.roi.ROI2DArea.isOver | ( | IcyCanvas | canvas, |
| double | x, | ||
| double | y | ||
| ) | [virtual] |
return true if specified point coordinates overlap the ROI
Edge overlap only, used for roi manipulation
Implements icy.roi.ROI2D.
| boolean icy.roi.ROI2DArea.isOverPoint | ( | IcyCanvas | canvas, |
| double | x, | ||
| double | y | ||
| ) | [virtual] |
return true if specified point coordinates overlap a ROI (control) point
used for roi manipulation
Implements icy.roi.ROI2D.
| boolean icy.roi.ROI2DArea.loadFromXML | ( | Node | node | ) |
LOAD
Reimplemented from icy.roi.ROI.
| void icy.roi.ROI2DArea.optimizeBounds | ( | boolean | removeIfEmpty | ) | [package] |
Optimize the bounds size to the minimum surface which still include all mask
| void icy.roi.ROI2DArea.removePoint | ( | Point | pos | ) |
Remove a point to the mask
| void icy.roi.ROI2DArea.removePoint | ( | int | x, |
| int | y | ||
| ) |
Remove a point to the mask
| boolean icy.roi.ROI2DArea.removePointAt | ( | IcyCanvas | canvas, |
| Point2D | imagePoint | ||
| ) | [protected, virtual] |
Remove point at specified position (used to build ROI)
Implements icy.roi.ROI2D.
| void icy.roi.ROI2DArea.removeRect | ( | int | x, |
| int | y, | ||
| int | w, | ||
| int | h | ||
| ) |
Remove a rectangle from the mask
| void icy.roi.ROI2DArea.removeRect | ( | Rectangle | r | ) |
Remove a rectangle from the mask
| boolean icy.roi.ROI2DArea.saveToXML | ( | Node | node | ) |
SAVE
Reimplemented from icy.roi.ROI.
| void icy.roi.ROI2DArea.setAsBooleanMask | ( | Rectangle | r, |
| boolean[] | booleanMask | ||
| ) |
Set the mask from a boolean table
r represent the region defined by the boolean table
| r | |
| booleanMask |
| void icy.roi.ROI2DArea.updateMask | ( | int | x, |
| int | y, | ||
| boolean | remove | ||
| ) |
add or remove a point in the mask
| void icy.roi.ROI2DArea.updateMask | ( | Shape | shape, |
| boolean | remove | ||
| ) |
Update mask from specified shape
final Rectangle icy.roi.ROI2DArea.bounds [package] |
rectangle bounds
BufferedImage icy.roi.ROI2DArea.mask [package] |
image containing the mask
int [] icy.roi.ROI2DArea.maskData [package] |
internals
1.7.3