public class OpenConnectomeImageLoader extends AbstractViewerSetupImgLoader<UnsignedByteType,VolatileUnsignedByteType> implements ViewerImgLoader
type, volatileType| Constructor and Description |
|---|
OpenConnectomeImageLoader(String baseUrl,
String token,
String mode) |
| Modifier and Type | Method and Description |
|---|---|
static OpenConnectomeTokenInfo |
fetchTokenInfo(String baseUrl,
String token)
Fetch information for a token from an OpenConnectome volume cutout
service, e.g.
|
static String[] |
fetchTokenList(String baseUrl)
Fetch the list of public tokens from an OpenConnectome volume cutout
service, e.g.
|
CacheControl |
getCacheControl() |
RandomAccessibleInterval<UnsignedByteType> |
getImage(int timepointId,
int level,
ImgLoaderHint... hints) |
double[][] |
getMipmapResolutions() |
AffineTransform3D[] |
getMipmapTransforms() |
ViewerSetupImgLoader<?,?> |
getSetupImgLoader(int setupId) |
RandomAccessibleInterval<VolatileUnsignedByteType> |
getVolatileImage(int timepointId,
int level,
ImgLoaderHint... hints) |
int |
numMipmapLevels() |
protected <T extends NativeType<T>> |
prepareCachedImage(int timepointId,
int setupId,
int level,
LoadingStrategy loadingStrategy,
T type)
Create a
VolatileCachedCellImg backed by the cache. |
static OpenConnectomeTokenInfo |
tryFetchTokenInfo(String baseUrl,
String token,
int maxNumTrials)
Try to fetch information for a token from an OpenConnectome volume cutout
service, e.g.
|
static String[] |
tryFetchTokenList(String baseUrl,
int maxNumTrials)
Try to fetch the list of public tokens from an OpenConnectome volume
cutout service, e.g.
|
getImage, getImageType, getVolatileImageTypeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitsetCreatedSharedQueue, setNumFetcherThreadspublic static final String[] fetchTokenList(String baseUrl) throws com.google.gson.JsonSyntaxException, com.google.gson.JsonIOException, IOException
baseUrl - e.g. "http://openconnecto.me/ocp/ca"Stringscom.google.gson.JsonSyntaxExceptioncom.google.gson.JsonIOExceptionIOExceptionpublic static final OpenConnectomeTokenInfo fetchTokenInfo(String baseUrl, String token) throws com.google.gson.JsonSyntaxException, com.google.gson.JsonIOException, IOException
baseUrl - e.g. "http://openconnecto.me/ocp/ca"token - the token whose information is desiredOpenConnectomeTokenInfo instance that carries the
token informationcom.google.gson.JsonSyntaxExceptioncom.google.gson.JsonIOExceptionIOExceptionpublic static final String[] tryFetchTokenList(String baseUrl, int maxNumTrials)
baseUrl - e.g. "http://openconnecto.me/ocp/ca"maxNumTrials - the maximum number of trialsStrings or null if
maxNumTrials were executed without successpublic static final OpenConnectomeTokenInfo tryFetchTokenInfo(String baseUrl, String token, int maxNumTrials)
baseUrl - e.g. "http://openconnecto.me/ocp/ca"token - maxNumTrials - OpenConnectomeTokenInfo instance that carries the
token information or null if
maxNumTrials were executed without successpublic RandomAccessibleInterval<UnsignedByteType> getImage(int timepointId, int level, ImgLoaderHint... hints)
getImage in interface BasicMultiResolutionSetupImgLoader<UnsignedByteType>public RandomAccessibleInterval<VolatileUnsignedByteType> getVolatileImage(int timepointId, int level, ImgLoaderHint... hints)
getVolatileImage in interface ViewerSetupImgLoader<UnsignedByteType,VolatileUnsignedByteType>public double[][] getMipmapResolutions()
getMipmapResolutions in interface BasicMultiResolutionSetupImgLoader<UnsignedByteType>public int numMipmapLevels()
numMipmapLevels in interface BasicMultiResolutionSetupImgLoader<UnsignedByteType>public AffineTransform3D[] getMipmapTransforms()
getMipmapTransforms in interface BasicMultiResolutionSetupImgLoader<UnsignedByteType>protected <T extends NativeType<T>> VolatileCachedCellImg<T,VolatileByteArray> prepareCachedImage(int timepointId, int setupId, int level, LoadingStrategy loadingStrategy, T type)
VolatileCachedCellImg backed by the cache. The type
should be either ARGBType and VolatileARGBType.public CacheControl getCacheControl()
getCacheControl in interface ViewerImgLoaderpublic ViewerSetupImgLoader<?,?> getSetupImgLoader(int setupId)
getSetupImgLoader in interface ViewerImgLoadergetSetupImgLoader in interface BasicImgLoadergetSetupImgLoader in interface BasicMultiResolutionImgLoaderCopyright © 2012–2024 BigDataViewer. All rights reserved.