|
cgv
|
Base class defining an interface for using color scales on the graphics device, e.g. in a shader. More...
#include <device_color_scale.h>
Public Member Functions | |
| device_color_scale_arguments | get_arguments () const |
| Get the color scale arguments of the underlying color scale implementation. | |
| cgv::data::time_point | get_modified_time () const |
| Get the time point of the last modification of this object. | |
| std::vector< cgv::rgba > | get_texture_data (size_t texture_resolution) const |
| Get the texture data of the underlying color scales's color ramp or indexed colors. | |
Base class defining an interface for using color scales on the graphics device, e.g. in a shader.
Definition at line 62 of file device_color_scale.h.
| device_color_scale_arguments cgv::render::device_color_scale::get_arguments | ( | ) | const |
Get the color scale arguments of the underlying color scale implementation.
Definition at line 6 of file device_color_scale.cxx.
References cgv::media::color_scale::get_domain(), cgv::media::color_scale::get_unknown_color(), and cgv::media::color_scale::is_clamped().
|
inline |
Get the time point of the last modification of this object.
Definition at line 72 of file device_color_scale.h.
| std::vector< cgv::rgba > cgv::render::device_color_scale::get_texture_data | ( | size_t | texture_resolution | ) | const |
Get the texture data of the underlying color scales's color ramp or indexed colors.
The size of the returned sequence may only exactly match requested_resolution if the underlying color scale is continuous. Discrete color scales may only return as much samples as governed by their indexed color count. If the underlying color scale does not provide opacity mapping, the opacity of the returned samples is expected to be 1.
| texture_resolution | The requested resolution. |
Definition at line 19 of file device_color_scale.cxx.