libCZI
Reading and Writing CZI documents made easy
|
#include <libCZI.h>
Classes | |
struct | OpenOptions |
This structure gathers the settings for controlling the 'Open' operation of the CZIReader-class. More... | |
Public Member Functions | |
virtual void | Open (const std::shared_ptr< IStream > &stream, const OpenOptions *options=nullptr)=0 |
virtual FileHeaderInfo | GetFileHeaderInfo ()=0 |
virtual std::shared_ptr< IMetadataSegment > | ReadMetadataSegment ()=0 |
virtual std::shared_ptr< IAccessor > | CreateAccessor (AccessorType accessorType)=0 |
virtual void | Close ()=0 |
std::shared_ptr< ISingleChannelTileAccessor > | CreateSingleChannelTileAccessor () |
std::shared_ptr< ISingleChannelPyramidLayerTileAccessor > | CreateSingleChannelPyramidLayerTileAccessor () |
std::shared_ptr< ISingleChannelScalingTileAccessor > | CreateSingleChannelScalingTileAccessor () |
Public Member Functions inherited from libCZI::ISubBlockRepository | |
virtual void | EnumerateSubBlocks (const std::function< bool(int index, const SubBlockInfo &info)> &funcEnum)=0 |
virtual void | EnumSubset (const IDimCoordinate *planeCoordinate, const IntRect *roi, bool onlyLayer0, const std::function< bool(int index, const SubBlockInfo &info)> &funcEnum)=0 |
virtual std::shared_ptr< ISubBlock > | ReadSubBlock (int index)=0 |
virtual bool | TryGetSubBlockInfoOfArbitrarySubBlockInChannel (int channelIndex, SubBlockInfo &info)=0 |
virtual bool | TryGetSubBlockInfo (int index, SubBlockInfo *info) const =0 |
virtual SubBlockStatistics | GetStatistics ()=0 |
virtual PyramidStatistics | GetPyramidStatistics ()=0 |
Public Member Functions inherited from libCZI::ISubBlockRepositoryEx | |
virtual void | EnumerateSubBlocksEx (const std::function< bool(int index, const DirectorySubBlockInfo &info)> &funcEnum)=0 |
Public Member Functions inherited from libCZI::IAttachmentRepository | |
virtual void | EnumerateAttachments (const std::function< bool(int index, const AttachmentInfo &info)> &funcEnum)=0 |
virtual void | EnumerateSubset (const char *contentFileType, const char *name, const std::function< bool(int index, const AttachmentInfo &info)> &funcEnum)=0 |
virtual std::shared_ptr< IAttachment > | ReadAttachment (int index)=0 |
This interface is used to represent the CZI-file. A note on thread-safety - all methods of this interface may be called from multiple threads concurrently.
|
pure virtual |
Closes CZI-reader. The underlying stream-object will be released, and further calls to other methods will fail. The stream is also closed when the object is destroyed, so it is usually not necessary to explicitly call Close
. Note that the stream is not closed immediately (or - there is no guarantee that on return from this call all references to the stream object are released). Concurrently executing operations continue to use the stream and keep it referenced until they are finished.
|
pure virtual |
Creates an accessor for the sub-blocks. See also the various typed methods: CreateSingleChannelTileAccessor
, CreateSingleChannelPyramidLayerTileAccessor
and CreateSingleChannelScalingTileAccessor
.
accessorType | The type of the accessor. |
|
inline |
Creates a single channel pyramid-layer accessor.
|
inline |
Creates a single channel scaling tile accessor.
|
inline |
Creates a single channel tile accessor.
|
pure virtual |
Gets the file header information.
|
pure virtual |
Opens the specified stream and reads the global information from the CZI-document. The stream passed in will have its refcount incremented, a reference is held until Close is called (or the instance is destroyed).
stream | The stream object. |
options | (Optional) Options for controlling the operation. If nullptr is given here, then the default settings are used. |
|
pure virtual |
Reads the metadata segment from the stream.