Bayeux
3.4.1
Core Foundation library for SuperNEMO
|
Color context object. More...
#include <bayeux/geomtools/color.h>
Public Types | |
enum | encoding_type { ENCODING_NONE = 0, ENCODING_BY_CODE = 1, ENCODING_BY_VALUE = 2, ENCODING_BY_NAME = 3 } |
Public Member Functions | |
context () | |
Constructor. More... | |
void | reset () |
Reset. More... | |
bool | is_activated () const |
Check activation status. More... | |
void | deactivate () |
Deactivate. More... | |
bool | encoded_by_code () const |
Check if color is encoded by code. More... | |
void | set_color_code (color::code_type) |
Set the color code. More... | |
color::code_type | get_color_code () const |
Return the color code. More... | |
bool | encoded_by_value () const |
Check if color is encoded by value. More... | |
void | set_color_value (double) |
Set the color value. More... | |
double | get_color_value () const |
Return the color value. More... | |
bool | encoded_by_name () const |
Check if color is encoded by name. More... | |
void | set_color_name (const std::string &) |
Set the color name. More... | |
const std::string & | get_color_name () const |
Return the color name. More... | |
std::string | str () const |
Generate a string. More... | |
Color context object.
geomtools::color::context::context | ( | ) |
Constructor.
void geomtools::color::context::deactivate | ( | ) |
Deactivate.
bool geomtools::color::context::encoded_by_code | ( | ) | const |
Check if color is encoded by code.
bool geomtools::color::context::encoded_by_name | ( | ) | const |
Check if color is encoded by name.
bool geomtools::color::context::encoded_by_value | ( | ) | const |
Check if color is encoded by value.
color::code_type geomtools::color::context::get_color_code | ( | ) | const |
Return the color code.
const std::string& geomtools::color::context::get_color_name | ( | ) | const |
Return the color name.
double geomtools::color::context::get_color_value | ( | ) | const |
Return the color value.
bool geomtools::color::context::is_activated | ( | ) | const |
Check activation status.
void geomtools::color::context::reset | ( | ) |
Reset.
void geomtools::color::context::set_color_code | ( | color::code_type | ) |
Set the color code.
void geomtools::color::context::set_color_name | ( | const std::string & | ) |
Set the color name.
void geomtools::color::context::set_color_value | ( | double | ) |
Set the color value.
std::string geomtools::color::context::str | ( | ) | const |
Generate a string.