16 #ifndef GEOMTOOLS_COLOR_H 17 #define GEOMTOOLS_COLOR_H 1 26 #include <boost/cstdint.hpp> 27 #include <boost/scoped_ptr.hpp> 57 static const std::string &
invalid();
59 static const std::string &
white();
60 static const std::string &
black();
61 static const std::string &
grey();
62 static const std::string &
red();
63 static const std::string &
green();
64 static const std::string &
blue();
65 static const std::string &
magenta();
66 static const std::string &
cyan();
67 static const std::string &
brown();
68 static const std::string &
yellow();
69 static const std::string &
orange();
113 int32_t, int32_t, int32_t, int32_t = 0);
217 std::string
str()
const;
224 double _color_value_;
225 std::string _color_name_;
226 double _transparency_;
234 #endif // GEOMTOOLS_COLOR_H
void set_color_name(const std::string &)
Set the color name.
void set_color_value(double)
Set the color value.
bool is_activated() const
Check activation status.
double get_color_value() const
Return the color value.
std::string str() const
Generate a string.
void deactivate()
Deactivate.
void set_color_code(color::code_type)
Set the color code.
encoding_type
Definition: color.h:158
bool encoded_by_code() const
Check if color is encoded by code.
Color context object.
Definition: color.h:156
const std::string & get_color_name() const
Return the color name.
color::code_type get_color_code() const
Return the color code.
bool encoded_by_name() const
Check if color is encoded by name.
bool encoded_by_value() const
Check if color is encoded by value.