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, translate
contains, 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, subtract
addListener, 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, setStroke
public 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.ROI
public void setEditMode(SnakeEditMode editMode)
public boolean[] getAsBooleanMask(int x, int y, int w, int h, boolean inclusive)
getAsBooleanMask
in class icy.roi.ROI2D
public java.awt.Rectangle getBounds()
getBounds
in interface java.awt.Shape
getBounds
in class icy.roi.ROI2DShape
public java.awt.Color getColor()
getColor
in class icy.roi.ROI
public java.awt.geom.Point2D getControlPoint(int i)
public boolean saveToXML(org.w3c.dom.Node node)
saveToXML
in interface icy.file.xml.XMLPersistent
saveToXML
in class icy.roi.ROI2DPath