public class WrapBasicImgLoader extends Object implements ViewerImgLoader
| Constructor and Description |
|---|
WrapBasicImgLoader(BasicImgLoader source,
Map<Integer,?> setupsMap) |
| Modifier and Type | Method and Description |
|---|---|
CacheControl |
getCacheControl() |
ViewerSetupImgLoader<?,?> |
getSetupImgLoader(int setupId) |
static boolean |
removeWrapperIfPresent(AbstractSpimData<?> spimData) |
static boolean |
wrapImgLoaderIfNecessary(AbstractSpimData<?> spimData)
If the
image loader of spimData is not a
ViewerImgLoader, then replace it with a wrapper that presents it
as ViewerImgLoader. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitsetCreatedSharedQueue, setNumFetcherThreadspublic WrapBasicImgLoader(BasicImgLoader source, Map<Integer,?> setupsMap)
public static boolean wrapImgLoaderIfNecessary(AbstractSpimData<?> spimData)
image loader of spimData is not a
ViewerImgLoader, then replace it with a wrapper that presents it
as ViewerImgLoader.
However, note that trying to call
ViewerSetupImgLoader.getVolatileImage(int, int, ImgLoaderHint...)
or ViewerSetupImgLoader.getVolatileImageType() on the wrapper
will throw an UnsupportedOperationException.spimData - true if wrapping was necessary, false if
spimData had a ViewerImgLoader already.public static boolean removeWrapperIfPresent(AbstractSpimData<?> spimData)
public ViewerSetupImgLoader<?,?> getSetupImgLoader(int setupId)
getSetupImgLoader in interface ViewerImgLoadergetSetupImgLoader in interface BasicImgLoadergetSetupImgLoader in interface BasicMultiResolutionImgLoaderpublic CacheControl getCacheControl()
getCacheControl in interface ViewerImgLoaderCopyright © 2012–2024 BigDataViewer. All rights reserved.