Eclipse SUMO - Simulation of Urban MObility
Loading...
Searching...
No Matches
GUIVisualizationTextSettings Struct Reference

#include <GUIVisualizationSettings.h>

Collaboration diagram for GUIVisualizationTextSettings:
[legend]

Public Member Functions

 GUIVisualizationTextSettings (bool _show, double _size, RGBColor _color, RGBColor _bgColor=RGBColor(128, 0, 0, 0), bool _constSize=true, bool _onlySelected=false)
 constructor
 
bool operator!= (const GUIVisualizationTextSettings &other)
 inequality comparator
 
bool operator== (const GUIVisualizationTextSettings &other)
 equality comparator
 
void print (OutputDevice &dev, const std::string &name) const
 print values in output device
 
double scaledSize (double scale, double constFactor=0.1) const
 get scale size
 
bool show (const GUIGlObject *o) const
 whether to show the text
 

Data Fields

RGBColor bgColor
 background text color
 
RGBColor color
 text color
 
bool constSize
 @brif flag to avoid size changes
 
bool onlySelected
 whether only selected objects shall have text drawn
 
bool showText
 flag show
 
double size
 text size
 

Detailed Description

Definition at line 49 of file GUIVisualizationSettings.h.

Constructor & Destructor Documentation

◆ GUIVisualizationTextSettings()

GUIVisualizationTextSettings::GUIVisualizationTextSettings ( bool  _show,
double  _size,
RGBColor  _color,
RGBColor  _bgColor = RGBColor(128, 0, 0, 0),
bool  _constSize = true,
bool  _onlySelected = false 
)

constructor

Definition at line 231 of file GUIVisualizationSettings.cpp.

Member Function Documentation

◆ operator!=()

bool GUIVisualizationTextSettings::operator!= ( const GUIVisualizationTextSettings other)

inequality comparator

Definition at line 253 of file GUIVisualizationSettings.cpp.

References bgColor, color, constSize, onlySelected, showText, and size.

◆ operator==()

bool GUIVisualizationTextSettings::operator== ( const GUIVisualizationTextSettings other)

equality comparator

Definition at line 242 of file GUIVisualizationSettings.cpp.

References bgColor, color, constSize, onlySelected, showText, and size.

◆ print()

void GUIVisualizationTextSettings::print ( OutputDevice dev,
const std::string &  name 
) const

print values in output device

Definition at line 264 of file GUIVisualizationSettings.cpp.

References bgColor, color, constSize, onlySelected, showText, size, and OutputDevice::writeAttr().

Referenced by GUIVisualizationSettings::save().

Here is the caller graph for this function:

◆ scaledSize()

double GUIVisualizationTextSettings::scaledSize ( double  scale,
double  constFactor = 0.1 
) const

◆ show()

Field Documentation

◆ bgColor

◆ color

◆ constSize

◆ onlySelected

bool GUIVisualizationTextSettings::onlySelected

◆ showText

◆ size


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