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

Method addPoint

ij/src/main/java/ij/gui/Roi.java:1706–1717  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1704 }
1705
1706 void addPoint() {
1707 if (!(type==POINT && previousRoi.getType()==POINT)) {
1708 modState = NO_MODS;
1709 imp.draw();
1710 return;
1711 }
1712 previousRoi.modState = NO_MODS;
1713 PointRoi p1 = (PointRoi)previousRoi;
1714 FloatPolygon poly = getFloatPolygon();
1715 p1.addPoint(imp, poly.xpoints[0], poly.ypoints[0]);
1716 imp.setRoi(p1);
1717 }
1718
1719 void subtractPoints() {
1720 previousRoi.modState = NO_MODS;

Callers 1

modifyRoiMethod · 0.95

Calls 5

getFloatPolygonMethod · 0.95
addPointMethod · 0.95
getTypeMethod · 0.65
drawMethod · 0.45
setRoiMethod · 0.45

Tested by

no test coverage detected