cgv
|
Public Member Functions | |
gl_color_map (unsigned resolution) | |
gl_color_map (const color_map &cm) | |
virtual bool | has_texture_support () const |
void | clear () |
bool | destruct (context &ctx) |
bool | is_linear_filtering_enabled () const |
void | enable_linear_filtering (bool enabled) |
bool | init (context &ctx) |
void | generate_texture (context &ctx) |
texture & | ref_texture () |
![]() | |
color_map (const std::initializer_list< color_control_point_type > color_points) | |
color_map (const std::initializer_list< color_type > colors) | |
color_map (const std::initializer_list< opacity_control_point_type > opacity_points) | |
color_map (const std::initializer_list< opacity_type > opacities) | |
color_map (const std::initializer_list< std::pair< float, sample_point_type > > control_points) | |
void | clear () |
void | clear_color_points () |
void | clear_opacity_points () |
bool | empty () const |
unsigned | get_resolution () const |
void | set_resolution (unsigned resolution) |
bool | is_interpolation_enabled () const |
void | enable_interpolation (bool enabled) |
void | flip () |
void | apply_gamma (float gamma) |
void | add_color_point (float t, rgb color) |
void | add_opacity_point (float t, float opacity) |
const std::vector< color_control_point_type > & | ref_color_points () const |
const std::vector< opacity_control_point_type > & | ref_opacity_points () const |
rgb | interpolate_color (float t) const |
std::vector< rgb > | interpolate_color (size_t n) const |
float | interpolate_opacity (float t) const |
std::vector< float > | interpolate_opacity (size_t n) const |
rgba | interpolate (float t) const |
std::vector< rgba > | interpolate (size_t n) const |
Protected Member Functions | |
TextureFilter | get_texture_filter () |
void | setup_texture (bool use_opacity) |
void | generate_rgb_texture (context &ctx) |
void | generate_rgba_texture (context &ctx) |
![]() | |
void | construct_interpolators () |
Protected Attributes | |
bool | use_linear_filtering = true |
whether to use linear or nearest neighbour texture filtering | |
texture | tex |
![]() | |
cgv::math::control_point_container< rgb > | color_points |
cgv::math::control_point_container< float > | opacity_points |
std::shared_ptr< cgv::math::interpolator< rgb > > | color_interpolator_ptr = nullptr |
std::shared_ptr< cgv::math::interpolator< float > > | opacity_interpolator_ptr = nullptr |
unsigned | resolution = 256u |
resolution of the sampled color map; mostly used when generating textures from color maps | |
bool | use_interpolation = true |
whether to use interpolation between the samples or just take the nearest one | |
Additional Inherited Members | |
![]() | |
typedef rgb | color_type |
typedef float | opacity_type |
typedef std::pair< opacity_type, color_type > | sample_point_type |
typedef cgv::math::control_point_container< color_type >::control_point_type | color_control_point_type |
typedef cgv::math::control_point_container< opacity_type >::control_point_type | opacity_control_point_type |
Definition at line 212 of file color_map.h.
|
inline |
Definition at line 290 of file color_map.h.
|
inline |
Definition at line 292 of file color_map.h.
|
inline |
Definition at line 296 of file color_map.h.
|
inlinevirtual |
Definition at line 308 of file color_map.h.
|
inline |
Definition at line 316 of file color_map.h.
|
inline |
Definition at line 320 of file color_map.h.
|
inline |
Definition at line 328 of file color_map.h.
|
inlineprotected |
Definition at line 228 of file color_map.h.
|
inlineprotected |
Definition at line 258 of file color_map.h.
|
inline |
Definition at line 342 of file color_map.h.
|
inlineprotected |
Definition at line 218 of file color_map.h.
|
inlinevirtual |
Reimplemented from cgv::render::color_map.
Definition at line 312 of file color_map.h.
|
inline |
Definition at line 333 of file color_map.h.
|
inline |
Definition at line 326 of file color_map.h.
|
inline |
Definition at line 350 of file color_map.h.
|
inlineprotected |
Definition at line 222 of file color_map.h.
|
protected |
Definition at line 216 of file color_map.h.
|
protected |
whether to use linear or nearest neighbour texture filtering
Definition at line 215 of file color_map.h.