public class Snake2DROI
extends icy.roi.ROI2DPath
| Constructor and Description |
|---|
Snake2DROI(ESnake snake,
SnakeKeeper keeper)
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
changeControlPointPositions(double[] xPosition,
double[] yPosition,
plugins.big.bigsnakeutils.icy.snake2D.Snake2DScale[] scales) |
boolean[] |
getAsBooleanMask(int x,
int y,
int w,
int h,
boolean inclusive)
Get the ROI as a boolean bitmap mask for the specified rectangular area.
|
java.awt.Rectangle |
getBounds()
Gets the bounding rectangle of the first polyline of the snake skin.
|
java.awt.Color |
getColor()
Gets the color of the first polyline forming the skin of the snake.
|
java.awt.geom.Point2D |
getControlPoint(int i) |
void |
refreshROI() |
void |
refreshScales() |
boolean |
saveToXML(org.w3c.dom.Node node)
Saves the snake from an XML node.
|
void |
setEditable(boolean isEditable)
Sets the edit status of the ROI.
|
void |
setEditMode(SnakeEditMode editMode) |
addPointAt, canRemovePoint, contains, contains, contains, contains, getBounds2D, getPathIterator, getPathIterator, getPoints, getShape, hasSelectedPoint, intersects, intersects, isOver, isOverPoint, merge, onChanged, overlayChanged, painterChanged, positionChanged, removePointAt, setSelected, substract, subtract, translatecontains, getAsBooleanMask, getAsBooleanMask, getAsBooleanMask, getAsBooleanMask, getAsBooleanMask, getBooleanMask, getBooleanMask, getBooleanMask, getBooleanMask, getBooleanMask, getBooleanMask, getC, getDimension, getPerimeter, getPosition, getPosition2D, getROI2DList, getROI2DList, getT, getVolume, getZ, intersects, isActiveFor, isActiveFor, isOver, isOverPoint, merge, setC, setPosition, setT, setZ, substract, subtractaddListener, attachTo, beginUpdate, canvasToImageDeltaX, canvasToImageDeltaY, canvasToImageLogDeltaX, canvasToImageLogDeltaX, canvasToImageLogDeltaX, canvasToImageLogDeltaX, canvasToImageLogDeltaY, canvasToImageLogDeltaY, canvasToImageLogDeltaY, canvasToImageLogDeltaY, contains, create, create, create, createFromXML, delete, delete, detachFrom, detachFromAll, detachFromAll, endUpdate, focusChanged, getAdjustedStroke, getAdjustedStroke, getClassName, getCopy, getDisplayColor, getFirstSequence, getId, getName, getPainter, getROIList, getROIList, getROIsFromXML, getSelectedColor, getSequences, getSimpleClassName, getStroke, internalFocus, internalSelect, internalUnfocus, internalUnselect, intersects, isAttached, isCreating, isEditable, isFocused, isSelected, isUpdating, loadROIsFromXML, nameChanged, painterChanged, propertyChanged, remove, remove, removeListener, roiChanged, roiChanged, saveROIsToXML, selectionChanged, setColor, setFocused, setMousePos, setName, setROIsFromXML, setSelectedColor, setStrokepublic Snake2DROI(ESnake snake, SnakeKeeper keeper)
public void changeControlPointPositions(double[] xPosition,
double[] yPosition,
plugins.big.bigsnakeutils.icy.snake2D.Snake2DScale[] scales)
public void refreshScales()
public void refreshROI()
public void setEditable(boolean isEditable)
setEditable in class icy.roi.ROIpublic void setEditMode(SnakeEditMode editMode)
public boolean[] getAsBooleanMask(int x,
int y,
int w,
int h,
boolean inclusive)
getAsBooleanMask in class icy.roi.ROI2Dpublic java.awt.Rectangle getBounds()
getBounds in interface java.awt.ShapegetBounds in class icy.roi.ROI2DShapepublic java.awt.Color getColor()
getColor in class icy.roi.ROIpublic java.awt.geom.Point2D getControlPoint(int i)
public boolean saveToXML(org.w3c.dom.Node node)
saveToXML in interface icy.file.xml.XMLPersistentsaveToXML in class icy.roi.ROI2DPath