public class VolumeViewerOptions extends Object
VolumeViewerPanel.| Modifier and Type | Class and Description |
|---|---|
static class |
VolumeViewerOptions.Values
Read-only
ViewerOptions values. |
| Modifier and Type | Field and Description |
|---|---|
VolumeViewerOptions.Values |
values |
| Constructor and Description |
|---|
VolumeViewerOptions() |
| Modifier and Type | Method and Description |
|---|---|
VolumeViewerOptions |
appearanceManager(bdv.ui.appearance.AppearanceManager appearanceManager)
Set the
AppearanceManager to share appearance settings with other
BigVolumeViewer windows. |
VolumeViewerOptions |
cacheBlockSize(int s)
Sets the GPU cache tile size.
|
VolumeViewerOptions |
cacheBlockSize(int[] s)
Sets the GPU cache tile size.
|
VolumeViewerOptions |
dCam(double d)
Sets the distance from the camera to the z=0 plane.
|
VolumeViewerOptions |
dClip(double d) |
VolumeViewerOptions |
dClipFar(double d)
Sets the visible distance from the z=0 plane away from the camera.
|
VolumeViewerOptions |
dClipNear(double d)
Sets the visible distance from the z=0 plane towards the camera.
|
VolumeViewerOptions |
ditherWidth(int w)
Sets the dither window width.
|
VolumeViewerOptions |
height(int h)
Set height of
VolumeViewerPanel canvas. |
VolumeViewerOptions |
inputTriggerConfig(org.scijava.ui.behaviour.io.InputTriggerConfig c)
Set the
InputTriggerConfig from which keyboard and mouse action mapping is loaded. |
VolumeViewerOptions |
keymapManager(bdv.ui.keymap.KeymapManager keymapManager)
Set the
KeymapManager to share keymap settings with other
BigVolumeViewer windows. |
VolumeViewerOptions |
maxAllowedStepInVoxels(double s) |
VolumeViewerOptions |
maxCacheSizeInMB(int s)
Sets the max memory to use for the GPU cache texture in MB.
|
VolumeViewerOptions |
maxRenderMillis(int t)
Set target per-frame time in milliseconds.
|
VolumeViewerOptions |
msgOverlay(bdv.viewer.animate.MessageOverlayAnimator o) |
VolumeViewerOptions |
numDitherSamples(int n)
Sets the number of dither samples.
|
VolumeViewerOptions |
numSourceGroups(int n)
Set how many source groups there are initially.
|
static VolumeViewerOptions |
options()
Create default
VolumeViewerOptions. |
VolumeViewerOptions |
renderHeight(int h)
Sets the height of offscreen canvas.
|
VolumeViewerOptions |
renderWidth(int w)
Sets the width of offscreen canvas.
|
VolumeViewerOptions |
shareKeyPressedEvents(org.scijava.ui.behaviour.KeyPressedManager manager)
Set the
KeyPressedManager to share
KeyListener.keyPressed(java.awt.event.KeyEvent) events with other
ui-behaviour windows. |
VolumeViewerOptions |
transformEventHandlerFactory(bdv.TransformEventHandlerFactory f) |
VolumeViewerOptions |
width(int w)
Set width of
VolumeViewerPanel canvas. |
public final VolumeViewerOptions.Values values
public static VolumeViewerOptions options()
VolumeViewerOptions.VolumeViewerOptions.public VolumeViewerOptions width(int w)
VolumeViewerPanel canvas.public VolumeViewerOptions height(int h)
VolumeViewerPanel canvas.public VolumeViewerOptions renderWidth(int w)
w - the width.public VolumeViewerOptions renderHeight(int h)
h - the height.public VolumeViewerOptions maxRenderMillis(int t)
t - Target rendering time in milliseconds.public VolumeViewerOptions ditherWidth(int w)
w=3 means 3x3 dither window size.w - dither window width.public VolumeViewerOptions numDitherSamples(int n)
n - the number of dither samples.public VolumeViewerOptions cacheBlockSize(int[] s)
s - the cache tile size.public VolumeViewerOptions cacheBlockSize(int s)
s - the cache tile size.public VolumeViewerOptions maxCacheSizeInMB(int s)
s - the GPU cache size in MB.public VolumeViewerOptions dCam(double d)
d - camera distance.public VolumeViewerOptions dClipNear(double d)
d - visible distance from z=0 towards camera.public VolumeViewerOptions dClipFar(double d)
d - visible distance from z=0 away from camera.public VolumeViewerOptions dClip(double d)
public VolumeViewerOptions maxAllowedStepInVoxels(double s)
public VolumeViewerOptions numSourceGroups(int n)
n - How many source groups to create initially.public VolumeViewerOptions msgOverlay(bdv.viewer.animate.MessageOverlayAnimator o)
public VolumeViewerOptions transformEventHandlerFactory(bdv.TransformEventHandlerFactory f)
public VolumeViewerOptions inputTriggerConfig(org.scijava.ui.behaviour.io.InputTriggerConfig c)
InputTriggerConfig from which keyboard and mouse action mapping is loaded.c - the InputTriggerConfig from which keyboard and mouse action mapping is loadedpublic VolumeViewerOptions shareKeyPressedEvents(org.scijava.ui.behaviour.KeyPressedManager manager)
KeyPressedManager to share
KeyListener.keyPressed(java.awt.event.KeyEvent) events with other
ui-behaviour windows.
The goal is to make keyboard click/drag behaviours work like mouse click/drag: When a behaviour is initiated with a key press, the window under the mouse receives focus and the behaviour is handled there.
manager - public VolumeViewerOptions keymapManager(bdv.ui.keymap.KeymapManager keymapManager)
KeymapManager to share keymap settings with other
BigVolumeViewer windows.
This can be used to link multiple BigVolumeViewer windows such that they
use (and modify) the same Keymap, shortcuts and mouse gestures.
public VolumeViewerOptions appearanceManager(bdv.ui.appearance.AppearanceManager appearanceManager)
AppearanceManager to share appearance settings with other
BigVolumeViewer windows.
This can be used to link multiple BigVolumeViewer windows such that they
use (and modify) the same Appearance settings, e.g., LookAndFeel,
scalebar overlay settings, etc.
Copyright © 2018–2025 BigDataViewer. All rights reserved.