All Implemented Interfaces:
ImageObserver, ItemSelectable, MenuContainer, Serializable, Accessible, MenuElement, SwingConstants, BasicBDVPopup, ExplorerWindowSetable

public class BDVPopup extends JMenuItem implements ExplorerWindowSetable, BasicBDVPopup
See Also:
  • Field Details

    • useLazyMode

      public static boolean useLazyMode
      Set by Data_Explorer's large-dataset dialog. When true, the explorer registers a LazyBDVPopup as the (only) BDV menu item; when false, registers a regular BDVPopup. Defaults to eager.
    • panel

      public ExplorerWindow<?> panel
    • bdv

      public bdv.BigDataViewer bdv
  • Constructor Details

    • BDVPopup

      public BDVPopup()
  • Method Details

    • setExplorerWindow

      public JMenuItem setExplorerWindow(ExplorerWindow<?> panel)
      Specified by:
      setExplorerWindow in interface ExplorerWindowSetable
    • reStartBDV

      public void reStartBDV()
    • closeBDV

      public void closeBDV()
      Specified by:
      closeBDV in interface BasicBDVPopup
    • getBDV

      public bdv.BigDataViewer getBDV()
      Specified by:
      getBDV in interface BasicBDVPopup
    • updateBDV

      public void updateBDV()
      Specified by:
      updateBDV in interface BasicBDVPopup
    • bdvRunning

      public boolean bdvRunning()
      Specified by:
      bdvRunning in interface BasicBDVPopup
    • setBDV

      public void setBDV(bdv.BigDataViewer bdv)
      Description copied from interface: BasicBDVPopup
      Adopt an already-running BigDataViewer instance (e.g. when an explorer transfers a live BDV across a panel rebuild, such as the BigStitcher Stitching <-> Multiview mode switch). Implementations that manage their own dynamic source list (lazy popups) must re-wire their selection listener to the current panel and re-sync the current selection.
      Specified by:
      setBDV in interface BasicBDVPopup
    • initBrightness

      public static void initBrightness(double cumulativeMinCutoff, double cumulativeMaxCutoff, bdv.viewer.ViewerFrame viewerFrame)
      set BDV brightness by sampling the mid z plane (and 1/4 and 3/4 if z is large enough ) of the currently selected source (typically the first source) and getting quantiles from intensity histogram (slightly modified version of InitializeViewerState.initBrightness)
      Parameters:
      cumulativeMinCutoff - fraction of pixels that are allowed to be saturated at the lower end of the range.
      cumulativeMaxCutoff - fraction of pixels that are allowed to be saturated at the upper end of the range.
      viewerFrame - the ViewerFrame containing ViewerState and ConverterSetups
    • createBDV

      public static bdv.BigDataViewer createBDV(ExplorerWindow<?> panel)
    • createBDV

      public static bdv.BigDataViewer createBDV(mpicbg.spim.data.generic.AbstractSpimData<?> spimData, URI xml)
    • initTransform

      public static void initTransform(bdv.viewer.ViewerPanel viewer)
    • initTransform

      public static net.imglib2.realtransform.AffineTransform3D initTransform(int viewerWidth, int viewerHeight, boolean zoomedIn, bdv.viewer.ViewerState state)