From ed7395c9729476839ba21a93119e1749d41071e3 Mon Sep 17 00:00:00 2001 From: Clinton Huynh Date: Wed, 12 Jul 2023 15:14:38 -0700 Subject: [PATCH 1/2] get methods --- .../java/org/micromanager/data/internal/DefaultDatastore.java | 4 ++++ .../data/internal/multipagetiff/MultipageTiffReader.java | 4 ++++ .../data/internal/multipagetiff/StorageMultipageTiff.java | 4 ++++ 3 files changed, 12 insertions(+) diff --git a/mmstudio/src/main/java/org/micromanager/data/internal/DefaultDatastore.java b/mmstudio/src/main/java/org/micromanager/data/internal/DefaultDatastore.java index e7624a7466..c25bbd1424 100644 --- a/mmstudio/src/main/java/org/micromanager/data/internal/DefaultDatastore.java +++ b/mmstudio/src/main/java/org/micromanager/data/internal/DefaultDatastore.java @@ -153,6 +153,10 @@ public void setStorage(Storage storage) { storage_ = storage; } + public Storage getStorage() { + return storage_; + } + /** * Registers objects at default priority levels. * diff --git a/mmstudio/src/main/java/org/micromanager/data/internal/multipagetiff/MultipageTiffReader.java b/mmstudio/src/main/java/org/micromanager/data/internal/multipagetiff/MultipageTiffReader.java index 7bea99bd0b..a81aedf280 100644 --- a/mmstudio/src/main/java/org/micromanager/data/internal/multipagetiff/MultipageTiffReader.java +++ b/mmstudio/src/main/java/org/micromanager/data/internal/multipagetiff/MultipageTiffReader.java @@ -114,6 +114,10 @@ public void setFileChannel(FileChannel fc) { fileChannel_ = fc; } + public HashMap getCoordsToOffset() { + return coordsToOffset_; + } + /** * This constructor is used for opening datasets that have already been saved. */ diff --git a/mmstudio/src/main/java/org/micromanager/data/internal/multipagetiff/StorageMultipageTiff.java b/mmstudio/src/main/java/org/micromanager/data/internal/multipagetiff/StorageMultipageTiff.java index a5cb772aec..cef6d84d3c 100644 --- a/mmstudio/src/main/java/org/micromanager/data/internal/multipagetiff/StorageMultipageTiff.java +++ b/mmstudio/src/main/java/org/micromanager/data/internal/multipagetiff/StorageMultipageTiff.java @@ -175,6 +175,10 @@ public StorageMultipageTiff(Component parent, Datastore store, String dir, } } + public Map getCoordsToReader() { + return coordsToReader_; + } + /** * Signals the arrival of new Summary Metadata. * From 1ad8226fc33aa0eab645eda33c022aecbc66d893 Mon Sep 17 00:00:00 2001 From: Clinton Huynh Date: Thu, 3 Aug 2023 11:52:01 -0700 Subject: [PATCH 2/2] documentation for getter methods --- .../java/org/micromanager/data/internal/DefaultDatastore.java | 3 +++ .../data/internal/multipagetiff/MultipageTiffReader.java | 3 +++ .../data/internal/multipagetiff/StorageMultipageTiff.java | 3 +++ 3 files changed, 9 insertions(+) diff --git a/mmstudio/src/main/java/org/micromanager/data/internal/DefaultDatastore.java b/mmstudio/src/main/java/org/micromanager/data/internal/DefaultDatastore.java index c25bbd1424..3432081198 100644 --- a/mmstudio/src/main/java/org/micromanager/data/internal/DefaultDatastore.java +++ b/mmstudio/src/main/java/org/micromanager/data/internal/DefaultDatastore.java @@ -153,6 +153,9 @@ public void setStorage(Storage storage) { storage_ = storage; } + /** + * Returns the Storage of the current datastore. + */ public Storage getStorage() { return storage_; } diff --git a/mmstudio/src/main/java/org/micromanager/data/internal/multipagetiff/MultipageTiffReader.java b/mmstudio/src/main/java/org/micromanager/data/internal/multipagetiff/MultipageTiffReader.java index a81aedf280..a36c73d35a 100644 --- a/mmstudio/src/main/java/org/micromanager/data/internal/multipagetiff/MultipageTiffReader.java +++ b/mmstudio/src/main/java/org/micromanager/data/internal/multipagetiff/MultipageTiffReader.java @@ -114,6 +114,9 @@ public void setFileChannel(FileChannel fc) { fileChannel_ = fc; } + /** + * Returns the HashMap that links Coords to their byte offset. + */ public HashMap getCoordsToOffset() { return coordsToOffset_; } diff --git a/mmstudio/src/main/java/org/micromanager/data/internal/multipagetiff/StorageMultipageTiff.java b/mmstudio/src/main/java/org/micromanager/data/internal/multipagetiff/StorageMultipageTiff.java index cef6d84d3c..09f84487a0 100644 --- a/mmstudio/src/main/java/org/micromanager/data/internal/multipagetiff/StorageMultipageTiff.java +++ b/mmstudio/src/main/java/org/micromanager/data/internal/multipagetiff/StorageMultipageTiff.java @@ -175,6 +175,9 @@ public StorageMultipageTiff(Component parent, Datastore store, String dir, } } + /** + * Returns the Map that links Coords to their MulitpageTiffReader + */ public Map getCoordsToReader() { return coordsToReader_; }