- java.lang.Object
-
- bdv.viewer.overlay.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
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceMultiBoxOverlay.IntervalAndTransform
-
Constructor Summary
Constructors Constructor Description MultiBoxOverlay()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidhighlight(int sourceIndex)booleanisHighlightInProgress()<I extends MultiBoxOverlay.IntervalAndTransform>
voidpaint(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.
-
-
-
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)
-
-