CARLA
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
carla::rpc::Color Class Reference

#include <Color.h>

Public Member Functions

 Color ()=default
 
 Color (const Color &)=default
 
 Color (const FColor &color)
 
 Color (const FLinearColor &color)
 
 Color (uint8_t r, uint8_t g, uint8_t b)
 
 MSGPACK_DEFINE_ARRAY (r, g, b)
 
 operator FColor () const
 
 operator FLinearColor () const
 
Color & operator= (const Color &)=default
 

Public Attributes

uint8_t b = 0u
 
uint8_t g = 0u
 
uint8_t r = 0u
 

Detailed Description

Definition at line 22 of file rpc/Color.h.

Constructor & Destructor Documentation

◆ Color() [1/5]

carla::rpc::Color::Color ( )
default

◆ Color() [2/5]

carla::rpc::Color::Color ( const Color &  )
default

◆ Color() [3/5]

carla::rpc::Color::Color ( uint8_t  r,
uint8_t  g,
uint8_t  b 
)
inline

Definition at line 32 of file rpc/Color.h.

◆ Color() [4/5]

carla::rpc::Color::Color ( const FColor &  color)
inline

Definition at line 39 of file rpc/Color.h.

◆ Color() [5/5]

carla::rpc::Color::Color ( const FLinearColor &  color)
inline

Definition at line 42 of file rpc/Color.h.

Member Function Documentation

◆ MSGPACK_DEFINE_ARRAY()

carla::rpc::Color::MSGPACK_DEFINE_ARRAY ( r  ,
g  ,
b   
)

◆ operator FColor()

carla::rpc::Color::operator FColor ( ) const
inline

Definition at line 45 of file rpc/Color.h.

References b, g, and r.

◆ operator FLinearColor()

carla::rpc::Color::operator FLinearColor ( ) const
inline

Definition at line 49 of file rpc/Color.h.

References b, g, and r.

◆ operator=()

Color & carla::rpc::Color::operator= ( const Color &  )
default

Member Data Documentation

◆ b

uint8_t carla::rpc::Color::b = 0u

Definition at line 27 of file rpc/Color.h.

Referenced by operator FColor(), and operator FLinearColor().

◆ g

uint8_t carla::rpc::Color::g = 0u

Definition at line 26 of file rpc/Color.h.

Referenced by operator FColor(), and operator FLinearColor().

◆ r

uint8_t carla::rpc::Color::r = 0u

Definition at line 25 of file rpc/Color.h.

Referenced by operator FColor(), and operator FLinearColor().


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