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

Method doIPMethod

ij/src/main/java/ij/macro/Functions.java:1166–1188  ·  view source on GitHub ↗
(int type)

Source from the content-addressed store, hash-verified

1164 }
1165
1166 void doIPMethod(int type) {
1167 interp.getParens();
1168 ImageProcessor ip = getProcessor();
1169 switch (type) {
1170 case SNAPSHOT: ip.snapshot(); break;
1171 case RESET:
1172 ip.reset();
1173 updateNeeded = true;
1174 break;
1175 case FILL:
1176 ImagePlus imp = getImage();
1177 Roi roi = imp.getRoi();
1178 if (roi==null) {
1179 ip.resetRoi();
1180 ip.fill();
1181 } else {
1182 ip.setRoi(roi);
1183 ip.fill(ip.getMask());
1184 }
1185 imp.updateAndDraw();
1186 break;
1187 }
1188 }
1189
1190 void updateAndDraw() {
1191 if (autoUpdate) {

Callers 1

doFunctionMethod · 0.95

Calls 11

getProcessorMethod · 0.95
snapshotMethod · 0.95
resetMethod · 0.95
getImageMethod · 0.95
getRoiMethod · 0.95
resetRoiMethod · 0.95
fillMethod · 0.95
setRoiMethod · 0.95
getMaskMethod · 0.95
updateAndDrawMethod · 0.95
getParensMethod · 0.80

Tested by

no test coverage detected