cgv
|
template implementation of color storage model More...
#include <color_storage.h>
Public Types | |
typedef color< float, RGB > | rgb |
define supported color types | |
Public Member Functions | |
color_storage () | |
construct empty color storage | |
color_storage (const color_storage< C > &csm) | |
construct from color storage of same type | |
template<typename C1 > | |
color_storage (const color_storage< C1 > &csm) | |
construct from color storage of different type | |
color_storage (const abst_color_storage &acsm) | |
construct from abstract color storage of unknown type | |
abst_color_storage * | clone () const |
clone the color storage | |
size_t | get_nr_colors () const |
return number colors stored in color storage | |
void | resize (size_t nr_colors) |
resize to the given number of colors | |
const void * | get_data_ptr () const |
return a void pointer to the color data | |
const void * | get_data_vector_ptr () const |
return a void pointer to the color data vector | |
void | set_color (size_t i, const void *col_ptr) |
set i-th color to color of type stored in storage | |
void | set_color (size_t i, const rgb &col) |
set i-th color from color of type rgb | |
void | set_color (size_t i, const rgba &col) |
set i-th color from color of type rgba | |
void | set_color (size_t i, const rgb8 &col) |
set i-th color from color of type rgb8 | |
void | set_color (size_t i, const rgba8 &col) |
set i-th color from color of type rgba8 | |
void | put_color (size_t i, void *col_ptr) const |
set color of type stored in storage to i-th color | |
void | put_color (size_t i, rgb &col) const |
set color of type rgb to i-th color | |
void | put_color (size_t i, rgba &col) const |
set color of type rgba to i-th color | |
void | put_color (size_t i, rgb8 &col) const |
set color of type rgb8 to i-th color | |
void | put_color (size_t i, rgba8 &col) const |
set color of type rgba8 to i-th color | |
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 | |
template implementation of color storage model