Public Member Functions | List of all members
Color Class Reference

Color class, extension to std_msgs::ColorRGBA. More...

#include <mht_declaration.h>

Inheritance diagram for Color:
Inheritance graph
[legend]

Public Member Functions

ColorchangeColorBrightness (double correctionFactor)
 Change the brightness of a color. More...
 
 Color (std_msgs::ColorRGBA c)
 Class constructor, needs to be created from a std_msgs::ColorRGBA. More...
 
ostream & operator<< (ostream &)
 prints the color in 0-1 range format More...
 
string str ()
 Output a html style string color code. More...
 

Detailed Description

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.

Constructor & Destructor Documentation

Color::Color ( std_msgs::ColorRGBA  c)

Class constructor, needs to be created from a std_msgs::ColorRGBA.

Parameters
cstd_msgs::ColorRGBA

Definition at line 135 of file mht_implementation.cpp.

Member Function Documentation

Color & Color::changeColorBrightness ( double  correctionFactor)

Change the brightness of a color.

Parameters
correctionFactorif <1 makes a color darker, if >1 makes a color lighter, may change the color tone
Returns
a pointer to the own class

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.

Returns
the html code

Definition at line 171 of file mht_implementation.cpp.


The documentation for this class was generated from the following files:


mtt
Author(s): Jorge Almeida
autogenerated on Mon Mar 2 2015 01:32:18