- java.lang.Object
-
- bdv.BigDataViewer
-
public class BigDataViewer extends Object
-
-
Field Summary
Fields Modifier and Type Field Description protected VisibilityAndGroupingDialogactiveSourcesDialogprotected BookmarksEditorbookmarkEditorprotected Bookmarksbookmarksprotected BrightnessDialogbrightnessDialogstatic StringconfigDirprotected CropDialogcropDialogprotected JFileChooserfileChooserprotected HelpDialoghelpDialogprotected ManualTransformationmanualTransformationprotected ManualTransformationEditormanualTransformationEditorprotected RecordMovieDialogmovieDialogprotected RecordMaxProjectionDialogmovieMaxProjectDialogprotected PreferencesDialogpreferencesDialogprotected FileproposedSettingsFileprotected SetupAssignmentssetupAssignmentsprotected ViewerPanelviewerprotected ViewerFrameviewerFrame
-
Constructor Summary
Constructors Constructor Description BigDataViewer(ArrayList<ConverterSetup> converterSetups, ArrayList<SourceAndConverter<?>> sources, mpicbg.spim.data.generic.AbstractSpimData<?> spimData, int numTimepoints, CacheControl cache, String windowTitle, ProgressWriter progressWriter, ViewerOptions options)Deprecated.BigDataViewer(List<ConverterSetup> converterSetups, List<SourceAndConverter<?>> sources, mpicbg.spim.data.generic.AbstractSpimData<?> spimData, int numTimepoints, CacheControl cache, String windowTitle, ProgressWriter progressWriter, ViewerOptions options)
-
Method Summary
-
-
-
Field Detail
-
configDir
public static String configDir
-
viewerFrame
protected final ViewerFrame viewerFrame
-
viewer
protected final ViewerPanel viewer
-
setupAssignments
protected final SetupAssignments setupAssignments
-
manualTransformation
protected final ManualTransformation manualTransformation
-
bookmarks
protected final Bookmarks bookmarks
-
brightnessDialog
protected final BrightnessDialog brightnessDialog
-
cropDialog
protected final CropDialog cropDialog
-
movieDialog
protected final RecordMovieDialog movieDialog
-
movieMaxProjectDialog
protected final RecordMaxProjectionDialog movieMaxProjectDialog
-
activeSourcesDialog
protected final VisibilityAndGroupingDialog activeSourcesDialog
-
helpDialog
protected final HelpDialog helpDialog
-
preferencesDialog
protected final PreferencesDialog preferencesDialog
-
manualTransformationEditor
protected final ManualTransformationEditor manualTransformationEditor
-
bookmarkEditor
protected final BookmarksEditor bookmarkEditor
-
fileChooser
protected final JFileChooser fileChooser
-
proposedSettingsFile
protected File proposedSettingsFile
-
-
Constructor Detail
-
BigDataViewer
@Deprecated public BigDataViewer(ArrayList<ConverterSetup> converterSetups, ArrayList<SourceAndConverter<?>> sources, mpicbg.spim.data.generic.AbstractSpimData<?> spimData, int numTimepoints, CacheControl cache, String windowTitle, ProgressWriter progressWriter, ViewerOptions options)
Deprecated.
-
BigDataViewer
public BigDataViewer(List<ConverterSetup> converterSetups, List<SourceAndConverter<?>> sources, mpicbg.spim.data.generic.AbstractSpimData<?> spimData, int numTimepoints, CacheControl cache, String windowTitle, ProgressWriter progressWriter, ViewerOptions options)
- Parameters:
converterSetups- list ofConverterSetupthat 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. TheAbstractSpimDataof 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- aProgressWriterto which BDV may report progress (currently only used in the "Record Movie" dialog).options- optional parameters.
-
-
Method Detail
-
toggleManualTransformation
public void toggleManualTransformation()
-
initSetBookmark
public void initSetBookmark()
-
initGoToBookmark
public void initGoToBookmark()
-
initGoToBookmarkRotation
public void initGoToBookmarkRotation()
-
createConverterToARGB
public static <T extends net.imglib2.type.numeric.NumericType<T>> net.imglib2.converter.Converter<T,net.imglib2.type.numeric.ARGBType> createConverterToARGB(T type)
Create standard converter from the giventypeto ARGB:- For
RealTypes aRealARGBColorConverteris returned. - For
ARGBTypes aScaledARGBConverter.ARGBis returned. - For
VolatileARGBTypes aScaledARGBConverter.VolatileARGBis returned.
- For
-
createConverterSetup
public static ConverterSetup createConverterSetup(SourceAndConverter<?> soc, int setupId)
Create aConverterSetupfor the givenSourceAndConverter.Nested volatileSourceAndConverterare added to theConverterSetupif present. IfSourceAndConverterdoes not comprise aColorConverter, returnsnull.- Parameters:
soc-SourceAndConverterfor which to create aConverterSetupsetupId- setupId of the createdConverterSetup- Returns:
- a new
ConverterSetupornull
-
wrapWithTransformedSource
public static <T,V extends net.imglib2.Volatile<T>> SourceAndConverter<T> wrapWithTransformedSource(SourceAndConverter<T> soc)
Decorate source with an extra transformation, that can be edited manually in this viewer.Nested volatileSourceAndConverterare wrapped as well, if present.
-
initSetups
public static void initSetups(mpicbg.spim.data.generic.AbstractSpimData<?> spimData, List<ConverterSetup> converterSetups, List<SourceAndConverter<?>> sources)
-
open
public static BigDataViewer open(mpicbg.spim.data.generic.AbstractSpimData<?> spimData, String windowTitle, ProgressWriter progressWriter, ViewerOptions options)
-
open
public static BigDataViewer open(String xmlFilename, String windowTitle, ProgressWriter progressWriter, ViewerOptions options) throws mpicbg.spim.data.SpimDataException
-
open
public static BigDataViewer open(ArrayList<ConverterSetup> converterSetups, ArrayList<SourceAndConverter<?>> sources, int numTimepoints, CacheControl cache, String windowTitle, ProgressWriter progressWriter, ViewerOptions options)
-
getViewer
public ViewerPanel getViewer()
-
getViewerFrame
public ViewerFrame getViewerFrame()
-
getConverterSetups
public ConverterSetups getConverterSetups()
-
getSetupAssignments
@Deprecated public SetupAssignments getSetupAssignments()
Deprecated.InsteadgetViewer().state()returns theViewerStatethat can be modified directly.
-
getManualTransformEditor
public ManualTransformationEditor getManualTransformEditor()
-
getKeymapManager
public KeymapManager getKeymapManager()
-
getAppearanceManager
public AppearanceManager getAppearanceManager()
-
tryLoadSettings
public boolean tryLoadSettings(String xmlFilename)
-
saveSettings
public void saveSettings()
-
saveSettings
public void saveSettings(String xmlFilename) throws IOException
- Throws:
IOException
-
getInputTriggerConfig
@Deprecated public static org.scijava.ui.behaviour.io.InputTriggerConfig getInputTriggerConfig(ViewerOptions options)
Deprecated.This method is no longer used internally.InputTriggerConfigs are now managed throughKeymapManager.Ifoptionsdoesn't define aInputTriggerConfig, try to load it from files in this order:- "bdvkeyconfig.yaml" in the current directory.
- ".bdv/bdvkeyconfig.yaml" in the user's home directory.
- legacy "bigdataviewer.keys.properties" in current directory (will be also written to "bdvkeyconfig.yaml").
-
loadSettings
public void loadSettings()
-
loadSettings
public void loadSettings(String xmlFilename) throws IOException, org.jdom2.JDOMException
- Throws:
IOExceptionorg.jdom2.JDOMException
-
expandAndFocusCardPanel
public void expandAndFocusCardPanel()
-
collapseCardPanel
public void collapseCardPanel()
-
main
public static void main(String[] args)
-
-