 |
Shiokaze Framework
A research-oriented fluid solver for computer graphics
|
|
Go to the documentation of this file.
25 #ifndef SHKZ_IMAGE_IO_INTERFACE_H
26 #define SHKZ_IMAGE_IO_INTERFACE_H
50 virtual
void set_image(
unsigned width,
unsigned height, const std::vector<
unsigned char> &data ) = 0;
61 virtual
void get_image(
unsigned &width,
unsigned &height, std::vector<
unsigned char> &data ) const = 0;
68 virtual
bool write( std::
string path ) const = 0;
75 virtual
bool read( std::
string path ) = 0;
virtual bool write(std::string path) const =0
Write the currently set image to a file.
Class that encapsulates recursive_configurable class.
Definition: recursive_configurable_module.h:76
Interface that handles image writing and reading.
Definition: image_io_interface.h:36
#define DEFINE_MODULE(CLASS_T, LNG_NAME, ARG_NAME, DESCRIPTION)
Definition that simplifies the loading module.
Definition: recursive_configurable_module.h:39
#define SHKZ_BEGIN_NAMESPACE
Name space beggining definition for shiokaze.
Definition: common.h:39
virtual void get_image(unsigned &width, unsigned &height, std::vector< unsigned char > &data) const =0
Get image.
virtual bool read(std::string path)=0
Read image file and set.
virtual void set_image(unsigned width, unsigned height, const std::vector< unsigned char > &data)=0
Set image.
#define SHKZ_END_NAMESPACE
Name space end definition for shiokaze.
Definition: common.h:44
recursive_configurable class that also inherits module.
Definition: recursive_configurable_module.h:49