Definition at line 20 of file style_colormap.
◆ map_t
◆ style_colormap() [1/2]
tools::sg::style_colormap::style_colormap |
( |
| ) |
|
|
inline |
Definition at line 27 of file style_colormap.
29 mem::increment(s_class().c_str());
◆ ~style_colormap()
virtual tools::sg::style_colormap::~style_colormap |
( |
| ) |
|
|
inlinevirtual |
Definition at line 32 of file style_colormap.
34 mem::decrement(s_class().c_str());
◆ style_colormap() [2/2]
tools::sg::style_colormap::style_colormap |
( |
const style_colormap & |
a_from | ) |
|
|
inline |
Definition at line 38 of file style_colormap.
40 mem::increment(s_class().c_str());
◆ add()
void tools::sg::style_colormap::add |
( |
const style_color & |
a_color | ) |
|
|
inline |
◆ get_color() [1/2]
bool tools::sg::style_colormap::get_color |
( |
const std::string & |
a_s, |
|
|
colorf & |
a_col |
|
) |
| const |
|
inline |
Definition at line 57 of file style_colormap.
59 if((*it).second.first==a_s) {
60 a_col = (*it).second.second;
◆ get_color() [2/2]
bool tools::sg::style_colormap::get_color |
( |
unsigned int |
a_index, |
|
|
colorf & |
a_col |
|
) |
| const |
|
inline |
Definition at line 48 of file style_colormap.
49 map_t::const_iterator it =
find(a_index);
51 a_col.set_value(0.5F,0.5F,0.5F,1);
54 a_col = (*it).second.second;
◆ get_string_color()
bool tools::sg::style_colormap::get_string_color |
( |
unsigned int |
a_index, |
|
|
std::string & |
a_s |
|
) |
| const |
|
inline |
Definition at line 67 of file style_colormap.
68 map_t::const_iterator it =
find(a_index);
69 if(it==
end()) {a_s.clear();
return false;}
70 colorf c = (*it).second.second;
73 snpf(ss,
sizeof(ss),
"%g %g %g",c[0],c[1],c[2]);
74 a_s = std::string(ss);
◆ operator=()
The documentation for this class was generated from the following file:
- /Users/barrand/private/dev/softinex/g4tools/g4tools/tools/sg/style_colormap