NDEVR
API Documentation
TIFImageFactory.h
1#pragma once
2#include <NDEVR/ImageFactory.h>
3namespace NDEVR
4{
5 class File;
10 {
11 public:
17 virtual UUID id() const override { return UUID::CreateUUID("TIFF Image Factory"); }
21 virtual void getSupportedFormats(AlocatingAlignedBuffer<FileFormat, 64>& formats, bool is_read) const override;
25 virtual bool getMetaData(ImageCacheData&) override;
29 virtual bool canRead(const File& file) const override;
33 virtual bool getUncompressed(ImageCacheData&) override;
38 virtual bool getCompressed(ImageCacheData&, StringView) override;
42 virtual bool hasTransparency(ImageCacheData&)override;
46 virtual bool getSize(ImageCacheData&) override;
51 virtual StringView compressionFormat(const uint01* data, uint04 size) override;
55 virtual bool canRead(StringView format) const override;
59 virtual bool canWrite(StringView format) const override;
60 };
61}
Logic for reading or writing to a file as well as navigating filesystems or other common file operati...
Definition File.h:53
Can be used to add functionality to the ImageFactory.
The core String View class for the NDEVR API.
Definition StringView.h:58
Handles reading and writing TIFF image files through the ImageFormatHandler interface.
static TIFImageFactory & DefaultFactory()
Returns the singleton default TIFF image factory.
virtual bool canRead(StringView format) const override
Checks whether the given format string is readable.
virtual bool canWrite(StringView format) const override
Checks whether the given format string is writable.
virtual StringView compressionFormat(const uint01 *data, uint04 size) override
Determines the compression format of raw image data.
virtual bool getCompressed(ImageCacheData &, StringView) override
Reads the image in its compressed format.
virtual bool getMetaData(ImageCacheData &) override
Reads metadata from a TIFF image.
virtual void getSupportedFormats(AlocatingAlignedBuffer< FileFormat, 64 > &formats, bool is_read) const override
Populates the list of supported TIFF file formats.
virtual bool hasTransparency(ImageCacheData &) override
Checks whether the TIFF image has an alpha channel.
virtual bool getUncompressed(ImageCacheData &) override
Reads and decompresses the image data.
virtual bool getSize(ImageCacheData &) override
Reads the image dimensions without fully decoding the image.
virtual UUID id() const override
Returns the unique identifier for this factory.
virtual bool canRead(const File &file) const override
Checks whether the given file can be read as a TIFF.
A universally unique identifier (UUID) is a 128-bit number used to identify information in computer s...
Definition UUID.h:61
static UUID CreateUUID()
The primary namespace for the NDEVR SDK.
uint32_t uint04
-Defines an alias representing a 4 byte, unsigned integer -Can represent exact integer values 0 throu...
uint8_t uint01
-Defines an alias representing a 1 byte, unsigned integer -Can represent exact integer values 0 throu...
@ file
The source file path associated with this object.
Holds cached image data including compressed and decompressed pixel buffers, file references,...