cgv
|
interface for color storage of different internal types More...
#include <color_storage.h>
Public Types | |
typedef color< float, RGB > | rgb |
define supported color types | |
Public Member Functions | |
abst_color_storage (ColorType _color_type) | |
construct from color type enumerate | |
virtual | ~abst_color_storage () |
virtual destructor ensures that std::vector defined in template class color_storage is destructed too | |
ColorType | get_color_type () const |
return color type of color storage | |
size_t | get_color_size () const |
return size of a single color in byte | |
virtual abst_color_storage * | clone () const =0 |
clone the color storage | |
virtual size_t | get_nr_colors () const =0 |
return number colors stored in color storage | |
virtual void | resize (size_t nr_colors)=0 |
resize to the given number of colors | |
virtual const void * | get_data_ptr () const =0 |
return a void pointer to the color data | |
virtual const void * | get_data_vector_ptr () const =0 |
return a void pointer to the color data vector | |
virtual void | set_color (size_t i, const void *col_ptr)=0 |
set i-th color to color of type stored in storage | |
virtual void | set_color (size_t i, const rgb &col)=0 |
set i-th color from color of type rgb | |
virtual void | set_color (size_t i, const rgba &col)=0 |
set i-th color from color of type rgba | |
virtual void | set_color (size_t i, const rgb8 &col)=0 |
set i-th color from color of type rgb8 | |
virtual void | set_color (size_t i, const rgba8 &col)=0 |
set i-th color from color of type rgba8 | |
virtual void | put_color (size_t i, void *col_ptr) const =0 |
set color of type stored in storage to i-th color | |
virtual void | put_color (size_t i, rgb &col) const =0 |
set color of type rgb to i-th color | |
virtual void | put_color (size_t i, rgba &col) const =0 |
set color of type rgba to i-th color | |
virtual void | put_color (size_t i, rgb8 &col) const =0 |
set color of type rgb8 to i-th color | |
virtual void | put_color (size_t i, rgba8 &col) const =0 |
set color of type rgba8 to i-th color | |
interface for color storage of different internal types