![]() |
Eclipse SUMO - Simulation of Urban MObility
|
#include <GUIVisualizationSettings.h>
Public Member Functions | |
| GUIVisualizationTextSettings (bool _show, double _size, RGBColor _color, RGBColor _bgColor=RGBColor(128, 0, 0, 0), bool _constSize=true, bool _onlySelected=false) | |
| constructor More... | |
| bool | operator!= (const GUIVisualizationTextSettings &other) |
| inequality comparator More... | |
| bool | operator== (const GUIVisualizationTextSettings &other) |
| equality comparator More... | |
| void | print (OutputDevice &dev, const std::string &name) const |
| print values in output device More... | |
| double | scaledSize (double scale, double constFactor=0.1) const |
| get scale size More... | |
| bool | show (const GUIGlObject *o) const |
| whether to show the text More... | |
Data Fields | |
| RGBColor | bgColor |
| background text color More... | |
| RGBColor | color |
| text color More... | |
| bool | constSize |
| @brif flag to avoid size changes More... | |
| bool | onlySelected |
| whether only selected objects shall have text drawn More... | |
| bool | showText |
| flag show More... | |
| double | size |
| text size More... | |
Definition at line 48 of file GUIVisualizationSettings.h.
| 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 236 of file GUIVisualizationSettings.cpp.
| bool GUIVisualizationTextSettings::operator!= | ( | const GUIVisualizationTextSettings & | other | ) |
inequality comparator
Definition at line 258 of file GUIVisualizationSettings.cpp.
References bgColor, color, constSize, onlySelected, showText, and size.
| bool GUIVisualizationTextSettings::operator== | ( | const GUIVisualizationTextSettings & | other | ) |
equality comparator
Definition at line 247 of file GUIVisualizationSettings.cpp.
References bgColor, color, constSize, onlySelected, showText, and size.
| void GUIVisualizationTextSettings::print | ( | OutputDevice & | dev, |
| const std::string & | name | ||
| ) | const |
print values in output device
Definition at line 269 of file GUIVisualizationSettings.cpp.
References bgColor, color, constSize, onlySelected, showText, size, and OutputDevice::writeAttr().
Referenced by GUIVisualizationSettings::save().
| double GUIVisualizationTextSettings::scaledSize | ( | double | scale, |
| double | constFactor = 0.1 |
||
| ) | const |
get scale size
Definition at line 280 of file GUIVisualizationSettings.cpp.
References constSize, and size.
Referenced by GLHelper::debugVertices(), GNEAdditional::drawAdditionalID(), GNEAdditional::drawAdditionalName(), GNEEdge::drawEdgeGeometryPoints(), GNEEdge::drawEdgeName(), GUIJunctionWrapper::drawGL(), GNEContainer::drawGL(), GNEPerson::drawGL(), GNEVehicle::drawGL(), GNEJunction::drawGL(), GUIEdge::drawGL(), GUIPerson::drawGL(), GUIPointOfInterest::drawInnerPOI(), GUIBaseVehicle::drawOnPos(), GUIBaseVehicle::drawParkingInfo(), GLHelper::drawTextAtEnd(), and GLHelper::drawTextSettings().
| bool GUIVisualizationTextSettings::show | ( | const GUIGlObject * | o | ) | const |
whether to show the text
Definition at line 286 of file GUIVisualizationSettings.cpp.
References gSelected, GUISelectedStorage::isSelected(), onlySelected, and showText.
Referenced by GNEAdditional::drawAdditionalID(), GNEAdditional::drawAdditionalName(), GNEEdge::drawEdgeName(), GUIBusStop::drawGL(), GUIChargingStation::drawGL(), GUIJunctionWrapper::drawGL(), GUIParkingArea::drawGL(), GNETAZ::drawGL(), GNEContainer::drawGL(), GNEPerson::drawGL(), GNEVehicle::drawGL(), GNEConnection::drawGL(), GNECrossing::drawGL(), GNEJunction::drawGL(), GNEWalkingArea::drawGL(), GUIEdge::drawGL(), GUILane::drawGL(), GUIPerson::drawGL(), GNEPoly::drawGL(), GUIPointOfInterest::drawInnerPOI(), GUIPolygon::drawInnerPolygon(), GNELane::drawLinkNo(), GUIGlObject::drawName(), GUIBaseVehicle::drawOnPos(), and GNELane::drawTLSLinkNo().
| RGBColor GUIVisualizationTextSettings::bgColor |
background text color
Definition at line 78 of file GUIVisualizationSettings.h.
Referenced by GLHelper::debugVertices(), GLHelper::drawTextAtEnd(), GLHelper::drawTextSettings(), GUIDialog_ViewSettings::NamePanel::NamePanel(), operator!=(), operator==(), GUISettingsHandler::parseTextSettings(), print(), and GUIDialog_ViewSettings::NamePanel::update().
| RGBColor GUIVisualizationTextSettings::color |
text color
Definition at line 75 of file GUIVisualizationSettings.h.
Referenced by GNEAdditional::drawAdditionalID(), GNEAdditional::drawAdditionalName(), GNEEdge::drawEdgeGeometryPoints(), GNEJunction::drawGL(), GLHelper::drawTextAtEnd(), GLHelper::drawTextSettings(), GUIDialog_ViewSettings::NamePanel::NamePanel(), operator!=(), operator==(), GUISettingsHandler::parseTextSettings(), print(), and GUIDialog_ViewSettings::NamePanel::update().
| bool GUIVisualizationTextSettings::constSize |
@brif flag to avoid size changes
Definition at line 81 of file GUIVisualizationSettings.h.
Referenced by GUIDialog_ViewSettings::NamePanel::NamePanel(), operator!=(), operator==(), GUISettingsHandler::parseTextSettings(), print(), scaledSize(), and GUIDialog_ViewSettings::NamePanel::update().
| bool GUIVisualizationTextSettings::onlySelected |
whether only selected objects shall have text drawn
Definition at line 84 of file GUIVisualizationSettings.h.
Referenced by GUIDialog_ViewSettings::NamePanel::NamePanel(), operator!=(), operator==(), GUISettingsHandler::parseTextSettings(), print(), show(), and GUIDialog_ViewSettings::NamePanel::update().
| bool GUIVisualizationTextSettings::showText |
flag show
Definition at line 69 of file GUIVisualizationSettings.h.
Referenced by GUIDialog_ViewSettings::NamePanel::NamePanel(), operator!=(), operator==(), GUISettingsHandler::parseTextSettings(), print(), show(), and GUIDialog_ViewSettings::NamePanel::update().
| double GUIVisualizationTextSettings::size |
text size
Definition at line 72 of file GUIVisualizationSettings.h.
Referenced by GUIVehicle::drawAction_drawLinkItems(), GNETAZ::drawGL(), GNEPoly::drawGL(), GUIPointOfInterest::drawInnerPOI(), GUIPolygon::drawInnerPolygon(), GUIVehicle::drawRouteHelper(), GUIMEVehicle::drawRouteHelper(), GUIBaseVehicle::drawStopLabels(), GUIDialog_ViewSettings::NamePanel::NamePanel(), operator!=(), operator==(), GUISettingsHandler::parseTextSettings(), print(), scaledSize(), and GUIDialog_ViewSettings::NamePanel::update().