Definition at line 18 of file colormap.
◆ base_colormap() [1/2]
tools::sg::base_colormap::base_colormap |
( |
| ) |
|
|
inline |
Definition at line 29 of file colormap.
31 mem::increment(s_class().c_str());
◆ base_colormap() [2/2]
tools::sg::base_colormap::base_colormap |
( |
const base_colormap & |
aFrom | ) |
|
|
inline |
Definition at line 34 of file colormap.
37 mem::increment(s_class().c_str());
◆ ~base_colormap()
virtual tools::sg::base_colormap::~base_colormap |
( |
| ) |
|
|
inlinevirtual |
Definition at line 45 of file colormap.
47 mem::decrement(s_class().c_str());
◆ cast()
virtual void* tools::sg::base_colormap::cast |
( |
const std::string & |
| ) |
const |
|
pure virtual |
◆ color()
colorf tools::sg::base_colormap::color |
( |
size_t |
a_index | ) |
const |
|
inline |
Definition at line 53 of file colormap.
55 if(a_index>=n)
return colorf(0.5F,0.5F,0.5F);
◆ colorn()
size_t tools::sg::base_colormap::colorn |
( |
| ) |
const |
|
inline |
◆ get_color()
virtual void tools::sg::base_colormap::get_color |
( |
float |
, |
|
|
colorf & |
|
|
) |
| const |
|
pure virtual |
◆ operator=()
◆ set_colors()
void tools::sg::base_colormap::set_colors |
( |
void(*)(float, colorf &) |
aGet, |
|
|
size_t |
a_ncell |
|
) |
| |
|
inline |
Definition at line 65 of file colormap.
69 float d = 1.0F/(a_ncell-1);
70 for(
size_t index=0;index<a_ncell;index++) {
◆ set_PAW_coloring()
void tools::sg::base_colormap::set_PAW_coloring |
( |
| ) |
|
|
inline |
Definition at line 75 of file colormap.
84 float dv = (vmax-vmin)/(_valn-1);
85 for(
size_t count=0;count<_valn;count++) {
◆ take_log()
static float tools::sg::base_colormap::take_log |
( |
float |
aVal | ) |
|
|
inlinestaticprotected |
◆ valn()
size_t tools::sg::base_colormap::valn |
( |
| ) |
const |
|
inline |
◆ value()
float tools::sg::base_colormap::value |
( |
size_t |
a_index | ) |
const |
|
inline |
Definition at line 58 of file colormap.
60 if(a_index>=n)
return 0;
◆ m_colors
std::vector<colorf> tools::sg::base_colormap::m_colors |
|
protected |
◆ m_values
std::vector<float> tools::sg::base_colormap::m_values |
|
protected |
The documentation for this class was generated from the following file:
- /Users/barrand/private/dev/softinex/g4tools/g4tools/tools/sg/colormap