Color Class Reference

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

#include <mht_declaration.h>

List of all members.

Public Member Functions

ColorchangeColorBrightness (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.

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:
c std_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:
correctionFactor if <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:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines


mtt
Author(s): Jorge Almeida
autogenerated on Wed Jul 23 04:34:58 2014