- java.lang.Object
-
- bdv.util.BdvOptions
-
public class BdvOptions extends Object
Optional parameters forBdvFunctions.- Author:
- Tobias Pietzsch <tobias.pietzsch@gmail.com>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classBdvOptions.ValuesRead-onlyBdvOptionsvalues.
-
Field Summary
Fields Modifier and Type Field Description BdvOptions.Valuesvalues
-
Constructor Summary
Constructors Constructor Description BdvOptions()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description BdvOptionsaccumulateProjectorFactory(AccumulateProjectorFactory<net.imglib2.type.numeric.ARGBType> f)Set the factory for creatingAccumulateProjector.BdvOptionsaddTo(Bdv bdv)When showing content using one of theBdvFunctionsmethods, this option can be given to specify that the content should be added to an existing window.BdvOptionsappearanceManager(AppearanceManager appearanceManager)Set theAppearanceManagerto share appearance settings with other BigDataViewer windows.BdvOptionsaxisOrder(AxisOrder axisOrder)Specified when adding a stack.BdvOptionsframeTitle(String title)Set the title of the BigDataViewer window.BdvOptionsinputTriggerConfig(org.scijava.ui.behaviour.io.InputTriggerConfig c)Set theInputTriggerConfigfrom which keyboard and mouse action mapping is loaded.BdvOptionsis2D()Set up the BigDataViewer for 2D navigation.BdvOptionskeymapManager(KeymapManager keymapManager)Set theKeymapManagerto share keymap settings with other BigDataViewer windows.BdvOptionsnumRenderingThreads(int n)Set how many threads to use for rendering.BdvOptionsnumSourceGroups(int n)Set how many source groups there are initially.static BdvOptionsoptions()Create defaultBdvOptions.BdvOptionspreferredSize(int w, int h)Set preferred size ofViewerPanelcanvas.BdvOptionsscreenScales(double[] s)Set the number and scale factors for scaled screen images.BdvOptionssourceTransform(double... calibration)Set the transform of theBdvSourceto be created to account for the given calibration (scaling of the source axes).BdvOptionssourceTransform(net.imglib2.realtransform.AffineTransform3D t)Set the transform of theBdvSourceto be created.BdvOptionstargetRenderNanos(long t)Set target rendering time in nanoseconds.BdvOptionstransformEventHandlerFactory(TransformEventHandlerFactory f)
-
-
-
Field Detail
-
values
public final BdvOptions.Values values
-
-
Method Detail
-
options
public static BdvOptions options()
Create defaultBdvOptions.- Returns:
- default
BdvOptions.
-
preferredSize
public BdvOptions preferredSize(int w, int h)
Set preferred size ofViewerPanelcanvas. (This does not include the time slider).
-
screenScales
public BdvOptions screenScales(double[] s)
Set the number and scale factors for scaled screen images.- Parameters:
s- Scale factors from the viewer canvas to screen images of different resolutions. A scale factor of 1 means 1 pixel in the screen image is displayed as 1 pixel on the canvas, a scale factor of 0.5 means 1 pixel in the screen image is displayed as 2 pixel on the canvas, etc.- See Also:
MultiResolutionRenderer
-
targetRenderNanos
public BdvOptions targetRenderNanos(long t)
Set target rendering time in nanoseconds.- Parameters:
t- Target rendering time in nanoseconds. The rendering time for the coarsest rendered scale should be below this threshold.- See Also:
MultiResolutionRenderer
-
numRenderingThreads
public BdvOptions numRenderingThreads(int n)
Set how many threads to use for rendering.- Parameters:
n- How many threads to use for rendering.- See Also:
MultiResolutionRenderer
-
numSourceGroups
public BdvOptions numSourceGroups(int n)
Set how many source groups there are initially.- Parameters:
n- How many source groups to create initially.
-
transformEventHandlerFactory
public BdvOptions transformEventHandlerFactory(TransformEventHandlerFactory f)
-
accumulateProjectorFactory
public BdvOptions accumulateProjectorFactory(AccumulateProjectorFactory<net.imglib2.type.numeric.ARGBType> f)
Set the factory for creatingAccumulateProjector. This can be used to customize how sources are combined.- Parameters:
f- factory for creatingAccumulateProjector.- See Also:
MultiResolutionRenderer
-
inputTriggerConfig
public BdvOptions inputTriggerConfig(org.scijava.ui.behaviour.io.InputTriggerConfig c)
Set theInputTriggerConfigfrom which keyboard and mouse action mapping is loaded.Note that this will override the managed
InputTriggerConfig, that is, modifying the keymap through the preferences dialog will have no effect.- Parameters:
c- theInputTriggerConfigfrom which keyboard and mouse action mapping is loaded
-
keymapManager
public BdvOptions keymapManager(KeymapManager keymapManager)
Set theKeymapManagerto share keymap settings with other BigDataViewer windows.This can be used to link multiple BigDataViewer windows such that they use (and modify) the same
Keymap, shortcuts and mouse gestures.
-
appearanceManager
public BdvOptions appearanceManager(AppearanceManager appearanceManager)
Set theAppearanceManagerto share appearance settings with other BigDataViewer windows.This can be used to link multiple BigDataViewer windows such that they use (and modify) the same
Appearancesettings, e.g., LookAndFeel, scalebar overlay settings, etc.
-
sourceTransform
public BdvOptions sourceTransform(net.imglib2.realtransform.AffineTransform3D t)
Set the transform of theBdvSourceto be created.- Parameters:
t- the source transform.
-
frameTitle
public BdvOptions frameTitle(String title)
Set the title of the BigDataViewer window.- Parameters:
title- the window title.
-
sourceTransform
public BdvOptions sourceTransform(double... calibration)
Set the transform of theBdvSourceto be created to account for the given calibration (scaling of the source axes).- Parameters:
calibration- the source calibration (scaling of the source axes).
-
is2D
public BdvOptions is2D()
Set up the BigDataViewer for 2D navigation. TODO: add more detailed explanation- Returns:
-
axisOrder
public BdvOptions axisOrder(AxisOrder axisOrder)
Specified when adding a stack. Describes how the axes of the stack are ordered.- Parameters:
axisOrder- the axis order of a stack to add.
-
addTo
public BdvOptions addTo(Bdv bdv)
When showing content using one of theBdvFunctionsmethods, this option can be given to specify that the content should be added to an existing window. (AllBdvFunctionsmethods return an instance ofBdvthat can be used that way).- Parameters:
bdv- to which viewer should the content be added.
-
-