MCPcopy Create free account
hub / github.com/AstroImageJ/astroimagej / deleteRoi

Method deleteRoi

ij/src/main/java/ij/ImagePlus.java:2301–2316  ·  view source on GitHub ↗

Deletes the current region of interest. Makes a copy of the ROI so it can be recovered by Edit/Selection/Restore Selection.

()

Source from the content-addressed store, hash-verified

2299 /** Deletes the current region of interest. Makes a copy of the ROI
2300 so it can be recovered by Edit/Selection/Restore Selection. */
2301 public void deleteRoi() {
2302 if (roi==null)
2303 return;
2304 saveRoi();
2305 if (!(IJ.altKeyDown()||IJ.shiftKeyDown())) {
2306 RoiManager rm = RoiManager.getRawInstance();
2307 if (rm!=null)
2308 rm.deselect(roi);
2309 }
2310 if (roi!=null)
2311 roi.notifyListeners(RoiListener.DELETED);
2312 roi = null;
2313 if (ip!=null)
2314 ip.resetRoi();
2315 draw();
2316 }
2317
2318 /** Removes the spatial scaling of this image. */
2319 public void removeScale() {

Callers 15

closeMethod · 0.95
setRoiMethod · 0.95
createNewRoiMethod · 0.95
killRoiMethod · 0.95
resetRoiMethod · 0.95
duplicateMethod · 0.95
flattenMethod · 0.95
runMethod · 0.95
runMethod · 0.95
outlineLanesMethod · 0.95
runMethod · 0.95
addSelectionMethod · 0.95

Calls 8

saveRoiMethod · 0.95
altKeyDownMethod · 0.95
shiftKeyDownMethod · 0.95
getRawInstanceMethod · 0.95
deselectMethod · 0.95
drawMethod · 0.95
notifyListenersMethod · 0.45
resetRoiMethod · 0.45

Tested by

no test coverage detected