Color class, extension to std_msgs::ColorRGBA. More...
#include <mht_declaration.h>
Public Member Functions | |
| Color & | changeColorBrightness (double correctionFactor) |
| Change the brightness of a color. | |
| Color (std_msgs::ColorRGBA c) | |
| Class constructor, needs to be created from a std_msgs::ColorRGBA. | |
| ostream & | operator<< (ostream &) |
| prints the color in 0-1 range format | |
| string | str () |
| Output a html style string color code. | |
Color class, extension to std_msgs::ColorRGBA.
This class allows to change the brightness of the color and output it has a string.
Definition at line 89 of file mht_declaration.h.
| Color::Color | ( | std_msgs::ColorRGBA | c | ) |
Class constructor, needs to be created from a std_msgs::ColorRGBA.
| c | std_msgs::ColorRGBA |
Definition at line 135 of file mht_implementation.cpp.
| Color & Color::changeColorBrightness | ( | double | correctionFactor | ) |
Change the brightness of a color.
| correctionFactor | if <1 makes a color darker, if >1 makes a color lighter, may change the color tone |
Definition at line 143 of file mht_implementation.cpp.
| ostream & Color::operator<< | ( | ostream & | o | ) |
prints the color in 0-1 range format
Definition at line 179 of file mht_implementation.cpp.
| string Color::str | ( | ) |
Output a html style string color code.
Definition at line 171 of file mht_implementation.cpp.