- java.lang.Object
-
- bdv.viewer.overlay.MultiBoxOverlayRenderer
-
public class MultiBoxOverlayRenderer extends Object
Render multibox overlay corresponding to aViewerStateinto aGraphics2D.- Author:
- Tobias Pietzsch
-
-
Field Summary
Fields Modifier and Type Field Description protected MultiBoxOverlayboxNavigation wire-frame cube.protected net.imglib2.IntervalboxIntervalScreen interval in which to display navigation wire-frame cube.protected ArrayList<IntervalAndTransform>boxSourcesprotected net.imglib2.IntervalvirtualScreenIntervalscaled screenImage interval forboxrendering
-
Constructor Summary
Constructors Constructor Description MultiBoxOverlayRenderer()MultiBoxOverlayRenderer(int screenWidth, int screenHeight)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidhighlight(int sourceIndex)booleanisHighlightInProgress()voidpaint(Graphics2D g)voidsetBoxInterval(net.imglib2.Interval interval)Update the box interval.voidsetViewerState(ViewerState viewerState)Deprecated.voidsetViewerState(ViewerState state)Update data to show in the box overlay.voidupdateVirtualScreenSize(int screenWidth, int screenHeight)Update the screen interval.
-
-
-
Field Detail
-
box
protected final MultiBoxOverlay box
Navigation wire-frame cube.
-
boxInterval
protected net.imglib2.Interval boxInterval
Screen interval in which to display navigation wire-frame cube.
-
virtualScreenInterval
protected net.imglib2.Interval virtualScreenInterval
scaled screenImage interval forboxrendering
-
boxSources
protected final ArrayList<IntervalAndTransform> boxSources
-
-
Method Detail
-
paint
public void paint(Graphics2D g)
-
isHighlightInProgress
public boolean isHighlightInProgress()
-
highlight
public void highlight(int sourceIndex)
-
updateVirtualScreenSize
public void updateVirtualScreenSize(int screenWidth, int screenHeight)Update the screen interval. This is the target 2D interval into which pixels are rendered. (In the box overlay it is shown as a filled grey rectangle.)
-
setBoxInterval
public void setBoxInterval(net.imglib2.Interval interval)
Update the box interval. This is the screen interval in which to display navigation wire-frame cube.
-
setViewerState
@Deprecated public void setViewerState(ViewerState viewerState)
Deprecated.Update data to show in the box overlay.
-
setViewerState
public void setViewerState(ViewerState state)
Update data to show in the box overlay.
-
-