public class RemoteImageLoader extends Object implements ViewerImgLoader
| Modifier and Type | Class and Description |
|---|---|
class |
RemoteImageLoader.SetupImgLoader |
| Modifier and Type | Field and Description |
|---|---|
protected String |
baseUrl |
protected VolatileGlobalCellCache |
cache |
protected HashMap<ViewLevelId,int[]> |
cellsDimensions |
protected RemoteImageLoaderMetaData |
metadata |
protected HashMap<Integer,RemoteImageLoader.SetupImgLoader> |
setupImgLoaders
TODO
|
protected RemoteVolatileShortArrayLoader |
shortLoader |
| Constructor and Description |
|---|
RemoteImageLoader(String baseUrl) |
RemoteImageLoader(String baseUrl,
boolean doOpen) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
existsImageData(ViewLevelId id)
Checks whether the given image data is present on the server.
|
VolatileGlobalCellCache |
getCacheControl() |
DimsAndExistence |
getDimsAndExistence(ViewLevelId id) |
MipmapInfo |
getMipmapInfo(int setupId) |
protected <T> RandomAccessibleInterval<T> |
getMissingDataImage(ViewLevelId id,
T constant)
For images that are missing in the hdf5, a constant image is created.
|
RemoteImageLoader.SetupImgLoader |
getSetupImgLoader(int setupId)
Get the
BasicMultiResolutionSetupImgLoader for the specified view
setup. |
protected <T extends NativeType<T>> |
prepareCachedImage(ViewLevelId id,
LoadingStrategy loadingStrategy,
T type)
Create a
VolatileCachedCellImg backed by the cache. |
protected String baseUrl
protected RemoteImageLoaderMetaData metadata
protected HashMap<ViewLevelId,int[]> cellsDimensions
protected VolatileGlobalCellCache cache
protected RemoteVolatileShortArrayLoader shortLoader
protected final HashMap<Integer,RemoteImageLoader.SetupImgLoader> setupImgLoaders
public RemoteImageLoader(String baseUrl) throws IOException
IOExceptionpublic RemoteImageLoader(String baseUrl, boolean doOpen) throws IOException
IOExceptionpublic RemoteImageLoader.SetupImgLoader getSetupImgLoader(int setupId)
BasicMultiResolutionImgLoaderBasicMultiResolutionSetupImgLoader for the specified view
setup.getSetupImgLoader in interface ViewerImgLoadergetSetupImgLoader in interface BasicImgLoadergetSetupImgLoader in interface BasicMultiResolutionImgLoadersetupId - view setup for which to get the
BasicMultiResolutionSetupImgLoader.BasicMultiResolutionSetupImgLoader for the specified view
setup.public VolatileGlobalCellCache getCacheControl()
getCacheControl in interface ViewerImgLoaderpublic MipmapInfo getMipmapInfo(int setupId)
public boolean existsImageData(ViewLevelId id)
protected <T> RandomAccessibleInterval<T> getMissingDataImage(ViewLevelId id, T constant)
getDimsAndExistence(ViewLevelId)) then use that. Otherwise
create a 1x1x1 image.public DimsAndExistence getDimsAndExistence(ViewLevelId id)
protected <T extends NativeType<T>> RandomAccessibleInterval<T> prepareCachedImage(ViewLevelId id, LoadingStrategy loadingStrategy, T type)
VolatileCachedCellImg backed by the cache. The
type should be either UnsignedShortType and
VolatileUnsignedShortType.Copyright © 2015–2021 Fiji. All rights reserved.