Package bdv.viewer

Class AbstractViewerPanel

    • Constructor Detail

      • AbstractViewerPanel

        public AbstractViewerPanel​(LayoutManager layout,
                                   boolean isDoubleBuffered)
      • AbstractViewerPanel

        public AbstractViewerPanel​(LayoutManager layout)
    • Method Detail

      • getDisplay

        public abstract InteractiveDisplay getDisplay()
        Get the viewer canvas.
        Returns:
        the viewer canvas.
      • getDisplayComponent

        public abstract Component getDisplayComponent()
        Get the AWT Component of the viewer canvas.
        Returns:
        the viewer canvas.
      • state

        public abstract ViewerState state()
        Get the ViewerState. This can be directly used for modifications, e.g., adding/removing sources etc. See SynchronizedViewerState for thread-safety considerations.
      • renderTransformListeners

        public abstract org.scijava.listeners.Listeners<TransformListener<net.imglib2.realtransform.AffineTransform3D>> renderTransformListeners()
        Add/remove TransformListeners to notify about viewer transformation changes. Listeners will be notified when a new image has been painted with the viewer transform used to render that image.

        This happens immediately after that image is painted onto the screen, before any overlays are painted.

      • showMessage

        public abstract void showMessage​(String msg)
        Display the specified message in a text overlay for a short time.
        Parameters:
        msg - String to display. Should be just one line of text.
      • align

        public void align​(AbstractViewerPanel.AlignPlane plane)
        Align the XY, ZY, or XZ plane of the local coordinate system of the currently active source with the viewer coordinate system.
        Parameters:
        plane - to which plane to align.
      • getGlobalMouseCoordinates

        public void getGlobalMouseCoordinates​(net.imglib2.RealPositionable gPos)
        Set gPos to the current mouse coordinates transformed into the global coordinate system.
        Parameters:
        gPos - is set to the current global coordinates.
      • getMouseCoordinates

        public void getMouseCoordinates​(net.imglib2.Positionable p)
        Set p to the current mouse coordinates wrt to the display component.
        Parameters:
        p - is set to the current mouse coordinates.
      • onMouseMoved

        protected void onMouseMoved()