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

Method setPosition

ij/src/main/java/ij/gui/Roi.java:2231–2235  ·  view source on GitHub ↗

Sets the stack position (image number) of this ROI. In an overlay, this ROI is only displayed when the stack is at the specified position. Set to zero to have the ROI displayed on all images in the stack. Clears the hyperStackPosition, if there was one. @see ij.gui.Overlay

(int n)

Source from the content-addressed store, hash-verified

2229 * @see ij.gui.Overlay
2230 */
2231 public void setPosition(int n) {
2232 if (n<0) n=0;
2233 position = n;
2234 channel = slice = frame = 0;
2235 }
2236
2237 /** Returns the stack position (image number) for displaying this ROI,
2238 * in an overlay (or the RoiManager's 'Show All'. Returns zero if the

Callers 15

convertMethod · 0.95
runMethod · 0.95
convertStackToImagesMethod · 0.95
runMethod · 0.95
optionsMethod · 0.95
runMethod · 0.95
runMethod · 0.95
projectStackRoisMethod · 0.95
projectHyperStackRoisMethod · 0.95
addRoiMethod · 0.95
updateMethod · 0.95

Calls 7

getCurrentSliceMethod · 0.80
getChannelMethod · 0.65
getFrameMethod · 0.65
isHyperStackMethod · 0.45
getDisplayModeMethod · 0.45
getSliceMethod · 0.45
getStackSizeMethod · 0.45

Tested by

no test coverage detected