public class BigDataViewer extends Object
Modifier and Type | Field and Description |
---|---|
protected VisibilityAndGroupingDialog |
activeSourcesDialog |
protected BookmarksEditor |
bookmarkEditor |
protected Bookmarks |
bookmarks |
protected BrightnessDialog |
brightnessDialog |
protected CropDialog |
cropDialog |
protected JFileChooser |
fileChooser |
protected HelpDialog |
helpDialog |
protected ManualTransformation |
manualTransformation |
protected ManualTransformationEditor |
manualTransformationEditor |
protected RecordMovieDialog |
movieDialog |
protected RecordMaxProjectionDialog |
movieMaxProjectDialog |
protected File |
proposedSettingsFile |
protected SetupAssignments |
setupAssignments |
protected ViewerPanel |
viewer |
protected ViewerFrame |
viewerFrame |
Constructor and Description |
---|
BigDataViewer(ArrayList<ConverterSetup> converterSetups,
ArrayList<SourceAndConverter<?>> sources,
AbstractSpimData<?> spimData,
int numTimepoints,
CacheControl cache,
String windowTitle,
ProgressWriter progressWriter,
ViewerOptions options) |
Modifier and Type | Method and Description |
---|---|
void |
collapseCardPanel() |
static ConverterSetup |
createConverterSetup(SourceAndConverter<?> soc,
int setupId)
Create a
ConverterSetup for the given SourceAndConverter . |
static <T extends NumericType<T>> |
createConverterToARGB(T type)
Create standard converter from the given
type to ARGB:
For RealType s a RealARGBColorConverter is
returned.
For ARGBType s a ScaledARGBConverter.ARGB is
returned.
For VolatileARGBType s a
ScaledARGBConverter.VolatileARGB is returned.
|
void |
expandAndFocusCardPanel() |
ConverterSetups |
getConverterSetups() |
static InputTriggerConfig |
getInputTriggerConfig(ViewerOptions options)
If
options doesn't define a InputTriggerConfig , try to
load it from files in this order:
"bdvkeyconfig.yaml" in the current directory. |
ManualTransformationEditor |
getManualTransformEditor() |
SetupAssignments |
getSetupAssignments()
Deprecated.
Instead
getViewer().state() returns the ViewerState that can be modified directly. |
ViewerPanel |
getViewer() |
ViewerFrame |
getViewerFrame() |
void |
initGoToBookmark() |
void |
initGoToBookmarkRotation() |
void |
initSetBookmark() |
static void |
initSetups(AbstractSpimData<?> spimData,
List<ConverterSetup> converterSetups,
List<SourceAndConverter<?>> sources) |
void |
loadSettings() |
void |
loadSettings(String xmlFilename) |
static void |
main(String[] args) |
static BigDataViewer |
open(AbstractSpimData<?> spimData,
String windowTitle,
ProgressWriter progressWriter,
ViewerOptions options) |
static BigDataViewer |
open(ArrayList<ConverterSetup> converterSetups,
ArrayList<SourceAndConverter<?>> sources,
int numTimepoints,
CacheControl cache,
String windowTitle,
ProgressWriter progressWriter,
ViewerOptions options) |
static BigDataViewer |
open(String xmlFilename,
String windowTitle,
ProgressWriter progressWriter,
ViewerOptions options) |
void |
saveSettings() |
void |
saveSettings(String xmlFilename) |
void |
toggleManualTransformation() |
boolean |
tryLoadSettings(String xmlFilename) |
static <T,V extends Volatile<T>> |
wrapWithTransformedSource(SourceAndConverter<T> soc)
Decorate source with an extra transformation, that can be edited manually
in this viewer.
|
protected final ViewerFrame viewerFrame
protected final ViewerPanel viewer
protected final SetupAssignments setupAssignments
protected final ManualTransformation manualTransformation
protected final Bookmarks bookmarks
protected final BrightnessDialog brightnessDialog
protected final CropDialog cropDialog
protected final RecordMovieDialog movieDialog
protected final RecordMaxProjectionDialog movieMaxProjectDialog
protected final VisibilityAndGroupingDialog activeSourcesDialog
protected final HelpDialog helpDialog
protected final ManualTransformationEditor manualTransformationEditor
protected final BookmarksEditor bookmarkEditor
protected final JFileChooser fileChooser
protected File proposedSettingsFile
public BigDataViewer(ArrayList<ConverterSetup> converterSetups, ArrayList<SourceAndConverter<?>> sources, AbstractSpimData<?> spimData, int numTimepoints, CacheControl cache, String windowTitle, ProgressWriter progressWriter, ViewerOptions options)
converterSetups
- list of ConverterSetup
that control min/max and color
of sources.sources
- list of pairs of source of some type and converter from that
type to ARGB.spimData
- may be null. The AbstractSpimData
of the dataset (if
there is one). If it exists, it is used to set up a "Crop"
dialog.numTimepoints
- the number of timepoints in the dataset.cache
- handle to cache. This is used to control io timing.windowTitle
- title of the viewer window.progressWriter
- a ProgressWriter
to which BDV may report progress
(currently only used in the "Record Movie" dialog).options
- optional parameters.public void toggleManualTransformation()
public void initSetBookmark()
public void initGoToBookmark()
public void initGoToBookmarkRotation()
public static <T extends NumericType<T>> Converter<T,ARGBType> createConverterToARGB(T type)
type
to ARGB:
RealType
s a RealARGBColorConverter
is
returned.ARGBType
s a ScaledARGBConverter.ARGB
is
returned.VolatileARGBType
s a
ScaledARGBConverter.VolatileARGB
is returned.public static ConverterSetup createConverterSetup(SourceAndConverter<?> soc, int setupId)
ConverterSetup
for the given SourceAndConverter
.
Nested volatile
SourceAndConverter
are added to the ConverterSetup
if
present. If SourceAndConverter
does not comprise a
ColorConverter
, returns null
.soc
- SourceAndConverter
for which to create a
ConverterSetup
setupId
- setupId of the created ConverterSetup
ConverterSetup
or null
public static <T,V extends Volatile<T>> SourceAndConverter<T> wrapWithTransformedSource(SourceAndConverter<T> soc)
Nested volatile
SourceAndConverter
are wrapped as well, if present.public static void initSetups(AbstractSpimData<?> spimData, List<ConverterSetup> converterSetups, List<SourceAndConverter<?>> sources)
public static BigDataViewer open(AbstractSpimData<?> spimData, String windowTitle, ProgressWriter progressWriter, ViewerOptions options)
public static BigDataViewer open(String xmlFilename, String windowTitle, ProgressWriter progressWriter, ViewerOptions options) throws SpimDataException
SpimDataException
public static BigDataViewer open(ArrayList<ConverterSetup> converterSetups, ArrayList<SourceAndConverter<?>> sources, int numTimepoints, CacheControl cache, String windowTitle, ProgressWriter progressWriter, ViewerOptions options)
public ViewerPanel getViewer()
public ViewerFrame getViewerFrame()
public ConverterSetups getConverterSetups()
@Deprecated public SetupAssignments getSetupAssignments()
getViewer().state()
returns the ViewerState
that can be modified directly.public ManualTransformationEditor getManualTransformEditor()
public boolean tryLoadSettings(String xmlFilename)
public void saveSettings()
public void saveSettings(String xmlFilename) throws IOException
IOException
public static InputTriggerConfig getInputTriggerConfig(ViewerOptions options)
options
doesn't define a InputTriggerConfig
, try to
load it from files in this order:
options
- public void loadSettings()
public void loadSettings(String xmlFilename) throws IOException, org.jdom2.JDOMException
IOException
org.jdom2.JDOMException
public void expandAndFocusCardPanel()
public void collapseCardPanel()
public static void main(String[] args)
Copyright © 2015–2021 Fiji. All rights reserved.