Skip to content

Conversation

hanslovsky
Copy link
Contributor

This PR exposes the Invalidate interface of the volatile cache when wrapping a RandomAccessibleInterval with VolatileViews.wrapAsVolatile as discussed on gitter:

  1. Refactor VolatileViews.createVolatileCachedCellImg to VolatileViews.createVolatileCache to get access to cache
  2. Have VolatileViewData implement Invalidate<Long> to expose the volatile cache's Invalidate.
  • Delegate to invalidate that is passed in constructor
  • This could possibly be Invalidate<K>, but would add generic parameter
  1. Have VolatileRandomAccessibleIntervalView implement Invalidate<Long>
  • Makes it easy to check downstream, just check for rai instanceof Invalidate<?>
  • Could be useful for CachedCellImg as well for the same reason.

This should probably bye squashed into a single commit upon merge.

axtimwalde pushed a commit to axtimwalde/bigdataviewer-vistools that referenced this pull request Feb 6, 2024
…ster

Fix bug in getSourceIndex() and rename brightnessAdjuster
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant