public class PointHandler extends Roi
ANGLE, asp_bk, aspect, cachedMask, center, clipboard, clipHeight, clipWidth, clipX, clipY, COMPOSITE, constrain, CONSTRUCTING, defaultColor, defaultFillColor, FERET_ARRAY_POINTOFFSET, FERET_ARRAYSIZE, fillColor, flattenScale, FREELINE, FREEROI, HANDLE_SIZE, handleColor, ic, ignoreClipRect, instanceColor, LINE, lineWidth, mag, MOVING, MOVING_HANDLE, nonScalable, NORMAL, NOT_PASTING, oldHeight, oldWidth, oldX, oldY, onePixelWide, OVAL, overlay, pasteMode, POINT, POLYGON, POLYLINE, previousRoi, RECTANGLE, RESIZING, ROIColor, stroke, strokeColor, TRACED_ROI, type, updateFullWindow, wideLine, xMax, yMax
Constructor and Description |
---|
PointHandler(ij.ImagePlus imp)
Constructor without graphical capabilities, create an instance of PointHandler.
|
PointHandler(ij.ImagePlus imp,
PointToolbar tb,
Mask mask,
MainDialog dialog)
Constructor with graphical capabilities, create an instance of PointHandler.
|
PointHandler(int width,
int height)
Constructor without graphical capabilities, create an instance of PointHandler.
|
Modifier and Type | Method and Description |
---|---|
void |
addMaskPoint(int x,
int y)
Add a point to the mask.
|
void |
addPoint(int x,
int y)
Add a point to the list of points.
|
boolean |
canAddMaskPoints()
Check if it is possible to add points to the mask.
|
void |
clearMask()
Remove all the elements of the mask.
|
void |
closeMask(int tool)
Close mask.
|
void |
draw(Graphics g)
Draw the landmarks and mask.
|
int |
findClosest(int x,
int y)
Find the the closest point to a certain point from the list of points.
|
int |
getCurrentPoint()
Get current point index.
|
Point |
getPoint()
Get the current point in the list of points.
|
PointAction |
getPointAction()
Get point action.
|
Vector<Point> |
getPoints()
Get the list of points.
|
void |
killListeners()
Kill listeners.
|
void |
movePoint(int x,
int y)
Move the current point into a new position.
|
void |
nextPoint()
Increase the current point index one position in the list.
|
void |
removePoint()
Remove the current point.
|
void |
removePoint(int k)
Remove one specific point.
|
void |
removePoints()
Remove all points in the mask.
|
void |
setCurrentPoint(int currentPoint)
Set the current point.
|
void |
setSecondaryPointHandler(ij.ImagePlus secondaryImp,
PointHandler secondaryPh)
Set the secondary point handler.
|
void |
setTestSourceSet(int set)
Set the set of test for the source.
|
void |
setTestTargetSet(int set)
Set the set of test for the target.
|
abortModification, abortPaste, addRoiListener, clipRectMargin, clone, contains, containsPoint, convertLineToArea, convertToPolygon, copyAttributes, create, create, drawOverlay, drawPixels, drawPixels, enableSubPixelResolution, endPaste, equals, getAngle, getAngle, getAntiAlias, getBoundingRect, getBounds, getColor, getContainedFloatPoints, getContainedPoints, getContourCentroid, getConvexHull, getCornerDiameter, getCPosition, getCurrentPasteMode, getDebugInfo, getDefaultFillColor, getDefaultGroup, getDefaultHandleSize, getDefaultStrokeWidth, getDrawOffset, getFeretsDiameter, getFeretValues, getFillColor, getFloatAngle, getFloatBounds, getFloatConvexHull, getFloatHeight, getFloatPolygon, getFloatPolygon, getFloatWidth, getGroup, getGroupName, getGroupNames, getHandleSize, getHashCode, getImage, getImageID, getInterpolatedPolygon, getInterpolatedPolygon, getInterpolatedPolygon, getInverse, getLength, getListeners, getMagnification, getMask, getName, getPasteMode, getPolygon, getPosition, getPreviousRoi, getProperties, getProperty, getPropertyCount, getPrototypeOverlay, getRotationCenter, getRoundRectArcSize, getScaledStroke, getScaleStrokeWidth, getState, getStatistics, getStroke, getStrokeColor, getStrokeWidth, getTPosition, getType, getTypeAsString, getXBase, getYBase, getZPosition, grow, handleMouseDown, handleMouseDrag, handleMouseUp, hasHyperStackPosition, isActiveOverlayRoi, isArea, isCursor, isDrawingTool, isHandle, isInteger, isLine, isLineOrPoint, isVisible, iterator, lineCircleIntersection, magnificationForSubPixel, magnificationForSubPixel, mouseDownInHandle, mouseDragged, mouseMoved, mouseReleased, moveHandle, notifyListeners, nudge, nudgeCorner, offScreenX, offScreenXD, offScreenY, offScreenYD, removeRoiListener, resetDefaultHandleSize, saveGroupNames, screenX, screenXD, screenY, screenYD, setAntiAlias, setBounds, setColor, setCornerDiameter, setDefaultColor, setDefaultFillColor, setDefaultGroup, setDefaultStrokeWidth, setDrawOffset, setFillColor, setFlattenScale, setGroup, setGroupName, setGroupNames, setHandleSize, setIgnoreClipRect, setImage, setInstanceColor, setIsCursor, setLineWidth, setLocation, setLocation, setName, setNonScalable, setPasteMode, setPosition, setPosition, setPosition, setPreviousRoi, setProperties, setProperty, setPrototypeOverlay, setRenderingHint, setRotationCenter, setRoundRectArcSize, setStroke, setStrokeColor, setStrokeWidth, setStrokeWidth, setUnscalableStrokeWidth, showStatus, size, startPaste, subPixelResolution, temporarilyHide, toFloat, toInt, toInt, toIntR, toString, update, updateClipRect, updateWideLine, useLineSubpixelConvention
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
forEach, spliterator
public PointHandler(ij.ImagePlus imp, PointToolbar tb, Mask mask, MainDialog dialog)
imp
- pointer to the imagetb
- pointer to the toolbarmask
- pointer to the maskdialog
- pointer to the bUnwarpJ dialogpublic PointHandler(ij.ImagePlus imp)
imp
- imagepublic PointHandler(int width, int height)
width
- image widthheight
- image heightpublic void addMaskPoint(int x, int y)
x
- x- point coordinatey
- y- point coordinatepublic void addPoint(int x, int y)
x
- x- point coordinatey
- y- point coordinatepublic boolean canAddMaskPoints()
public void clearMask()
public void closeMask(int tool)
tool
- option to invert or not the maskpublic void draw(Graphics g)
public int findClosest(int x, int y)
x
- x- point coordinatey
- y- point coordinatepublic Point getPoint()
public PointAction getPointAction()
public int getCurrentPoint()
public void killListeners()
public void movePoint(int x, int y)
x
- x-coordinate of the new positiony
- y-coordinate of the new positionpublic void nextPoint()
public void removePoint()
public void removePoint(int k)
k
- index of the point to be removedpublic void removePoints()
public void setCurrentPoint(int currentPoint)
currentPoint
- new current point indexpublic void setTestSourceSet(int set)
set
- number of source setpublic void setTestTargetSet(int set)
set
- number of target setpublic void setSecondaryPointHandler(ij.ImagePlus secondaryImp, PointHandler secondaryPh)
secondaryImp
- pointer to the secondary imagesecondaryPh
- secondary point handlerCopyright © 2015–2021 Fiji. All rights reserved.