![]() |
Eclipse SUMO - Simulation of Urban MObility
|
struct for pack all variables and functions related with Block Icon More...
#include <GNEAdditional.h>
Public Member Functions | |
BlockIcon (GNEAdditional *additional) | |
constructor More... | |
void | drawIcon (const GUIVisualizationSettings &s, const double exaggeration, const double size=0.5) const |
draw lock icon More... | |
void | setRotation (GNELane *additionalLane=nullptr) |
set Rotation of block Icon (must be called in updateGeometry() function) More... | |
Data Fields | |
Position | offset |
The offSet of the block icon. More... | |
Position | position |
position of the block icon More... | |
double | rotation |
The rotation of the block icon. More... | |
Private Member Functions | |
BlockIcon & | operator= (const BlockIcon &other)=delete |
Invalidated assignment operator. More... | |
Private Attributes | |
GNEAdditional * | myAdditional |
pointer to parent additional More... | |
struct for pack all variables and functions related with Block Icon
Definition at line 306 of file GNEAdditional.h.
GNEAdditional::BlockIcon::BlockIcon | ( | GNEAdditional * | additional | ) |
constructor
Definition at line 394 of file GNEAdditional.cpp.
void GNEAdditional::BlockIcon::drawIcon | ( | const GUIVisualizationSettings & | s, |
const double | exaggeration, | ||
const double | size = 0.5 |
||
) | const |
draw lock icon
Definition at line 416 of file GNEAdditional.cpp.
References GUIVisualizationSettings::detailSettings, GUIVisualizationSettings::drawDetail(), GUIVisualizationSettings::drawForRectangleSelection, GUITexturesHelper::drawTexturedBox(), GUITextureSubSys::getTexture(), GNETEXTURE_EMPTY, GNETEXTURE_EMPTYSELECTED, GNETEXTURE_LOCK, GNETEXTURE_LOCKSELECTED, GNETEXTURE_NOTMOVING, GNETEXTURE_NOTMOVINGSELECTED, and GUIVisualizationDetailSettings::lockIcon.
Referenced by GNEBusStop::drawGL(), GNEContainerStop::drawGL(), GNEChargingStation::drawGL(), GNEParkingArea::drawGL(), GNEVaporizer::drawGL(), GNERouteProbe::drawGL(), GNEDetectorE1::drawGL(), GNEDetectorEntryExit::drawGL(), GNEDetectorE3::drawGL(), GNEParkingSpace::drawGL(), GNEVariableSpeedSign::drawGL(), GNEDetectorE1Instant::drawGL(), GNERerouter::drawGL(), and GNEDetectorE2::drawGL().
Invalidated assignment operator.
void GNEAdditional::BlockIcon::setRotation | ( | GNELane * | additionalLane = nullptr | ) |
set Rotation of block Icon (must be called in updateGeometry() function)
Definition at line 400 of file GNEAdditional.cpp.
References GNELane::getLaneShape(), PositionVector::nearest_offset_to_point2D(), and PositionVector::rotationDegreeAtOffset().
Referenced by GNEBusStop::updateGeometry(), GNEContainerStop::updateGeometry(), GNEChargingStation::updateGeometry(), GNEParkingArea::updateGeometry(), GNEVaporizer::updateGeometry(), GNERouteProbe::updateGeometry(), GNEDetectorE3::updateGeometry(), GNEVariableSpeedSign::updateGeometry(), GNEAccess::updateGeometry(), GNERerouter::updateGeometry(), GNEDetectorE1::updateGeometry(), GNEDetectorEntryExit::updateGeometry(), GNEDetectorE1Instant::updateGeometry(), and GNEDetectorE2::updateGeometry().
|
private |
pointer to parent additional
Definition at line 328 of file GNEAdditional.h.
Position GNEAdditional::BlockIcon::offset |
The offSet of the block icon.
Definition at line 321 of file GNEAdditional.h.
Referenced by GNEVaporizer::updateGeometry(), GNERouteProbe::updateGeometry(), GNEDetectorE3::updateGeometry(), GNEVariableSpeedSign::updateGeometry(), GNEAccess::updateGeometry(), GNERerouter::updateGeometry(), GNEDetectorE1::updateGeometry(), GNEDetectorEntryExit::updateGeometry(), GNEDetectorE1Instant::updateGeometry(), and GNEDetectorE2::updateGeometry().
Position GNEAdditional::BlockIcon::position |
position of the block icon
Definition at line 318 of file GNEAdditional.h.
Referenced by GNEDetectorE2::drawGL(), GNEBusStop::updateGeometry(), GNEContainerStop::updateGeometry(), GNEChargingStation::updateGeometry(), GNEParkingArea::updateGeometry(), GNEVaporizer::updateGeometry(), GNERouteProbe::updateGeometry(), GNEDetectorE3::updateGeometry(), GNEVariableSpeedSign::updateGeometry(), GNEAccess::updateGeometry(), GNERerouter::updateGeometry(), GNEDetectorE1::updateGeometry(), GNEDetectorEntryExit::updateGeometry(), GNEDetectorE1Instant::updateGeometry(), and GNEDetectorE2::updateGeometry().
double GNEAdditional::BlockIcon::rotation |
The rotation of the block icon.
Definition at line 324 of file GNEAdditional.h.
Referenced by GNEBusStop::drawGL(), GNEContainerStop::drawGL(), GNEChargingStation::drawGL(), GNEParkingArea::drawGL(), GNEDetectorE1::drawGL(), GNEDetectorEntryExit::drawGL(), GNEDetectorE1Instant::drawGL(), and GNEDetectorE2::drawGL().