MRPT  2.0.2
List of all members | Public Member Functions | Public Attributes
mrpt::img::TColorf Struct Reference

Detailed Description

An RGBA color - floats in the range [0,1].

Definition at line 88 of file TColor.h.

#include <mrpt/img/TColor.h>

Public Member Functions

 TColorf (float r=0, float g=0, float b=0, float alpha=1.0f)
 
 TColorf (const TColor &col)
 
TColor asTColor () const
 Returns the 0-255 integer version of this color: RGBA_u8. More...
 

Public Attributes

float R
 
float G
 
float B
 
float A
 

Constructor & Destructor Documentation

◆ TColorf() [1/2]

mrpt::img::TColorf::TColorf ( float  r = 0,
float  g = 0,
float  b = 0,
float  alpha = 1.0f 
)
inline

Definition at line 90 of file TColor.h.

◆ TColorf() [2/2]

mrpt::img::TColorf::TColorf ( const TColor col)
inlineexplicit

Definition at line 95 of file TColor.h.

Member Function Documentation

◆ asTColor()

TColor mrpt::img::TColorf::asTColor ( ) const
inline

Returns the 0-255 integer version of this color: RGBA_u8.

Definition at line 101 of file TColor.h.

References B, mrpt::f2u8(), G, and R.

Referenced by mrpt::img::colormap(), mrpt::maps::COccupancyGridMap3D::getAsOctoMapVoxels(), mrpt::opengl::CColorBar::onUpdateBuffers_all(), mrpt::opengl::CMeshFast::onUpdateBuffers_Points(), mrpt::opengl::CPlanarLaserScan::onUpdateBuffers_Points(), mrpt::opengl::CPlanarLaserScan::onUpdateBuffers_Wireframe(), mrpt::opengl::CVectorField3D::onUpdateBuffers_Wireframe(), and mrpt::opengl::CPointCloudColoured::PLY_export_get_vertex().

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

Member Data Documentation

◆ A

float mrpt::img::TColorf::A

◆ B

float mrpt::img::TColorf::B

◆ G

float mrpt::img::TColorf::G

◆ R

float mrpt::img::TColorf::R



Page generated by Doxygen 1.8.14 for MRPT 2.0.2 Git: 9b4fd2465 Mon May 4 16:59:08 2020 +0200 at lun may 4 17:26:07 CEST 2020