Eclipse SUMO - Simulation of Urban MObility
libsumo::TraCIColor Struct Reference

A color. More...

#include <TraCIDefs.h>

Inheritance diagram for libsumo::TraCIColor:
[legend]
Collaboration diagram for libsumo::TraCIColor:
[legend]

Public Member Functions

std::string getString ()
 
virtual const std::vector< unsigned char > toPacket () const
 
 TraCIColor ()
 
 TraCIColor (int r, int g, int b, int a=255)
 

Data Fields

int a
 
int b
 
int g
 
int r
 

Detailed Description

A color.

Definition at line 167 of file TraCIDefs.h.

Constructor & Destructor Documentation

◆ TraCIColor() [1/2]

libsumo::TraCIColor::TraCIColor ( )
inline

Definition at line 168 of file TraCIDefs.h.

◆ TraCIColor() [2/2]

libsumo::TraCIColor::TraCIColor ( int  r,
int  g,
int  b,
int  a = 255 
)
inline

Definition at line 169 of file TraCIDefs.h.

Member Function Documentation

◆ getString()

std::string libsumo::TraCIColor::getString ( )
inlinevirtual

Reimplemented from libsumo::TraCIResult.

Definition at line 170 of file TraCIDefs.h.

References a, b, g, and r.

Referenced by TraCITestClient::testAPI().

Here is the caller graph for this function:

◆ toPacket()

virtual const std::vector<unsigned char> libsumo::TraCIResult::toPacket ( ) const
inlinevirtualinherited

Definition at line 133 of file TraCIDefs.h.

Field Documentation

◆ a

◆ b

◆ g

◆ r


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