Squiz Matrix
4.12.2
|
Public Member Functions | |
PolygonRoi (int[] xPoints, int[] yPoints, int nPoints, int type) | |
PolygonRoi (Polygon p, int type) | |
PolygonRoi (int[] xPoints, int[] yPoints, int nPoints, ImagePlus imp, int type) | |
PolygonRoi (int ox, int oy, ImagePlus imp) | |
void | draw (Graphics g) |
void | drawPixels () |
void | fitSpline (int evaluationPoints) |
boolean | contains (int x, int y) |
int | isHandle (int sx, int sy) |
ImageProcessor | getMask () |
double | getLength () |
double | getFeretsDiameter () |
double | getAngle () |
int | getNCoordinates () |
int[] | getXCoordinates () |
int[] | getYCoordinates () |
Polygon | getPolygon () |
synchronized Object | clone () |
Public Member Functions inherited from Roi | |
Roi (int x, int y, int width, int height) | |
Roi (int x, int y, ImagePlus imp) | |
Roi (int x, int y, int width, int height, ImagePlus imp) | |
void | setLocation (int x, int y) |
void | setImage (ImagePlus imp) |
int | getType () |
int | getState () |
double | getLength () |
double | getFeretsDiameter () |
Rectangle | getBounds () |
Rectangle | getBoundingRect () |
Polygon | getPolygon () |
synchronized Object | clone () |
void | nudge (int key) |
void | nudgeCorner (int key) |
void | draw (Graphics g) |
void | drawPixels () |
boolean | contains (int x, int y) |
int | isHandle (int sx, int sy) |
void | modifyRoi () |
ImageProcessor | getMask () |
void | endPaste () |
void | abortPaste () |
double | getAngle (int x1, int y1, int x2, int y2) |
String | getName () |
void | setName (String name) |
int | getPasteMode () |
boolean | isArea () |
String | getTypeAsString () |
String | toString () |
Protected Member Functions | |
void | grow (int x, int y) |
void | updatePolygon () |
void | moveHandle (int ox, int oy) |
void | mouseDownInHandle (int handle, int sx, int sy) |
void | handleMouseUp (int sx, int sy) |
void | addOffset () |
Protected Member Functions inherited from Roi | |
void | grow (int xNew, int yNew) |
void | moveHandle (int ox, int oy) |
void | updateClipRect () |
void | handleMouseDrag (int sx, int sy, int flags) |
void | mouseDownInHandle (int handle, int sx, int sy) |
void | handleMouseDown (int sx, int sy) |
void | handleMouseUp (int screenX, int screenY) |
void | showStatus () |
Protected Attributes | |
int | maxPoints = 1000 |
int[] | xp |
int[] | xp2 |
int | nPoints |
int[] | xSpline |
int[] | xScreenSpline |
int | splinePoints = 200 |
Protected Attributes inherited from Roi | |
int | type |
int | xMax |
ImagePlus | imp |
ImageCanvas | ic |
int | oldX |
int | clipX |
ImagePlus | clipboard |
boolean | constrain |
boolean | center |
boolean | updateFullWindow |
double | mag = 1.0 |
String | name |
ImageProcessor | cachedMask |
Additional Inherited Members | |
Static Public Member Functions inherited from Roi | |
static Color | getColor () |
static void | setColor (Color c) |
static void | setPasteMode (int transferMode) |
static int | getCurrentPasteMode () |
Static Public Attributes inherited from Roi | |
static final int | CONSTRUCTING =0 |
static final int | RECTANGLE =0 |
static final int | HANDLE_SIZE = 5 |
static final int | NOT_PASTING = -1 |
static Roi | previousRoi |
Static Protected Attributes inherited from Roi | |
static Color | ROIColor = Prefs.getColor(Prefs.ROICOLOR,Color.yellow) |
static int | pasteMode = Blitter.COPY |
This class represents a polygon region of interest or polyline of interest.
Definition at line 9 of file PolygonRoi.java.
|
inline |
Creates a new polygon or polyline ROI from x and y coordinate arrays. Type must be Roi.POLYGON, Roi.FREEROI, Roi.TRACED_ROI, Roi.POLYLINE, Roi.FREELINE or Roi.ANGLE.
Definition at line 27 of file PolygonRoi.java.
|
inline |
Creates a new polygon or polyline ROI from a Polygon. Type must be Roi.POLYGON, Roi.FREEROI, Roi.TRACED_ROI, Roi.POLYLINE, Roi.FREELINE or Roi.ANGLE.
Definition at line 64 of file PolygonRoi.java.
|
inline |
Obsolete
Definition at line 69 of file PolygonRoi.java.
|
inline |
Starts the process of creating a new user-generated polygon or polyline ROI.
Definition at line 75 of file PolygonRoi.java.
|
inline |
Returns a copy of this PolygonRoi.
Definition at line 802 of file PolygonRoi.java.
|
inline |
Returns the angle in degrees between the first two segments of this polyline.
Definition at line 745 of file PolygonRoi.java.
|
inline |
Returns Feret's diameter, the greatest distance between any two points along the ROI boundary.
Definition at line 724 of file PolygonRoi.java.
|
inline |
Returns the perimeter (for ROIs) or length (for lines).
Definition at line 680 of file PolygonRoi.java.
|
inline |
Override Roi.nudge() to support splines.
Definition at line 540 of file PolygonRoi.java.
|
inline |
Returns the number of XY coordinates.
Definition at line 750 of file PolygonRoi.java.
|
inline |
Returns this PolygonRoi as a Polygon.
Definition at line 780 of file PolygonRoi.java.
|
inline |
Returns this ROI's X-coordinates, which are relative to origin of the bounding box.
Definition at line 759 of file PolygonRoi.java.
|
inline |
Returns this ROI's Y-coordinates, which are relative to origin of the bounding box.
Definition at line 768 of file PolygonRoi.java.
|
inline |
Returns a handle number if the specified screen coordinates are inside or near a handle, otherwise returns -1.
Definition at line 513 of file PolygonRoi.java.