public class Hdf5ImageLoader extends Object implements ViewerImgLoader, MultiResolutionImgLoader
| Modifier and Type | Class and Description |
|---|---|
class |
Hdf5ImageLoader.SetupImgLoader<T extends NativeType<T>,V extends Volatile<T> & NativeType<V>> |
| Modifier | Constructor and Description |
|---|---|
|
Hdf5ImageLoader(File hdf5File,
ArrayList<Partition> hdf5Partitions,
AbstractSequenceDescription<?,?,?> sequenceDescription) |
|
Hdf5ImageLoader(File hdf5File,
ArrayList<Partition> hdf5Partitions,
AbstractSequenceDescription<?,?,?> sequenceDescription,
boolean doOpen) |
protected |
Hdf5ImageLoader(File hdf5File,
ch.systemsx.cisd.hdf5.IHDF5Reader existingHdf5Reader,
ArrayList<Partition> hdf5Partitions,
AbstractSequenceDescription<?,?,?> sequenceDescription,
boolean doOpen) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Clear the cache.
|
boolean |
existsImageData(ViewLevelId id)
Checks whether the given image data is present in the hdf5.
|
CacheControl |
getCacheControl() |
DimsAndExistence |
getDimsAndExistence(ViewLevelId id) |
File |
getHdf5File() |
ArrayList<Partition> |
getPartitions() |
Hdf5ImageLoader.SetupImgLoader<?,?> |
getSetupImgLoader(int setupId) |
void |
printMipmapInfo() |
void |
setCreatedSharedQueue(SharedQueue createdSharedQueue)
Use the given
SharedQueue to asynchronously load blocks. |
void |
setNumFetcherThreads(int n)
Set the number of fetcher threads that will be created to asynchronously load
blocks.
|
public Hdf5ImageLoader(File hdf5File, ArrayList<Partition> hdf5Partitions, AbstractSequenceDescription<?,?,?> sequenceDescription)
hdf5File - hdf5Partitions - sequenceDescription - the AbstractSequenceDescription. When loading images,
this may be used to retrieve additional information for a
ViewId, such as setup name, Angle,
Channel, etc.public Hdf5ImageLoader(File hdf5File, ArrayList<Partition> hdf5Partitions, AbstractSequenceDescription<?,?,?> sequenceDescription, boolean doOpen)
protected Hdf5ImageLoader(File hdf5File, ch.systemsx.cisd.hdf5.IHDF5Reader existingHdf5Reader, ArrayList<Partition> hdf5Partitions, AbstractSequenceDescription<?,?,?> sequenceDescription, boolean doOpen)
public void setNumFetcherThreads(int n)
ViewerImgLoadern=0, but that means that the volatile
versions of images may not work correctly.
This is an optional operation, i.e., some ImgLoader implementations may just ignore it.
This method should be called before using the image loader, otherwise it might not have the desired effect.
setNumFetcherThreads in interface ViewerImgLoaderpublic void setCreatedSharedQueue(SharedQueue createdSharedQueue)
ViewerImgLoaderSharedQueue to asynchronously load blocks.
This is an optional operation, i.e., some ImgLoader implementations may just ignore it.
This method should be called before using the image loader, otherwise it might not have the desired effect.
setCreatedSharedQueue in interface ViewerImgLoaderpublic void close()
public File getHdf5File()
public CacheControl getCacheControl()
getCacheControl in interface ViewerImgLoaderpublic boolean existsImageData(ViewLevelId id)
public DimsAndExistence getDimsAndExistence(ViewLevelId id)
public void printMipmapInfo()
public Hdf5ImageLoader.SetupImgLoader<?,?> getSetupImgLoader(int setupId)
getSetupImgLoader in interface ViewerImgLoadergetSetupImgLoader in interface BasicImgLoadergetSetupImgLoader in interface BasicMultiResolutionImgLoadergetSetupImgLoader in interface ImgLoadergetSetupImgLoader in interface MultiResolutionImgLoaderCopyright © 2012–2024 BigDataViewer. All rights reserved.