Open3D (C++ API)  0.18.0+6e910d9
Public Member Functions
open3d::visualization::gui::Color Class Reference

#include <Color.h>

Public Member Functions

 Color ()
 
 Color (float r, float g, float b, float a=1.0)
 
 Color (const Eigen::Vector3f &rgb)
 
float GetRed () const
 
float GetGreen () const
 
float GetBlue () const
 
float GetAlpha () const
 
void SetColor (float r, float g, float b, float a=1.0)
 
const float * GetPointer () const
 
float * GetMutablePointer ()
 
Color Lightened (float amount)
 
unsigned int ToABGR32 () const
 
bool operator== (const Color &rhs) const
 
bool operator!= (const Color &rhs) const
 

Constructor & Destructor Documentation

◆ Color() [1/3]

open3d::visualization::gui::Color::Color ( )

◆ Color() [2/3]

open3d::visualization::gui::Color::Color ( float  r,
float  g,
float  b,
float  a = 1.0 
)

◆ Color() [3/3]

open3d::visualization::gui::Color::Color ( const Eigen::Vector3f &  rgb)

Member Function Documentation

◆ GetAlpha()

float open3d::visualization::gui::Color::GetAlpha ( ) const

◆ GetBlue()

float open3d::visualization::gui::Color::GetBlue ( ) const

◆ GetGreen()

float open3d::visualization::gui::Color::GetGreen ( ) const

◆ GetMutablePointer()

float * open3d::visualization::gui::Color::GetMutablePointer ( )

◆ GetPointer()

const float * open3d::visualization::gui::Color::GetPointer ( ) const

◆ GetRed()

float open3d::visualization::gui::Color::GetRed ( ) const

◆ Lightened()

Color open3d::visualization::gui::Color::Lightened ( float  amount)

Returns a lighter color.

Parameters
amountis between 0 and 1, with 0 being the same color and 1 being white.

◆ operator!=()

bool open3d::visualization::gui::Color::operator!= ( const Color rhs) const

◆ operator==()

bool open3d::visualization::gui::Color::operator== ( const Color rhs) const

◆ SetColor()

void open3d::visualization::gui::Color::SetColor ( float  r,
float  g,
float  b,
float  a = 1.0 
)

◆ ToABGR32()

unsigned int open3d::visualization::gui::Color::ToABGR32 ( ) const

The documentation for this class was generated from the following files: