Class MultiDThreePanes

java.lang.Object
sc.fiji.snt.hyperpanes.MultiDThreePanes
All Implemented Interfaces:
PaneOwner
Direct Known Subclasses:
SNT

public class MultiDThreePanes extends Object implements PaneOwner
Convenience class defining methods common to SNT's XY, XZ, and ZY panes
  • Field Details

    • XY_PLANE

      public static final int XY_PLANE
      SNT's XY view
      See Also:
    • XZ_PLANE

      public static final int XZ_PLANE
      SNT's XZ view
      See Also:
    • ZY_PLANE

      public static final int ZY_PLANE
      SNT's ZY view
      See Also:
    • MIP_OVERLAY_IDENTIFIER_PREFIX

      protected static final String MIP_OVERLAY_IDENTIFIER_PREFIX
      See Also:
    • xy

      protected ij.ImagePlus xy
    • xz

      protected ij.ImagePlus xz
    • zy

      protected ij.ImagePlus zy
    • xy_canvas

      protected MultiDThreePanesCanvas xy_canvas
    • xz_canvas

      protected MultiDThreePanesCanvas xz_canvas
    • zy_canvas

      protected MultiDThreePanesCanvas 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

      public MultiDThreePanesCanvas createCanvas(ij.ImagePlus imagePlus, int plane)
    • mouseMovedTo

      public void mouseMovedTo(double off_screen_x, double off_screen_y, int in_plane, boolean shift_down)
      Description copied from interface: PaneOwner
      Called when the mouse is moved to a new position.
      Specified by:
      mouseMovedTo in interface PaneOwner
      Parameters:
      off_screen_x - the x coordinate
      off_screen_y - the y coordinate
      in_plane - the plane identifier
      shift_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: PaneOwner
      Called when a zoom event occurs.
      Specified by:
      zoomEventOccurred in interface PaneOwner
      Parameters:
      in - true for zoom in, false for zoom out
      off_screen_x - the x coordinate of the zoom center
      off_screen_y - the y coordinate of the zoom center
      in_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

      public void setCanvasLabelAllPanes(String label)
    • setCanvasLabelBackgroundAllPanes

      protected void setCanvasLabelBackgroundAllPanes(Color color)
    • setAnnotationsColorAllPanes

      public void setAnnotationsColorAllPanes(Color newColor)
    • setCursorTextAllPanes

      public void setCursorTextAllPanes(String label)
    • removeMIPOverlayAllPanes

      public void removeMIPOverlayAllPanes()
    • removeMIPOverlayAllPanes

      protected void removeMIPOverlayAllPanes(String... identifiers)
    • 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

      public void showStatus(int progress, int maximum, String message)
      Description copied from interface: PaneOwner
      Shows a status message with progress information.
      Specified by:
      showStatus in interface PaneOwner
      Parameters:
      progress - the current progress value
      maximum - the maximum progress value
      message - the status message to display
    • getZYXZ

      public static ij.ImagePlus[] getZYXZ(ij.ImagePlus xy, int frame)
    • main

      public static void main(String[] args)
    • panEventOccurred

      public void panEventOccurred(int off_screen_x, int off_screen_y, int in_plane)
      Description copied from interface: PaneOwner
      Called when a pan event occurs.
      Specified by:
      panEventOccurred in interface PaneOwner
      Parameters:
      off_screen_x - the x coordinate of the pan
      off_screen_y - the y coordinate of the pan
      in_plane - the plane where the pan occurred