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 | |
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 | |
Definition at line 49 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 231 of file GUIVisualizationSettings.cpp.
bool GUIVisualizationTextSettings::operator!= | ( | const GUIVisualizationTextSettings & | other | ) |
inequality comparator
Definition at line 253 of file GUIVisualizationSettings.cpp.
References bgColor, color, constSize, onlySelected, showText, and size.
bool GUIVisualizationTextSettings::operator== | ( | const GUIVisualizationTextSettings & | other | ) |
equality comparator
Definition at line 242 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 264 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 275 of file GUIVisualizationSettings.cpp.
References constSize, and size.
Referenced by GLHelper::debugVertices(), GNEAdditional::drawAdditionalID(), GNEAdditional::drawAdditionalName(), GUIBaseVehicle::drawChargingInfo(), GNEEdge::drawEdgeGeometryPoints(), GNEEdge::drawEdgeName(), GNEJunction::drawElevation(), GUIJunctionWrapper::drawGL(), GNEPerson::drawGL(), GNEVehicle::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 281 of file GUIVisualizationSettings.cpp.
References gSelected, GUISelectedStorage::isSelected(), onlySelected, and showText.
Referenced by GNEAdditional::drawAdditionalID(), GNEAdditional::drawAdditionalName(), GNEEdge::drawEdgeName(), GNEConnection::drawEdgeValues(), GUIBusStop::drawGL(), GUIChargingStation::drawGL(), GUIJunctionWrapper::drawGL(), GUIParkingArea::drawGL(), GNETAZ::drawGL(), GNEPerson::drawGL(), GNEVehicle::drawGL(), GNECrossing::drawGL(), GNEInternalLane::drawGL(), GNEWalkingArea::drawGL(), GUIEdge::drawGL(), GUILane::drawGL(), GUIPerson::drawGL(), GUIPointOfInterest::drawInnerPOI(), GUIPolygon::drawInnerPolygon(), GNEJunction::drawJunctionName(), GNELane::drawLinkNo(), GUIGlObject::drawName(), GUIBaseVehicle::drawOnPos(), GNEPoly::drawPolygonNameAndType(), GNELane::drawTLSLinkNo(), and GNECrossing::drawTLSLinkNo().
RGBColor GUIVisualizationTextSettings::bgColor |
background text color
Definition at line 79 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 76 of file GUIVisualizationSettings.h.
Referenced by GLHelper::debugVertices(), GNEAdditional::drawAdditionalID(), GNEAdditional::drawAdditionalName(), GNEEdge::drawEdgeGeometryPoints(), GNEJunction::drawElevation(), 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 82 of file GUIVisualizationSettings.h.
Referenced by GUIVisualizationSettings::checkDrawAdditional(), GUIVisualizationSettings::checkDrawContainer(), GUIVisualizationSettings::checkDrawJunction(), GUIVisualizationSettings::checkDrawPerson(), GUIVisualizationSettings::checkDrawPOI(), GUIVisualizationSettings::checkDrawPoly(), GUIVisualizationSettings::checkDrawVehicle(), GUIDialog_ViewSettings::NamePanel::NamePanel(), operator!=(), operator==(), GUISettingsHandler::parseTextSettings(), print(), scaledSize(), GUIDialog_ViewSettings::NamePanel::update(), and GUIVisualizationSettings::updateIgnoreHideByZoom().
bool GUIVisualizationTextSettings::onlySelected |
whether only selected objects shall have text drawn
Definition at line 85 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 70 of file GUIVisualizationSettings.h.
Referenced by GUIVisualizationSettings::checkDrawAdditional(), GUIVisualizationSettings::checkDrawContainer(), GUIVisualizationSettings::checkDrawJunction(), GUIVisualizationSettings::checkDrawPerson(), GUIVisualizationSettings::checkDrawPOI(), GUIVisualizationSettings::checkDrawPoly(), GUIVisualizationSettings::checkDrawVehicle(), GUIDialog_ViewSettings::NamePanel::NamePanel(), operator!=(), operator==(), GUISettingsHandler::parseTextSettings(), print(), show(), GUIDialog_ViewSettings::NamePanel::update(), and GUIVisualizationSettings::updateIgnoreHideByZoom().
double GUIVisualizationTextSettings::size |
text size
Definition at line 73 of file GUIVisualizationSettings.h.
Referenced by GUIVehicle::drawAction_drawLinkItems(), GNETAZ::drawGL(), GUIPointOfInterest::drawInnerPOI(), GUIPolygon::drawInnerPolygon(), GNEPoly::drawPolygonNameAndType(), GUIVehicle::drawRouteHelper(), GUIMEVehicle::drawRouteHelper(), GUIBaseVehicle::drawStopLabels(), GUIDialog_ViewSettings::NamePanel::NamePanel(), operator!=(), operator==(), GUISettingsHandler::parseTextSettings(), print(), scaledSize(), and GUIDialog_ViewSettings::NamePanel::update().