Main MRPT website > C++ reference for MRPT 1.4.0
List of all members | Public Member Functions | Public Attributes | Static Public Attributes
mrpt::utils::TColor Struct Reference

Detailed Description

A RGB color - 8bit.

Definition at line 25 of file TColor.h.

#include <mrpt/utils/TColor.h>

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)
 
 TColor (const unsigned int color_RGB_24bit, const uint8_t alpha)
 
 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

◆ TColor() [1/4]

mrpt::utils::TColor::TColor ( )
inline

Definition at line 27 of file TColor.h.

◆ TColor() [2/4]

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

Definition at line 28 of file TColor.h.

◆ TColor() [3/4]

mrpt::utils::TColor::TColor ( const unsigned int  color_RGB_24bit)
inlineexplicit

Definition at line 29 of file TColor.h.

◆ TColor() [4/4]

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

Definition at line 30 of file TColor.h.

Member Function Documentation

◆ operator unsigned int()

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

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

Definition at line 34 of file TColor.h.

Member Data Documentation

◆ A

uint8_t mrpt::utils::TColor::A

Definition at line 31 of file TColor.h.

◆ B

uint8_t mrpt::utils::TColor::B

Definition at line 31 of file TColor.h.

Referenced by mrpt::obs::detail::project3DPointsFromDepthImageInto().

◆ black

TColor mrpt::utils::TColor::black
static

Predefined colors.

Definition at line 40 of file TColor.h.

◆ blue

TColor mrpt::utils::TColor::blue
static

Predefined colors.

Definition at line 38 of file TColor.h.

◆ G

uint8_t mrpt::utils::TColor::G

Definition at line 31 of file TColor.h.

Referenced by mrpt::obs::detail::project3DPointsFromDepthImageInto().

◆ gray

TColor mrpt::utils::TColor::gray
static

Predefined colors.

Definition at line 41 of file TColor.h.

◆ green

TColor mrpt::utils::TColor::green
static

Predefined colors.

Definition at line 37 of file TColor.h.

◆ R

uint8_t mrpt::utils::TColor::R

Definition at line 31 of file TColor.h.

Referenced by mrpt::obs::detail::project3DPointsFromDepthImageInto().

◆ red

TColor mrpt::utils::TColor::red
static

Predefined colors.

Definition at line 36 of file TColor.h.

◆ white

TColor mrpt::utils::TColor::white
static

Predefined colors.

Definition at line 39 of file TColor.h.




Page generated by Doxygen 1.9.6 for MRPT 1.4.0 SVN: at Tue Jan 17 22:40:29 UTC 2023