Main MRPT website > C++ reference
MRPT logo
Public Member Functions | Public Attributes | Static Public Attributes

mrpt::utils::TColor Struct Reference


Detailed Description

A RGB color - 8bit.

Definition at line 177 of file base/include/mrpt/utils/types.h.

#include <mrpt/utils/types.h>

List of all members.

Public Member Functions

 TColor ()
 TColor (uint8_t r, uint8_t g, uint8_t b, uint8_t alpha=255)
 TColor (const unsigned int color_RGB_24bit)
 operator unsigned int (void) const
 Operator for implicit conversion into an int binary representation 0xRRGGBB.

Public Attributes

uint8_t R
uint8_t G
uint8_t B
uint8_t A

Static Public Attributes

static TColor red
 Predefined colors.
static TColor green
 Predefined colors.
static TColor blue
 Predefined colors.
static TColor white
 Predefined colors.
static TColor black
 Predefined colors.
static TColor gray
 Predefined colors.

Constructor & Destructor Documentation

mrpt::utils::TColor::TColor (  )  [inline]

Definition at line 179 of file base/include/mrpt/utils/types.h.

mrpt::utils::TColor::TColor ( uint8_t  r,
uint8_t  g,
uint8_t  b,
uint8_t  alpha = 255 
) [inline]

Definition at line 180 of file base/include/mrpt/utils/types.h.

mrpt::utils::TColor::TColor ( const unsigned int  color_RGB_24bit  )  [inline, explicit]

Definition at line 181 of file base/include/mrpt/utils/types.h.


Member Function Documentation

mrpt::utils::TColor::operator unsigned int ( void   )  const [inline]

Operator for implicit conversion into an int binary representation 0xRRGGBB.

Definition at line 184 of file base/include/mrpt/utils/types.h.


Member Data Documentation

Definition at line 182 of file base/include/mrpt/utils/types.h.

Definition at line 182 of file base/include/mrpt/utils/types.h.

Predefined colors.

Definition at line 190 of file base/include/mrpt/utils/types.h.

Referenced by mrpt::slam::COccupancyGridMap2D::saveAsBitmapFileWithLandmarks().

Predefined colors.

Definition at line 188 of file base/include/mrpt/utils/types.h.

Definition at line 182 of file base/include/mrpt/utils/types.h.

Predefined colors.

Definition at line 191 of file base/include/mrpt/utils/types.h.

Predefined colors.

Definition at line 187 of file base/include/mrpt/utils/types.h.

Referenced by mrpt::gui::CDisplayWindow::showTiledImageAndPoints().

Definition at line 182 of file base/include/mrpt/utils/types.h.

Predefined colors.

Definition at line 186 of file base/include/mrpt/utils/types.h.

Referenced by mrpt::utils::CCanvas::drawFeatures().

Predefined colors.

Definition at line 189 of file base/include/mrpt/utils/types.h.




Page generated by Doxygen 1.7.1 for MRPT 0.9.4 SVN: at Mon Jan 10 23:33:19 UTC 2011