Eclipse SUMO - Simulation of Urban MObility
Loading...
Searching...
No Matches
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 override
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 222 of file TraCIDefs.h.

Constructor & Destructor Documentation

◆ TraCIColor() [1/2]

libsumo::TraCIColor::TraCIColor ( )
inline

Definition at line 223 of file TraCIDefs.h.

References a, b, g, and r.

◆ TraCIColor() [2/2]

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

Definition at line 224 of file TraCIDefs.h.

References a, b, g, and r.

Member Function Documentation

◆ getString()

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

Reimplemented from libsumo::TraCIResult.

Definition at line 225 of file TraCIDefs.h.

References a, b, g, and r.

◆ getType()

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

Reimplemented in libsumo::TraCIDouble, libsumo::TraCIInt, libsumo::TraCIPosition, libsumo::TraCIRoadPosition, and libsumo::TraCIString.

Definition at line 171 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: