clan::ImageProviderType Class Referenceabstract

Provider type. More...

#include <provider_type.h>

+ Inheritance diagram for clan::ImageProviderType:

Public Member Functions

 ImageProviderType (const std::string &type)
 Registers a provider type in the ImageProviderFactory. More...
 
virtual ~ImageProviderType ()
 Unregisters a provider type in the ImageProviderFactory. More...
 
virtual PixelBuffer load (const std::string &filename, const FileSystem &fs, bool srgb)=0
 Called to load an image with this provider type. More...
 
virtual PixelBuffer load (IODevice &file, bool srgb)=0
 
virtual void save (PixelBuffer buffer, const std::string &filename, FileSystem &fs)=0
 Called to save a given PixelBuffer to a file. More...
 
virtual void save (PixelBuffer buffer, IODevice &file)=0
 

Detailed Description

Provider type.

Constructor & Destructor Documentation

clan::ImageProviderType::ImageProviderType ( const std::string type)

Registers a provider type in the ImageProviderFactory.

virtual clan::ImageProviderType::~ImageProviderType ( )
virtual

Unregisters a provider type in the ImageProviderFactory.

Member Function Documentation

virtual PixelBuffer clan::ImageProviderType::load ( const std::string filename,
const FileSystem fs,
bool  srgb 
)
pure virtual

Called to load an image with this provider type.

Implemented in clan::ProviderType_Register< ProviderClass >.

virtual PixelBuffer clan::ImageProviderType::load ( IODevice file,
bool  srgb 
)
pure virtual
virtual void clan::ImageProviderType::save ( PixelBuffer  buffer,
const std::string filename,
FileSystem fs 
)
pure virtual

Called to save a given PixelBuffer to a file.

Implemented in clan::ProviderType_Register< ProviderClass >.

virtual void clan::ImageProviderType::save ( PixelBuffer  buffer,
IODevice file 
)
pure virtual

The documentation for this class was generated from the following file: