public class ROI3DArea extends ROI3DStack<ROI2DArea>
Modifier and Type | Class and Description |
---|---|
class |
ROI3DArea.ROI3DAreaPainter |
ROI3DStack.ROI3DStackPainter
ROI.ROIIdComparator, ROI.ROINameComparator, ROI.ROIPainter
PROPERTY_USECHILDCOLOR
DEFAULT_COLOR, DEFAULT_NORMAL_COLOR, DEFAULT_OPACITY, DEFAULT_STROKE, ID_CLASSNAME, ID_COLOR, ID_ID, ID_NAME, ID_OPACITY, ID_READONLY, ID_ROI, ID_SELECTED, ID_SHOWNAME, ID_STROKE, idComparator, nameComparator, PROPERTY_COLOR, PROPERTY_CREATING, PROPERTY_ICON, PROPERTY_NAME, PROPERTY_OPACITY, PROPERTY_READONLY, PROPERTY_SHOWNAME, PROPERTY_STROKE
Constructor and Description |
---|
ROI3DArea() |
ROI3DArea(BooleanMask3D mask)
Create a 3D Area ROI type from the specified
BooleanMask3D . |
ROI3DArea(Point3D pt) |
ROI3DArea(Point5D pt) |
ROI3DArea(ROI3DArea area)
Create a copy of the specified 3D Area ROI.
|
Modifier and Type | Method and Description |
---|---|
void |
addBrush(java.awt.geom.Point2D pos,
int z)
Add brush point at specified position and for specified Z slice.
|
void |
addPoint(int x,
int y,
int z)
Adds the specified point to this ROI
|
Point3D[] |
getEdgePoints()
Deprecated.
Use
ROI3D.getBooleanMask(boolean) and BooleanMask3D.getContourPoints()
instead. |
Point3D[] |
getPoints()
Deprecated.
Use
ROI3D.getBooleanMask(boolean) and BooleanMask3D.getPoints()
instead. |
boolean |
isEmpty()
Returns true if the ROI is empty (the mask does not contains any point).
|
void |
onChanged(EventHierarchicalChecker object)
roi changed
|
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)
Remove brush point from the mask at specified position and for specified Z slice.
|
void |
removePoint(int x,
int y,
int z)
Remove a point from the mask.
|
void |
setAsBooleanMask(BooleanMask3D mask)
Set the mask from a BooleanMask3D object
|
void |
setAsBooleanMask(Rectangle3D.Integer rect,
BooleanMask2D[] mask)
Set the 3D mask from a 2D boolean mask array
|
void |
setPoint(int x,
int y,
int z,
boolean value)
Set the value for the specified point in the mask.
|
void |
setPosition2D(java.awt.geom.Point2D newPosition)
Set all 2D slices ROI to same position.
|
void |
setSlice(int z,
ROI2D roiSlice,
boolean merge)
Sets the ROI slice at given Z position to this 3D ROI
|
void |
translate(double dx,
double dy)
Deprecated.
Use
ROI3DStack.translate(double, double, double) instead. |
canTranslate, clear, computeBounds3D, computeNumberOfContourPoints, computeNumberOfPoints, contains, contains, getBooleanMask2D, getBooleanMask2D, getSizeZ, getSlice, getSlice, getUseChildColor, hasSelectedPoint, intersects, iterator, loadFromXML, overlayChanged, removeSlice, roiChanged, saveToXML, setC, setColor, setColor, setCreating, setFocused, setOpacity, setReadOnly, setSelected, setSlice, setStroke, setT, setUseChildColor, translate, translate
canSetBounds, canSetPosition, computeBounds5D, contains, contains, contains, contains, contains, getBooleanMask, getBooleanMask2D, getBooleanMask2D, getBooleanMask2D, getBooleanMask3D, getBounds, getBounds3D, getC, getDimension, getPosition, getPosition3D, getROI3DList, getROI3DList, getSurfaceArea, getT, getVolume, intersects, intersects, intersects, isActiveFor, isActiveFor, setBounds3D, setBounds5D, setPosition3D, setPosition5D
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, focusChanged, getAdjustedStroke, getAdjustedStroke, getBooleanMask2D, getBounds5D, getClassName, getColor, getCopy, getDisplayColor, getExclusiveUnion, getFirstSequence, getFocusedColor, getIcon, getId, getIntersection, getName, getNumberOfContourPoints, getNumberOfPoints, getOpacity, getOverlay, getPainter, getPerimeter, getPosition5D, getPropertyValue, getROICount, getROIList, getROIList, getROIList, getROIsFromXML, getSelectedColor, getSequences, getShowName, getSimpleClassName, getStroke, getSubtraction, getUnion, internalFocus, internalSelect, internalUnfocus, internalUnselect, intersects, isAttached, isCreating, isEditable, isFocused, isReadOnly, isSelected, isUpdating, loadFromXML, loadROIsFromXML, merge, nameChanged, painterChanged, propertyChanged, remove, remove, removeListener, roiChanged, roiChanged, saveROIsToXML, selectionChanged, setEditable, setIcon, setMousePos, setName, setPropertyValue, setROIsFromXML, setSelected, setSelectedColor, setShowName
public ROI3DArea()
public ROI3DArea(BooleanMask3D mask)
BooleanMask3D
.public void addPoint(int x, int y, int z)
public void removePoint(int x, int y, int z)
public void setPoint(int x, int y, int z, boolean value)
public void addBrush(java.awt.geom.Point2D pos, int z)
public void removeBrush(java.awt.geom.Point2D pos, int z)
public void setSlice(int z, ROI2D roiSlice, boolean merge)
z
- the position where the slice must be setroiSlice
- the 2D 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 ROI3DStack<ROI2DArea>
@Deprecated public Point3D[] getEdgePoints()
@Deprecated public void translate(double dx, double dy)
ROI3DStack.translate(double, double, double)
instead.public void setPosition2D(java.awt.geom.Point2D newPosition)
public void setAsBooleanMask(BooleanMask3D mask)
public void setAsBooleanMask(Rectangle3D.Integer rect, BooleanMask2D[] mask)
rect
- the 3D region defined by 2D boolean mask arraymask
- the 3D mask data (array length should be equals to rect.sizeZ)public void optimizeBounds()
public void onChanged(EventHierarchicalChecker object)
onChanged
in interface ChangeListener
onChanged
in class ROI