Class MultiBoxOverlay


  • public class MultiBoxOverlay
    extends Object
    Paint an overlay showing multiple transformed boxes (interval + transform). Boxes represent sources that are shown in the viewer. Boxes are different colors depending whether the sources are visible.
    Author:
    Stephan Saalfeld, Tobias Pietzsch
    • Constructor Detail

      • MultiBoxOverlay

        public MultiBoxOverlay()
    • Method Detail

      • paint

        public <I extends MultiBoxOverlay.IntervalAndTransform> void paint​(Graphics2D graphics,
                                                                           List<I> sources,
                                                                           net.imglib2.Interval targetInterval,
                                                                           net.imglib2.Interval boxScreen)
        This paints the box overlay with perspective and scale set such that it fits approximately into the specified screen area.
        Parameters:
        graphics - graphics context to paint to.
        sources - source intervals (3D boxes) to be shown.
        targetInterval - target interval (2D box) into which a slice of sourceInterval is projected.
        boxScreen - (approximate) area of the screen which to fill with the box visualisation.
      • isHighlightInProgress

        public boolean isHighlightInProgress()
      • highlight

        public void highlight​(int sourceIndex)