Package sc.fiji.snt.hyperpanes
Class MultiDThreePanes
java.lang.Object
sc.fiji.snt.hyperpanes.MultiDThreePanes
- All Implemented Interfaces:
PaneOwner
- Direct Known Subclasses:
SNT
Convenience class defining methods common to SNT's XY, XZ, and ZY panes
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final Stringprotected booleanprotected booleanprotected ij.ImagePlusprotected MultiDThreePanesCanvasstatic final intSNT's XY viewprotected ij.gui.ImageWindowprotected ij.ImagePlusprotected MultiDThreePanesCanvasstatic final intSNT's XZ viewprotected ij.gui.ImageWindowprotected ij.ImagePlusprotected MultiDThreePanesCanvasstatic final intSNT's ZY viewprotected ij.gui.ImageWindow -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcreateCanvas(ij.ImagePlus imagePlus, int plane) voiddisableEventsAllPanes(boolean disable) voiddisableZoomAllPanes(boolean disable) protected int[][]findAllPointsAlongLine(int x_in_pane, int y_in_pane, int plane) voidfindPointInStack(int x_in_pane, int y_in_pane, int plane, int[] point) voidfindPointInStackPrecise(double x_in_pane, double y_in_pane, int plane, double[] point) booleanstatic ij.ImagePlus[]getZYXZ(ij.ImagePlus xy, int frame) voidinitialize(ij.ImagePlus imagePlus) voidinitialize(ij.ImagePlus imagePlus, int frame) protected booleanisDummy()booleanstatic voidvoidmouseMovedTo(double off_screen_x, double off_screen_y, int in_plane, boolean shift_down) Called when the mouse is moved to a new position.voidpanEventOccurred(int off_screen_x, int off_screen_y, int in_plane) Called when a pan event occurs.voidreloadZYXZpanes(int frame) voidprotected voidremoveMIPOverlayAllPanes(String... identifiers) voidvoidsetAnnotationsColorAllPanes(Color newColor) voidsetCanvasLabelAllPanes(String label) protected voidvoidsetCursorTextAllPanes(String label) voidsetDrawCrosshairsAllPanes(boolean drawCrosshairs) protected voidsetLockCursorAllPanes(boolean lockCursor) voidsetSinglePane(boolean single_pane) voidsetZPositionAllPanes(int new_x, int new_y, int new_z) voidshowStatus(int progress, int maximum, String message) Shows a status message with progress information.voidvoidvoidzoomAllPanes(double zoomFactor) voidzoomEventOccurred(boolean in, int off_screen_x, int off_screen_y, int in_plane) Called when a zoom event occurs.
-
Field Details
-
XY_PLANE
public static final int XY_PLANESNT's XY view- See Also:
-
XZ_PLANE
public static final int XZ_PLANESNT's XZ view- See Also:
-
ZY_PLANE
public static final int ZY_PLANESNT's ZY view- See Also:
-
MIP_OVERLAY_IDENTIFIER_PREFIX
- See Also:
-
xy
protected ij.ImagePlus xy -
xz
protected ij.ImagePlus xz -
zy
protected ij.ImagePlus zy -
xy_canvas
-
xz_canvas
-
zy_canvas
-
xy_window
protected ij.gui.ImageWindow xy_window -
xz_window
protected ij.gui.ImageWindow xz_window -
zy_window
protected ij.gui.ImageWindow zy_window -
single_pane
protected boolean single_pane -
singleSlice
protected boolean singleSlice
-
-
Constructor Details
-
MultiDThreePanes
public MultiDThreePanes()
-
-
Method Details
-
findPointInStack
public void findPointInStack(int x_in_pane, int y_in_pane, int plane, int[] point) -
findPointInStackPrecise
public void findPointInStackPrecise(double x_in_pane, double y_in_pane, int plane, double[] point) -
createCanvas
-
mouseMovedTo
public void mouseMovedTo(double off_screen_x, double off_screen_y, int in_plane, boolean shift_down) Description copied from interface:PaneOwnerCalled when the mouse is moved to a new position.- Specified by:
mouseMovedToin interfacePaneOwner- Parameters:
off_screen_x- the x coordinateoff_screen_y- the y coordinatein_plane- the plane identifiershift_down- whether the shift key is pressed
-
zoomEventOccurred
public void zoomEventOccurred(boolean in, int off_screen_x, int off_screen_y, int in_plane) Description copied from interface:PaneOwnerCalled when a zoom event occurs.- Specified by:
zoomEventOccurredin interfacePaneOwner- Parameters:
in- true for zoom in, false for zoom outoff_screen_x- the x coordinate of the zoom centeroff_screen_y- the y coordinate of the zoom centerin_plane- the plane where the zoom occurred
-
setZPositionAllPanes
public void setZPositionAllPanes(int new_x, int new_y, int new_z) -
repaintAllPanes
public void repaintAllPanes() -
disableEventsAllPanes
public void disableEventsAllPanes(boolean disable) -
zoom100PercentAllPanes
public void zoom100PercentAllPanes() -
zoomAllPanes
public void zoomAllPanes(double zoomFactor) -
unzoomAllPanes
public void unzoomAllPanes() -
disableZoomAllPanes
public void disableZoomAllPanes(boolean disable) -
isZoomAllPanesDisabled
public boolean isZoomAllPanesDisabled() -
setDrawCrosshairsAllPanes
public void setDrawCrosshairsAllPanes(boolean drawCrosshairs) -
setLockCursorAllPanes
protected void setLockCursorAllPanes(boolean lockCursor) -
setCanvasLabelAllPanes
-
setCanvasLabelBackgroundAllPanes
-
setAnnotationsColorAllPanes
-
setCursorTextAllPanes
-
removeMIPOverlayAllPanes
public void removeMIPOverlayAllPanes() -
removeMIPOverlayAllPanes
-
closeAndResetAllPanes
public void closeAndResetAllPanes() -
reloadZYXZpanes
public void reloadZYXZpanes(int frame) -
getSinglePane
public boolean getSinglePane() -
setSinglePane
public void setSinglePane(boolean single_pane) -
initialize
public void initialize(ij.ImagePlus imagePlus) -
initialize
public void initialize(ij.ImagePlus imagePlus, int frame) -
isDummy
protected boolean isDummy() -
findAllPointsAlongLine
protected int[][] findAllPointsAlongLine(int x_in_pane, int y_in_pane, int plane) -
showStatus
Description copied from interface:PaneOwnerShows a status message with progress information.- Specified by:
showStatusin interfacePaneOwner- Parameters:
progress- the current progress valuemaximum- the maximum progress valuemessage- the status message to display
-
getZYXZ
public static ij.ImagePlus[] getZYXZ(ij.ImagePlus xy, int frame) -
main
-
panEventOccurred
public void panEventOccurred(int off_screen_x, int off_screen_y, int in_plane) Description copied from interface:PaneOwnerCalled when a pan event occurs.- Specified by:
panEventOccurredin interfacePaneOwner- Parameters:
off_screen_x- the x coordinate of the panoff_screen_y- the y coordinate of the panin_plane- the plane where the pan occurred
-