public class ROI4DArea extends ROI4DStack<ROI3DArea>
ROI4DStack.ROI4DStackPainter
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 |
---|
ROI4DArea() |
ROI4DArea(BooleanMask4D mask)
Create a 3D Area ROI type from the specified
BooleanMask4D . |
ROI4DArea(Point4D pt) |
ROI4DArea(Point5D pt) |
ROI4DArea(ROI4DArea area)
Create a copy of the specified 4D Area ROI.
|
Modifier and Type | Method and Description |
---|---|
void |
addBrush(java.awt.geom.Point2D pos,
int z,
int t)
Add brush point at specified position and for specified Z,T slice.
|
void |
addPoint(int x,
int y,
int z,
int t)
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
You should call it after consecutive remove operations. |
void |
removeBrush(java.awt.geom.Point2D pos,
int z,
int t)
Remove brush point from the mask at specified position and for specified Z,T slice.
|
void |
removePoint(int x,
int y,
int z,
int t)
Remove a point from the mask.
|
void |
setAsBooleanMask(BooleanMask4D mask)
Set the mask from a BooleanMask4D object
If specified mask is null then ROI is cleared. |
void |
setAsBooleanMask(Rectangle4D.Integer rect,
BooleanMask3D[] mask)
Set the 4D mask from a 3D boolean mask array
|
void |
setPoint(int x,
int y,
int z,
int t,
boolean value)
Set the value for the specified point in the mask.
|
void |
setSlice(int t,
ROI3D roiSlice,
boolean merge)
Sets the ROI slice at given T position to this 4D ROI
|
canTranslate, clear, computeBounds4D, computeNumberOfContourPoints, computeNumberOfPoints, contains, contains, getBooleanMask2D, getBooleanMask2D, getSizeT, getSlice, getSlice, getUseChildColor, hasSelectedPoint, intersects, iterator, loadFromXML, overlayChanged, removeSlice, roiChanged, saveToXML, setC, setColor, setColor, setCreating, setFocused, setOpacity, setReadOnly, setSelected, setSlice, setStroke, setUseChildColor, translate, translate, unselectAllPoints
canSetBounds, canSetPosition, computeBounds5D, contains, contains, contains, contains, contains, getBooleanMask, getBooleanMask2D, getBooleanMask2D, getBooleanMask2D, getBooleanMask3D, getBooleanMask3D, getBooleanMask4D, getBounds, getBounds4D, getC, getDimension, getPosition, getPosition4D, getROI4DList, getROI4DList, intersects, intersects, intersects, isActiveFor, isActiveFor, setBounds4D, setBounds5D, setPosition4D, 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 ROI4DArea()
public ROI4DArea(BooleanMask4D mask)
BooleanMask4D
.public java.lang.String getDefaultName()
getDefaultName
in class ROI4DStack<ROI3DArea>
public void addPoint(int x, int y, int z, int t)
public void removePoint(int x, int y, int z, int t)
public void setPoint(int x, int y, int z, int t, boolean value)
public void addBrush(java.awt.geom.Point2D pos, int z, int t)
public void removeBrush(java.awt.geom.Point2D pos, int z, int t)
public void setSlice(int t, ROI3D roiSlice, boolean merge)
t
- the position where the slice must be setroiSlice
- the 3D 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 ROI4DStack<ROI3DArea>
public void setAsBooleanMask(BooleanMask4D mask)
public void setAsBooleanMask(Rectangle4D.Integer rect, BooleanMask3D[] mask)
rect
- the 4D region defined by 3D boolean mask arraymask
- the 4D mask data (array length should be equals to rect.sizeT)public void optimizeBounds()