Main MRPT website > C++ reference
MRPT logo

mrpt::utils::TColor Struct Reference

A RGB color - 8bit. More...

#include <mrpt/utils/types.h>

Collaboration diagram for mrpt::utils::TColor:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 TColor (uint8_t r=0, uint8_t g=0, uint8_t b=0, uint8_t alpha=255)
 operator 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.

Detailed Description

A RGB color - 8bit.

Definition at line 227 of file types.h.


Constructor & Destructor Documentation

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

Definition at line 229 of file types.h.


Member Function Documentation

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

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

Definition at line 232 of file types.h.


Member Data Documentation

Definition at line 230 of file types.h.

Definition at line 230 of file types.h.

Predefined colors.

Definition at line 238 of file types.h.

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

Predefined colors.

Definition at line 236 of file types.h.

Definition at line 230 of file types.h.

Predefined colors.

Definition at line 239 of file types.h.

Predefined colors.

Definition at line 235 of file types.h.

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

Definition at line 230 of file types.h.

Predefined colors.

Definition at line 234 of file types.h.

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

Predefined colors.

Definition at line 237 of file types.h.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines



Page generated by Doxygen 1.6.1 for MRPT 0.9.0 SVN: at Mon Jun 7 06:47:58 UTC 2010