public interface TiledDataOpenerPlugin extends MMPlugin
Micro-Manager's built-in data loading path (DataManager.loadData(java.lang.String, boolean)) produces a
Datastore shown in the standard display window. That model does not fit the
pyramidal storage formats (OME-Zarr, OME-BigTIFF, tiled NDTiff), which are viewed in the
TiledDataViewer and are not backed by a Datastore at all.
Those formats live in libraries that are built after mmstudio, so mmstudio cannot call them directly. This interface is the bridge: mmstudio asks each registered opener whether it recognizes a path, and hands the work to the first one that does. When no opener is installed, the File menu and drag-and-drop behave exactly as they did before this interface existed.
Implementations are discovered through the usual SciJava mechanism, by annotating the
class with @Plugin(type = TiledDataOpenerPlugin.class).
| Modifier and Type | Method and Description |
|---|---|
boolean |
canOpen(java.lang.String path)
Indicate whether this opener can handle the dataset at the given path.
|
java.lang.String |
open(java.lang.String path)
Open the dataset and show a viewer for it.
|
getCopyright, getHelpText, getName, getVersion, setContextboolean canOpen(java.lang.String path)
The path may be the dataset directory itself or a file inside it, since the file chooser and drag-and-drop both let the user pick either. Implementations are expected to resolve the dataset root themselves.
Called before Micro-Manager attempts its own format detection, so this method should avoid expensive work where it can, and must not show any UI.
path - directory of a dataset, or a file within oneopen(java.lang.String) should be called with this pathjava.lang.String open(java.lang.String path)
Called on a background thread, never on the EDT. Implementations report their own
failures to the user (for instance through studio.logs().showError()) and return
null; Micro-Manager will not attempt to open the data by any other means afterwards.
path - the same path that canOpen(java.lang.String) accepted