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 () const
 
virtual int getType () 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 216 of file TraCIDefs.h.

Constructor & Destructor Documentation

◆ TraCIColor() [1/2]

libsumo::TraCIColor::TraCIColor ( )
inline

Definition at line 217 of file TraCIDefs.h.

◆ TraCIColor() [2/2]

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

Definition at line 218 of file TraCIDefs.h.

Member Function Documentation

◆ getString()

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

Reimplemented from libsumo::TraCIResult.

Definition at line 219 of file TraCIDefs.h.

References a, b, g, and r.

Referenced by TraCITestClient::testAPI().

Here is the caller graph for this function:

◆ getType()

virtual int libsumo::TraCIResult::getType ( ) const
inlinevirtualinherited

Reimplemented in libsumo::TraCIString, and libsumo::TraCIDouble.

Definition at line 170 of file TraCIDefs.h.

Referenced by libsumo::StorageHelper::toStorage().

Here is the caller graph for this function:

Field Documentation

◆ a

◆ b

◆ g

◆ r


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