3#include <cgv/base/base.h>
4#include <cgv/base/register.h>
5#include <cgv/data/data_view.h>
14class CGV_API image_reader;
32 virtual bool supports_multiple_images()
const;
34 virtual unsigned get_nr_images()
const;
36 virtual float get_image_duration()
const;
38 virtual unsigned get_current_image()
const;
40 virtual bool seek_image(
unsigned idx);
73 bool set_void(
const std::string& property,
const std::string& type,
const void* value);
75 bool get_void(
const std::string& property,
const std::string& type,
void* value);
85 std::string get_type_name()
const;
87 static const std::string& get_supported_extensions(
char sep =
';');
89 static std::string construct_filter_string();
91 std::string get_property_declarations();
93 const std::string& get_last_error()
const;
100 bool read_image(
const std::string& file_name,
cgv::data::data_view& dv, std::vector<cgv::data::data_view> *palettes = 0);
103 bool read_image(
const std::string& file_name,
const cgv::data::data_view& dv,
const std::vector<cgv::data::data_view> *palettes = 0);
105 bool open(
const std::string& file_name);
109 bool supports_multiple_images()
const;
111 unsigned get_nr_images()
const;
113 float get_image_duration()
const;
115 unsigned get_current_image()
const;
117 bool seek_image(
unsigned idx);
127 bool supports_per_line_read()
const;
143 bool read_image(
const cgv::data::data_view& dv,
const std::vector<cgv::data::data_view> *palettes = 0);
152#include <cgv/config/lib_end.h>
base class for all classes that can be registered with support for dynamic properties (see also secti...
the data view gives access to a data array of one, two, three or four dimensions.
interfaces that add several listeners and objects.