public class ROI3DLine extends ROI3DShape
Modifier and Type | Class and Description |
---|---|
class |
ROI3DLine.ROI3DLinePainter |
ROI3DShape.ROI3DShapePainter
ROI3D.ROI3DPainter
ROI.ROIGroupId, ROI.ROIIdComparator, ROI.ROINameComparator, ROI.ROIPainter
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ID_PT1 |
static java.lang.String |
ID_PT2 |
ID_POINT, ID_POINTS
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 |
---|
ROI3DLine() |
ROI3DLine(double x1,
double y1,
double z1,
double x2,
double y2,
double z2) |
ROI3DLine(Line3D line) |
ROI3DLine(Point3D pt) |
ROI3DLine(Point3D pt1,
Point3D pt2) |
ROI3DLine(Point5D pt)
Generic constructor for interactive mode
|
Modifier and Type | Method and Description |
---|---|
boolean |
canAddPoint()
Return true if this ROI support adding new point
|
boolean |
canRemovePoint()
Return true if this ROI support removing point
|
boolean |
canSetBounds()
Returns
true if this ROI accepts bounds change through the ROI.setBounds5D(Rectangle5D) method. |
double |
computeNumberOfPoints()
Compute and returns the number of point (pixel) contained in the ROI.
|
boolean |
contains(ROI roi)
Tests if the
ROI entirely contains the specified ROI . |
static void |
drawLine3DInBooleanMask2D(java.awt.Rectangle bounds2d,
boolean[] result,
int z,
Point3D p1,
Point3D p2) |
boolean[] |
getBooleanMask2D(int x,
int y,
int width,
int height,
int z,
boolean inclusive)
Get the boolean bitmap mask for the specified rectangular area of the roi and for the
specified Z position.
|
java.lang.String |
getDefaultName() |
Line3D |
getLine() |
boolean |
intersects(ROI r)
Tests if the current
ROI intersects the specified ROI . |
boolean |
loadFromXML(org.w3c.dom.Node node)
LOAD
|
boolean |
saveToXML(org.w3c.dom.Node node)
SAVE
|
void |
setBounds3D(Rectangle3D bounds)
Set the
ROI 3D bounds. |
void |
setLine(Line3D line) |
addNewPoint, addPoint, canTranslate, computeBounds3D, computeNumberOfContourPoints, computeSurfaceArea, contains, contains, contains, contains, controlPointOverlayChanged, controlPointPositionChanged, getControlPoints, getLength, getPoints, getShape, hasSelectedPoint, intersects, intersects, isOverEdge, onChanged, removePoint, removeSelectedPoint, translate, unselectAllPoints
canSetPosition, computeBounds5D, contains, contains, getBooleanMask, getBooleanMask2D, getBooleanMask2D, getBooleanMask2D, getBooleanMask2D, getBooleanMask3D, getBounds, getBounds3D, getC, getDimension, getPosition, getPosition3D, getROI3DList, getROI3DList, getSurfaceArea, getSurfaceArea, getT, getVolume, intersects, isActiveFor, isActiveFor, isOverEdge, isOverEdge, isOverEdge, setBounds5D, setC, setPosition3D, setPosition5D, setT
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, 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, internalFocus, internalSelect, internalUnfocus, internalUnselect, intersect, intersects, isAttached, isCreating, isDefaultName, isEditable, isEmpty, isFocused, isReadOnly, isSelected, isUpdating, loadFromXML, loadROIsFromXML, merge, mergeWith, nameChanged, painterChanged, propertyChanged, remove, remove, removeListener, roiChanged, roiChanged, roiChanged, saveROIsToXML, selectionChanged, setColor, setCreating, setDefaultColor, setDefaultOpacity, setDefaultShowName, setDefaultStroke, setEditable, setFocused, setGroupId, setIcon, setMousePos, setName, setOpacity, setProperty, setPropertyValue, setReadOnly, setROIsFromXML, setSelected, setSelected, setSelectedColor, setShowName, setStroke, subtract
public static final java.lang.String ID_PT1
public static final java.lang.String ID_PT2
public ROI3DLine(double x1, double y1, double z1, double x2, double y2, double z2)
public ROI3DLine()
public java.lang.String getDefaultName()
getDefaultName
in class ROI3DShape
public boolean canAddPoint()
ROI3DShape
canAddPoint
in class ROI3DShape
public boolean canRemovePoint()
ROI3DShape
canRemovePoint
in class ROI3DShape
public boolean canSetBounds()
ROI
true
if this ROI accepts bounds change through the ROI.setBounds5D(Rectangle5D)
method.canSetBounds
in class ROI3D
public void setBounds3D(Rectangle3D bounds)
ROI3D
ROI
3D bounds.ROI3D.canSetBounds()
first to test if
the operation is supported.setBounds3D
in class ROI3D
bounds
- new ROI 3D boundspublic boolean[] getBooleanMask2D(int x, int y, int width, int height, int z, boolean inclusive)
ROI3D
getBooleanMask2D
in class ROI3D
x
- the X coordinate of the upper-left corner of the specified rectangular areay
- the Y coordinate of the upper-left corner of the specified rectangular areawidth
- the width of the specified rectangular areaheight
- the height of the specified rectangular areaz
- Z position we want to retrieve the boolean maskinclusive
- If true then all partially contained (intersected) pixels are included in the mask.public static void drawLine3DInBooleanMask2D(java.awt.Rectangle bounds2d, boolean[] result, int z, Point3D p1, Point3D p2)
public double computeNumberOfPoints()
ROI
computeNumberOfPoints
in class ROI3DShape
public boolean contains(ROI roi)
ROI
ROI
entirely contains the specified ROI
.
WARNING: this method may be "pixel accurate" only depending the internal implementation.public boolean intersects(ROI r)
ROI
ROI
intersects the specified ROI
.intersects
in class ROI3D
true
if ROI
intersect, false
otherwise.public boolean loadFromXML(org.w3c.dom.Node node)
XMLPersistent
loadFromXML
in interface XMLPersistent
loadFromXML
in class ROI3DShape
public boolean saveToXML(org.w3c.dom.Node node)
XMLPersistent
saveToXML
in interface XMLPersistent
saveToXML
in class ROI3D