![]() |
Eclipse SUMO - Simulation of Urban MObility
|
#include <GNEAdditionalListed.h>
Public Member Functions | |
| GNEAdditionalListed (GNEAdditional *additional) | |
| default constructor | |
Protected Member Functions | |
| void | drawListedAdditional (const GUIVisualizationSettings &s, const RGBColor baseCol, const RGBColor textCol, GUITexture texture, const std::string text) const |
| draw listed additional | |
| int | getDrawPositionIndex () const |
| get draw position index | |
| Position | getListedPositionInView () const |
| get listed position in view | |
| void | updateGeometryListedAdditional () |
| update geometry of listed additional | |
Private Member Functions | |
| std::string | adjustListedAdditionalText (const std::string &text) const |
| adjust listed additional text | |
| GNEAdditionalListed (const GNEAdditionalListed &)=delete | |
| Invalidated copy constructor. | |
| GNEAdditionalListed & | operator= (const GNEAdditionalListed &)=delete |
| Invalidated assignment operator. | |
Private Attributes | |
| GNEAdditional * | myAdditional |
| pointer to additional | |
| int | myDrawPositionIndex = 0 |
| draw position index | |
| Position | myIconPosition |
| sign position | |
| double | myIconSize = 0 |
| icon size | |
| GUIGeometry | myInternalRectangle |
| internal rectangle | |
| GUIGeometry | myLineGeometry |
| vector with line geometry | |
| Position | myTextPosition |
| text position | |
common offsets | |
| const double | lineLenght = 1 |
| line offset (must be divisible by 2) | |
| const double | lineWidth = 0.05 |
| line width | |
| const double | shapeWidth = 6 |
| shape width | |
| const double | shapeHeight = 0.5 |
| shapeHeight | |
| const double | ySeparation = 0.1 |
| Y separation. | |
| const double | padding = 0.02 |
| padding between internal and external rectangle | |
| const double | iconPadding = 0.05 |
| icon padding | |
Definition at line 36 of file GNEAdditionalListed.h.
| GNEAdditionalListed::GNEAdditionalListed | ( | GNEAdditional * | additional | ) |
default constructor
Definition at line 33 of file GNEAdditionalListed.cpp.
References myAdditional.
Referenced by GNEAdditionalListed(), and operator=().
|
privatedelete |
Invalidated copy constructor.
References GNEAdditionalListed().
|
private |
adjust listed additional text
Definition at line 160 of file GNEAdditionalListed.cpp.
Referenced by drawListedAdditional().
|
protected |
draw listed additional
Definition at line 75 of file GNEAdditionalListed.cpp.
References GUIVisualizationSettings::additionalSettings, adjustListedAdditionalText(), RGBColor::changedBrightness(), GUIVisualizationSettings::checkDrawAdditional(), GNEViewNetHelper::LockIcon::checkDrawing(), GUIVisualizationSettings::colorSettings, GUIVisualizationAdditionalSettings::connectionColor, GUIVisualizationSettings::dottedContourSettings, GLHelper::drawBoundary(), GUIGeometry::drawGeometry(), GNEViewNetHelper::LockIcon::drawLockIcon(), GLHelper::drawText(), GUITexturesHelper::drawTexturedBox(), FONS_ALIGN_LEFT, FONS_ALIGN_MIDDLE, GUIVisualizationSettings::getDetailLevel(), GUITextureSubSys::getTexture(), lineWidth, myAdditional, myIconPosition, myIconSize, myInternalRectangle, myLineGeometry, myTextPosition, padding, GLHelper::popMatrix(), GLHelper::pushMatrix(), GUIVisualizationDottedContourSettings::segmentWidthSmall, GUIVisualizationColorSettings::selectedAdditionalColor, GLHelper::setColor(), and shapeHeight.
Referenced by GNECalibratorFlow::drawGL(), GNEClosingLaneReroute::drawGL(), GNEClosingReroute::drawGL(), GNEDestProbReroute::drawGL(), GNEParkingAreaReroute::drawGL(), GNERerouterInterval::drawGL(), GNERouteProbReroute::drawGL(), and GNEVariableSpeedSignStep::drawGL().
|
protected |
get draw position index
Definition at line 141 of file GNEAdditionalListed.cpp.
References myAdditional.
Referenced by updateGeometryListedAdditional().
|
protected |
get listed position in view
Definition at line 135 of file GNEAdditionalListed.cpp.
References myIconPosition.
Referenced by GNECalibratorFlow::getPositionInView(), GNEClosingLaneReroute::getPositionInView(), GNEClosingReroute::getPositionInView(), GNEDestProbReroute::getPositionInView(), GNEParkingAreaReroute::getPositionInView(), GNERerouterInterval::getPositionInView(), GNERouteProbReroute::getPositionInView(), and GNEVariableSpeedSignStep::getPositionInView().
|
privatedelete |
Invalidated assignment operator.
References GNEAdditionalListed().
|
protected |
update geometry of listed additional
Definition at line 39 of file GNEAdditionalListed.cpp.
References getDrawPositionIndex(), iconPadding, lineLenght, myAdditional, myDrawPositionIndex, myIconPosition, myIconSize, myInternalRectangle, myLineGeometry, myTextPosition, padding, shapeHeight, shapeWidth, and ySeparation.
Referenced by GNECalibratorFlow::updateGeometry(), GNEClosingLaneReroute::updateGeometry(), GNEClosingReroute::updateGeometry(), GNEDestProbReroute::updateGeometry(), GNEParkingAreaReroute::updateGeometry(), GNERerouterInterval::updateGeometry(), GNERouteProbReroute::updateGeometry(), and GNEVariableSpeedSignStep::updateGeometry().
|
private |
icon padding
Definition at line 82 of file GNEAdditionalListed.h.
Referenced by updateGeometryListedAdditional().
|
private |
line offset (must be divisible by 2)
Definition at line 64 of file GNEAdditionalListed.h.
Referenced by updateGeometryListedAdditional().
|
private |
line width
Definition at line 67 of file GNEAdditionalListed.h.
Referenced by drawListedAdditional().
|
private |
pointer to additional
Definition at line 58 of file GNEAdditionalListed.h.
Referenced by drawListedAdditional(), getDrawPositionIndex(), GNEAdditionalListed(), and updateGeometryListedAdditional().
|
private |
draw position index
Definition at line 87 of file GNEAdditionalListed.h.
Referenced by updateGeometryListedAdditional().
|
private |
sign position
Definition at line 96 of file GNEAdditionalListed.h.
Referenced by drawListedAdditional(), getListedPositionInView(), and updateGeometryListedAdditional().
|
private |
icon size
Definition at line 99 of file GNEAdditionalListed.h.
Referenced by drawListedAdditional(), and updateGeometryListedAdditional().
|
private |
internal rectangle
Definition at line 90 of file GNEAdditionalListed.h.
Referenced by drawListedAdditional(), and updateGeometryListedAdditional().
|
private |
vector with line geometry
Definition at line 93 of file GNEAdditionalListed.h.
Referenced by drawListedAdditional(), and updateGeometryListedAdditional().
|
private |
text position
Definition at line 102 of file GNEAdditionalListed.h.
Referenced by drawListedAdditional(), and updateGeometryListedAdditional().
|
private |
padding between internal and external rectangle
Definition at line 79 of file GNEAdditionalListed.h.
Referenced by drawListedAdditional(), and updateGeometryListedAdditional().
|
private |
shapeHeight
Definition at line 73 of file GNEAdditionalListed.h.
Referenced by drawListedAdditional(), and updateGeometryListedAdditional().
|
private |
shape width
Definition at line 70 of file GNEAdditionalListed.h.
Referenced by updateGeometryListedAdditional().
|
private |
Y separation.
Definition at line 76 of file GNEAdditionalListed.h.
Referenced by updateGeometryListedAdditional().