From 00e8b9881eeca7804e9461d79cbd032df2fc2288 Mon Sep 17 00:00:00 2001 From: tpietzsch Date: Mon, 6 Nov 2023 22:17:41 +0100 Subject: [PATCH] Add AbstractSpimSource::reload method to update transforms from ViewRegistrations --- src/main/java/bdv/AbstractSpimSource.java | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/src/main/java/bdv/AbstractSpimSource.java b/src/main/java/bdv/AbstractSpimSource.java index 67731110..2d31864d 100644 --- a/src/main/java/bdv/AbstractSpimSource.java +++ b/src/main/java/bdv/AbstractSpimSource.java @@ -277,4 +277,18 @@ public int getSetupId() { return setupId; } + + /** + * Invalidate cached source transformations, triggering a reload from {@code SpimData}. + *

+ * Implementation Note: + * This method was added so that BigStitcher can trigger reloading source + * transforms from ViewRegistrations. It doesn't currently trigger update of + * anything else (MissingViews, available timepoints, etc.) However, if the + * need for these arises, this method would be a good place to put it. + */ + public void reload() + { + currentTimePointIndex = -1; + } }