MRPT  1.9.9
mrpt::img::TColor Struct Reference

Detailed Description

A RGB color - 8bit.

Definition at line 20 of file TColor.h.

#include <mrpt/img/TColor.h>

Public Member Functions

constexpr TColor ()=default
 
constexpr TColor (uint8_t r, uint8_t g, uint8_t b, uint8_t alpha=255)
 
constexpr TColor (const unsigned int color_RGB_24bit)
 
constexpr TColor (const unsigned int color_RGB_24bit, const uint8_t alpha)
 
 operator unsigned int () const
 Operator for implicit conversion into an int binary representation 0xRRGGBB. More...
 
TColoroperator= (const TColor &other)
 
TColoroperator+= (const TColor &other)
 
TColoroperator-= (const TColor &other)
 

Static Public Member Functions

static constexpr TColor red ()
 Predefined colors. More...
 
static constexpr TColor green ()
 
static constexpr TColor blue ()
 
static constexpr TColor black ()
 
static constexpr TColor white ()
 
static constexpr TColor gray ()
 

Public Attributes

uint8_t R {0}
 
uint8_t G {0}
 
uint8_t B {0}
 
uint8_t A {255}
 

Constructor & Destructor Documentation

◆ TColor() [1/4]

constexpr mrpt::img::TColor::TColor ( )
inlinedefault

Referenced by black(), blue(), gray(), green(), red(), and white().

Here is the caller graph for this function:

◆ TColor() [2/4]

constexpr mrpt::img::TColor::TColor ( uint8_t  r,
uint8_t  g,
uint8_t  b,
uint8_t  alpha = 255 
)
inline

Definition at line 23 of file TColor.h.

◆ TColor() [3/4]

constexpr mrpt::img::TColor::TColor ( const unsigned int  color_RGB_24bit)
inlineexplicit

Definition at line 29 of file TColor.h.

◆ TColor() [4/4]

constexpr mrpt::img::TColor::TColor ( const unsigned int  color_RGB_24bit,
const uint8_t  alpha 
)
inline

Definition at line 37 of file TColor.h.

Member Function Documentation

◆ black()

static constexpr TColor mrpt::img::TColor::black ( )
inlinestatic

Definition at line 63 of file TColor.h.

References TColor().

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

Here is the call graph for this function:
Here is the caller graph for this function:

◆ blue()

static constexpr TColor mrpt::img::TColor::blue ( )
inlinestatic

Definition at line 62 of file TColor.h.

References TColor().

Referenced by mrpt::img::TColorManager::advanceRGBCounters(), mrpt::img::TColorManager::checkStdColorsUsed(), mrpt::img::CImage::drawChessboardCorners(), and mrpt::img::TColorManager::getNextTColor().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ gray()

static constexpr TColor mrpt::img::TColor::gray ( )
inlinestatic

Definition at line 65 of file TColor.h.

References TColor().

Here is the call graph for this function:

◆ green()

static constexpr TColor mrpt::img::TColor::green ( )
inlinestatic

Definition at line 61 of file TColor.h.

References TColor().

Referenced by mrpt::img::TColorManager::advanceRGBCounters(), mrpt::img::TColorManager::checkStdColorsUsed(), and mrpt::img::TColorManager::getNextTColor().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ operator unsigned int()

mrpt::img::TColor::operator unsigned int ( ) const
inline

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

Definition at line 50 of file TColor.h.

References B, G, and R.

◆ operator+=()

TColor & TColor::operator+= ( const TColor other)

Definition at line 41 of file TColor.cpp.

References A, B, G, and R.

◆ operator-=()

TColor & TColor::operator-= ( const TColor other)

Definition at line 51 of file TColor.cpp.

References A, B, G, and R.

◆ operator=()

TColor & TColor::operator= ( const TColor other)
default

◆ red()

static constexpr TColor mrpt::img::TColor::red ( )
inlinestatic

Predefined colors.

Definition at line 60 of file TColor.h.

References TColor().

Referenced by mrpt::img::TColorManager::advanceRGBCounters(), mrpt::img::TColorManager::checkStdColorsUsed(), mrpt::img::CCanvas::drawFeatures(), and mrpt::img::TColorManager::getNextTColor().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ white()

static constexpr TColor mrpt::img::TColor::white ( )
inlinestatic

Definition at line 64 of file TColor.h.

References TColor().

Here is the call graph for this function:

Member Data Documentation

◆ A

◆ B

◆ G

◆ R




Page generated by Doxygen 1.8.14 for MRPT 1.9.9 Git: 8fe78517f Sun Jul 14 19:43:28 2019 +0200 at lun oct 28 02:10:00 CET 2019