34extern CGV_API color<float,RGB> color_scale(
double value, ColorScale cs = CS_TEMPERATURE,
int polarity = 0);
44extern CGV_API
double color_scale_gamma_mapping(
double v,
double gamma,
bool is_bipolar =
false,
double window_zero_position = 0.5);
57extern CGV_API
double adjust_zero_position(
double value,
double window_zero_position);
65extern CGV_API
void register_named_color_scale(const ::std::string& name, const ::std::vector<color<float, RGB>>& samples,
bool is_bipolar =
false);
72extern CGV_API std::string get_color_scale_name(ColorScale cs);
84extern CGV_API
bool find_color_scale(
const std::string& name, ColorScale& cs);
91extern CGV_API
size_t get_named_color_scale_timestamp();
100extern CGV_API
const std::string& get_color_scale_enum_definition(
bool include_fixed =
true,
bool include_named =
true,
int polarity = 0);
109extern CGV_API
const std::vector<std::string>& query_color_scale_names(
int polarity = 0);
117extern CGV_API
const std::vector<color<float, RGB>>& query_named_color_scale(
const std::string& name,
bool* is_bipolar_ptr = 0);
126extern CGV_API std::vector<color<float, RGB>> sample_named_color_scale(
const std::string& name,
size_t nr_samples = 0,
bool exact =
false);
134extern CGV_API color<float, RGB> sample_sampled_color_scale(
float value,
const std::vector<color<float, RGB>>& samples,
bool is_bipolar =
false);
140#include <cgv/config/lib_end.h>