Skip to content

Commit

Permalink
Add AbstractSpimSource::reload method to update transforms from ViewR…
Browse files Browse the repository at this point in the history
…egistrations
  • Loading branch information
tpietzsch committed Nov 14, 2023
1 parent c6199d3 commit 00e8b98
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions src/main/java/bdv/AbstractSpimSource.java
Original file line number Diff line number Diff line change
Expand Up @@ -277,4 +277,18 @@ public int getSetupId()
{
return setupId;
}

/**
* Invalidate cached source transformations, triggering a reload from {@code SpimData}.
* <p>
* 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;
}
}

0 comments on commit 00e8b98

Please sign in to comment.