![]() |
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 Attributes | |
GNEAdditional * | myAdditional |
pointer to additional parent More... | |
struct for pack all variables and functions related with Block Icon
Definition at line 339 of file GNEAdditional.h.
GNEAdditional::BlockIcon::BlockIcon | ( | GNEAdditional * | additional | ) |
constructor
Definition at line 496 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 518 of file GNEAdditional.cpp.
References GNEAttributeCarrier::TagProperties::canBlockMovement(), GUIVisualizationSettings::detailSettings, GUIVisualizationSettings::drawDetail(), GUIVisualizationSettings::drawForSelecting, GUITexturesHelper::drawTexturedBox(), GNEAdditional::drawUsingSelectColor(), GNEAttributeCarrier::getTagProperty(), GUITextureSubSys::getTexture(), GUIGlObject::getType(), GNETEXTURE_EMPTY, GNETEXTURE_EMPTYSELECTED, GNETEXTURE_LOCK, GNETEXTURE_LOCKSELECTED, GNETEXTURE_NOTMOVING, GNETEXTURE_NOTMOVINGSELECTED, GUIVisualizationDetailSettings::lockIcon, myAdditional, GNEAdditional::myBlockMovement, GNEAdditional::myViewNet, offset, position, rotation, GNEViewNet::showLockIcon(), Position::x(), and Position::y().
Referenced by GNEBusStop::drawGL(), GNEChargingStation::drawGL(), GNEContainerStop::drawGL(), GNEParkingArea::drawGL(), GNEVaporizer::drawGL(), GNERouteProbe::drawGL(), GNEDetectorE3::drawGL(), GNEParkingSpace::drawGL(), GNEDetectorE1::drawGL(), GNEDetectorEntryExit::drawGL(), GNEVariableSpeedSign::drawGL(), GNERerouter::drawGL(), GNEDetectorE1Instant::drawGL(), and GNEDetectorE2::drawGL().
void GNEAdditional::BlockIcon::setRotation | ( | GNELane * | additionalLane = nullptr | ) |
set Rotation of block Icon (must be called in updateGeometry() function)
Definition at line 502 of file GNEAdditional.cpp.
References GNENetElement::getGeometry(), GNEAdditional::getPositionInView(), PositionVector::length(), myAdditional, GNEAdditional::myGeometry, PositionVector::nearest_offset_to_point2D(), rotation, PositionVector::rotationDegreeAtOffset(), GNENetElement::NetElementGeometry::shape, and GNEAdditional::AdditionalGeometry::shape.
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 additional parent
Definition at line 361 of file GNEAdditional.h.
Referenced by drawIcon(), and setRotation().
Position GNEAdditional::BlockIcon::offset |
The offSet of the block icon.
Definition at line 354 of file GNEAdditional.h.
Referenced by drawIcon(), 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 351 of file GNEAdditional.h.
Referenced by GNEDetectorE2::drawGL(), drawIcon(), GNEChargingStation::updateGeometry(), GNEContainerStop::updateGeometry(), GNEBusStop::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 357 of file GNEAdditional.h.
Referenced by GNEBusStop::drawGL(), GNEChargingStation::drawGL(), GNEContainerStop::drawGL(), GNEParkingArea::drawGL(), GNEDetectorE1::drawGL(), GNEDetectorEntryExit::drawGL(), GNEDetectorE1Instant::drawGL(), GNEDetectorE2::drawGL(), drawIcon(), and setRotation().