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

Method setRoiPosition

ij/src/main/java/ij/macro/Functions.java:8183–8193  ·  view source on GitHub ↗
(Roi roi)

Source from the content-addressed store, hash-verified

8181 }
8182
8183 void setRoiPosition(Roi roi) {
8184 int channel = (int)getFirstArg();
8185 if (interp.nextToken()==')') {
8186 interp.getRightParen();
8187 roi.setPosition(channel);
8188 return;
8189 }
8190 int slice = (int)getNextArg();
8191 int frame = (int)getLastArg();
8192 roi.setPosition(channel, slice, frame);
8193 }
8194
8195 void getRoiPosition(Roi roi) {
8196 Variable channel = getFirstVariable();

Callers 1

doRoiMethod · 0.95

Calls 6

getFirstArgMethod · 0.95
getNextArgMethod · 0.95
getLastArgMethod · 0.95
getRightParenMethod · 0.80
nextTokenMethod · 0.45
setPositionMethod · 0.45

Tested by

no test coverage detected