public class ROI5DArea extends ROI5DStack<ROI4DArea>
ROI5DStack.ROI5DStackPainter
ROI.ROIGroupId, ROI.ROIIdComparator, ROI.ROINameComparator, ROI.ROIPainter
PROPERTY_USECHILDCOLOR
DEFAULT_COLOR, DEFAULT_NORMAL_COLOR, DEFAULT_OPACITY, DEFAULT_STROKE, defaultColor, defaultOpacity, defaultShowName, defaultStroke, ID_CLASSNAME, ID_COLOR, ID_GROUPID, ID_ID, ID_NAME, ID_OPACITY, ID_PROPERTIES, ID_READONLY, ID_ROI, ID_SELECTED, ID_SHOWNAME, ID_STROKE, idComparator, nameComparator, PROPERTY_COLOR, PROPERTY_CREATING, PROPERTY_GROUPID, PROPERTY_ICON, PROPERTY_NAME, PROPERTY_OPACITY, PROPERTY_READONLY, PROPERTY_SHOWNAME, PROPERTY_STROKE, ROI_CHANGED_ALL, ROI_CHANGED_POSITION
Constructor and Description |
---|
ROI5DArea() |
ROI5DArea(BooleanMask5D mask)
Create a 3D Area ROI type from the specified
BooleanMask5D . |
ROI5DArea(Point5D pt) |
ROI5DArea(ROI5DArea area)
Create a copy of the specified 5D Area ROI.
|
Modifier and Type | Method and Description |
---|---|
void |
addBrush(java.awt.geom.Point2D pos,
int z,
int t,
int c)
Add brush point at specified position and for specified Z,T,C slice.
|
void |
addPoint(int x,
int y,
int z,
int t,
int c)
Adds the specified point to this ROI
|
java.lang.String |
getDefaultName() |
boolean |
isEmpty()
Returns true if the ROI is empty (the mask does not contains any point).
|
void |
optimizeBounds()
Optimize the bounds size to the minimum surface which still include all mask.
|
void |
removeBrush(java.awt.geom.Point2D pos,
int z,
int t,
int c)
Remove brush point from the mask at specified position and for specified Z,T,C slice.
|
void |
removePoint(int x,
int y,
int z,
int t,
int c)
Remove a point from the mask.
|
void |
setAsBooleanMask(BooleanMask5D mask)
Set the mask from a BooleanMask5D object
If specified mask is null then ROI is cleared. |
void |
setAsBooleanMask(Rectangle5D.Integer rect,
BooleanMask4D[] mask)
Set the 5D mask from a 4D boolean mask array
|
void |
setPoint(int x,
int y,
int z,
int t,
int c,
boolean value)
Set the value for the specified point in the mask.
|
void |
setSlice(int c,
ROI4D roiSlice,
boolean merge)
Sets the ROI slice at given C position to this 5D ROI
|
canTranslate, clear, computeBounds5D, computeNumberOfContourPoints, computeNumberOfPoints, contains, contains, getBooleanMask2D, getBooleanMask2D, getSizeC, getSlice, getSlice, getUseChildColor, hasSelectedPoint, intersects, iterator, loadFromXML, overlayChanged, removeSlice, roiChanged, saveToXML, setColor, setColor, setCreating, setFocused, setOpacity, setReadOnly, setSelected, setSlice, setStroke, setUseChildColor, translate, translate, unselectAllPoints
canSetBounds, canSetPosition, contains, getBooleanMask, getBooleanMask3D, getBooleanMask3D, getBooleanMask4D, getBooleanMask4D, getBooleanMask5D, getBounds, getDimension, getPosition, getROI5DList, getROI5DList, intersects, isActiveFor, setBounds5D, setPosition5D
add, addListener, attachTo, beginUpdate, canvasToImageDeltaX, canvasToImageDeltaY, canvasToImageLogDeltaX, canvasToImageLogDeltaX, canvasToImageLogDeltaX, canvasToImageLogDeltaX, canvasToImageLogDeltaY, canvasToImageLogDeltaY, canvasToImageLogDeltaY, canvasToImageLogDeltaY, contains, contains, copyFrom, create, create, create, create, createFromXML, delete, delete, detachFrom, detachFromAll, detachFromAll, endUpdate, exclusiveAdd, focusChanged, getAdjustedStroke, getAdjustedStroke, getBooleanMask2D, getBounds5D, getClassName, getColor, getCopy, getDefaultColor, getDefaultOpacity, getDefaultShowName, getDefaultStroke, getDisplayColor, getExclusiveUnion, getFirstSequence, getFocusedColor, getGroupId, getIcon, getId, getIntersection, getLength, getName, getNameSuffix, getNumberOfContourPoints, getNumberOfPoints, getOpacity, getOverlay, getPainter, getPerimeter, getPosition5D, getProperties, getProperty, getPropertyValue, getROICount, getROIList, getROIList, getROIList, getROIsFromXML, getSelectedColor, getSequences, getShowName, getSimpleClassName, getStroke, getSubROI, getSubtraction, getUnion, getVolume, internalFocus, internalSelect, internalUnfocus, internalUnselect, intersect, intersects, isAttached, isCreating, isDefaultName, isEditable, isFocused, isReadOnly, isSelected, isUpdating, loadFromXML, loadROIsFromXML, merge, mergeWith, nameChanged, onChanged, painterChanged, propertyChanged, remove, remove, removeListener, roiChanged, roiChanged, roiChanged, saveROIsToXML, selectionChanged, setDefaultColor, setDefaultOpacity, setDefaultShowName, setDefaultStroke, setEditable, setGroupId, setIcon, setMousePos, setName, setProperty, setPropertyValue, setROIsFromXML, setSelected, setSelectedColor, setShowName, subtract
public ROI5DArea()
public ROI5DArea(BooleanMask5D mask)
BooleanMask5D
.public java.lang.String getDefaultName()
getDefaultName
in class ROI5DStack<ROI4DArea>
public void addPoint(int x, int y, int z, int t, int c)
public void removePoint(int x, int y, int z, int t, int c)
public void setPoint(int x, int y, int z, int t, int c, boolean value)
public void addBrush(java.awt.geom.Point2D pos, int z, int t, int c)
public void removeBrush(java.awt.geom.Point2D pos, int z, int t, int c)
public void setSlice(int c, ROI4D roiSlice, boolean merge)
c
- the position where the slice must be setroiSlice
- the 4D ROI to setmerge
- true
if the given slice should be merged with the existing slice, or
false
to
replace the existing slice.public boolean isEmpty()
isEmpty
in class ROI5DStack<ROI4DArea>
public void setAsBooleanMask(BooleanMask5D mask)
public void setAsBooleanMask(Rectangle5D.Integer rect, BooleanMask4D[] mask)
rect
- the 5D region defined by 4D boolean mask arraymask
- the 5D mask data (array length should be equals to rect.sizeC)public void optimizeBounds()