|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface EditableOutlineROI
An interface that ROIs implement if they have an editable outline with handles at each vertex.
| Method Summary | |
|---|---|
boolean |
deleteVertex(Handle handle)
Delete a point on the outline of this CurvedLineROI that is under a handle. |
java.util.List<ROI> |
erasePoints(java.util.List<java.awt.geom.Point2D> erasePoints,
float size,
int nCols,
int nRows,
float pixelXSize,
float pixelYSize)
Erase points from this ROI. |
Handle |
getFollowingHandle(Handle handle)
Returns the Handle that is immediately after the specified handle, in the order in which they were placed around the ROI. |
Handle |
getPrecedingHandle(Handle handle)
Returns the Handle that is immediately before the specified handle, in the order in which they were placed around the ROI. |
Handle[] |
getVertexHandles()
Returns an array of VertexHandles. |
boolean |
insertTwoVertices(Handle handle)
Insert two points into the outline of this CurvedLineROI: one just before the one that is under a handle, and one just after. |
void |
makeConvex(CanAddROIToFrame canAddROIToFrame,
float pixelXSize,
float pixelYSize,
float minConcaveRadius)
Make this Irregular ROI convex, or at least less concave. |
void |
moveVertex(java.awt.geom.Point2D newPos,
Handle handle,
int nCols,
int nRows,
float pixelXSize,
float pixelYSize,
boolean pixelSnap)
Move a point on the outline of this CurvedLineROI to a new position. |
| Method Detail |
|---|
Handle[] getVertexHandles()
Handle getFollowingHandle(Handle handle)
handle - the handle for which to get the following handle.
Handle getPrecedingHandle(Handle handle)
handle - the handle for which to get the preceding handle.
void moveVertex(java.awt.geom.Point2D newPos,
Handle handle,
int nCols,
int nRows,
float pixelXSize,
float pixelYSize,
boolean pixelSnap)
newPos - the new location of the vertex in pixel coordinates.handle - the Handle that the user has grabbed, used to identify the vertex to be moved.nCols - the number of image columns.nRows - the number of image rows.pixelXSize - the pixel width in mm.pixelYSize - the pixel height in mm.pixelSnap - whether pixel snap is turned on.boolean insertTwoVertices(Handle handle)
handle - the Handle that the user has grabbed, used to identify the vertex around which
the new vertices are to be placed.
boolean deleteVertex(Handle handle)
handle - the Handle that the user has grabbed, used to identify the vertex to be deleted.
java.util.List<ROI> erasePoints(java.util.List<java.awt.geom.Point2D> erasePoints,
float size,
int nCols,
int nRows,
float pixelXSize,
float pixelYSize)
erasePoints - a List of points through which the erasing pen has passed.size - the size of the erasing pen in mm.nCols - the number of image columns.nRows - the number of image rows.pixelXSize - the pixel width in mm.pixelYSize - the pixel height in mm.
void makeConvex(CanAddROIToFrame canAddROIToFrame,
float pixelXSize,
float pixelYSize,
float minConcaveRadius)
canAddROIToFrame - the CanAddROIToFrame to be updated when the
operation is complete.pixelXSize - the width of an image pixel in mm.pixelYSize - the height of an image pixel in mm.minConcaveRadius - the minimum radius of curvature for concave parts of this
ROI.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||