![]() |
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... | |
| const Position & | getPosition () const |
| get position of the block icon More... | |
| double | getRotation () const |
| get rotation of the block icon More... | |
| void | setOffset (const double x, const double y) |
| set offset More... | |
| void | updatePositionAndRotation () |
| update position and rotation using additional geometry More... | |
Private Member Functions | |
| BlockIcon & | operator= (const BlockIcon &other)=delete |
| Invalidated assignment operator. More... | |
Private Attributes | |
| const GNEAdditional * | myAdditional |
| pointer to parent additional More... | |
| Position | myOffset |
| The offSet of the block icon. More... | |
| Position | myPosition |
| position of the block icon More... | |
| double | myRotation |
| The rotation of the block icon. More... | |
struct for pack all variables and functions related with Block Icon
Definition at line 303 of file GNEAdditional.h.
| GNEAdditional::BlockIcon::BlockIcon | ( | GNEAdditional * | additional | ) |
constructor
Definition at line 488 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 516 of file GNEAdditional.cpp.
References GNETagProperties::canBlockMovement(), GUIVisualizationSettings::detailSettings, GUIVisualizationSettings::drawDetail(), GUIVisualizationSettings::drawForPositionSelection, GUIVisualizationSettings::drawForRectangleSelection, GUITexturesHelper::drawTexturedBox(), GNEAttributeCarrier::drawUsingSelectColor(), GNEAttributeCarrier::getTagProperty(), GUITextureSubSys::getTexture(), GNENet::getViewNet(), GNETEXTURE_EMPTY, GNETEXTURE_EMPTYSELECTED, GNETEXTURE_LOCK, GNETEXTURE_LOCKSELECTED, GNETEXTURE_NOTMOVING, GNETEXTURE_NOTMOVINGSELECTED, Position::INVALID, GUIVisualizationDetailSettings::lockIcon, myAdditional, GNEAdditional::myBlockMovement, GNEAttributeCarrier::myNet, myOffset, myPosition, myRotation, GNEViewNet::showLockIcon(), Position::x(), and Position::y().
Referenced by GNEBusStop::drawGL(), GNEChargingStation::drawGL(), GNEContainerStop::drawGL(), GNEParkingArea::drawGL(), GNEDetectorE1::drawGL(), GNEDetectorEntryExit::drawGL(), GNEDetectorE3::drawGL(), GNEParkingSpace::drawGL(), GNEVariableSpeedSign::drawGL(), GNEDetectorE1Instant::drawGL(), GNERerouter::drawGL(), and GNEDetectorE2::drawGL().
| const Position & GNEAdditional::BlockIcon::getPosition | ( | ) | const |
get position of the block icon
Definition at line 569 of file GNEAdditional.cpp.
References myPosition.
Referenced by GNEAdditional::drawAdditionalName(), GNEBusStop::drawConnectionAccess(), and GNEDetector::drawDetectorLogo().
| double GNEAdditional::BlockIcon::getRotation | ( | ) | const |
get rotation of the block icon
Definition at line 575 of file GNEAdditional.cpp.
References myRotation.
Referenced by GNEAdditional::drawAdditionalName(), GNEDetector::drawDetectorLogo(), GNEDetector::drawE1Shape(), GNEDetectorEntryExit::drawGL(), GNEStoppingPlace::drawLines(), and GNEStoppingPlace::drawSign().
Invalidated assignment operator.
| void GNEAdditional::BlockIcon::setOffset | ( | const double | x, |
| const double | y | ||
| ) |
set offset
Definition at line 509 of file GNEAdditional.cpp.
References myOffset, Position::setx(), and Position::sety().
Referenced by GNEDetectorE3::updateGeometry(), GNEVariableSpeedSign::updateGeometry(), GNERerouter::updateGeometry(), GNEDetectorE1::updateGeometry(), GNEDetectorEntryExit::updateGeometry(), GNEDetectorE1Instant::updateGeometry(), and GNEDetectorE2::updateGeometry().
| void GNEAdditional::BlockIcon::updatePositionAndRotation | ( | ) |
update position and rotation using additional geometry
Definition at line 494 of file GNEAdditional.cpp.
References GNEAdditional::getAdditionalGeometry(), GNEGeometry::Geometry::getPosition(), GNEGeometry::Geometry::getRotation(), GNEGeometry::Geometry::getShape(), PositionVector::length2D(), myAdditional, myPosition, myRotation, PositionVector::positionAtOffset2D(), and PositionVector::rotationDegreeAtOffset().
Referenced by GNEBusStop::updateGeometry(), GNEContainerStop::updateGeometry(), GNEChargingStation::updateGeometry(), GNEParkingArea::updateGeometry(), GNEDetectorE3::updateGeometry(), GNEVariableSpeedSign::updateGeometry(), GNERerouter::updateGeometry(), GNEAccess::updateGeometry(), GNEDetectorE1::updateGeometry(), GNEDetectorEntryExit::updateGeometry(), GNEDetectorE1Instant::updateGeometry(), and GNEDetectorE2::updateGeometry().
|
private |
pointer to parent additional
Definition at line 324 of file GNEAdditional.h.
Referenced by drawIcon(), and updatePositionAndRotation().
|
private |
The offSet of the block icon.
Definition at line 333 of file GNEAdditional.h.
Referenced by drawIcon(), and setOffset().
|
private |
position of the block icon
Definition at line 327 of file GNEAdditional.h.
Referenced by drawIcon(), getPosition(), and updatePositionAndRotation().
|
private |
The rotation of the block icon.
Definition at line 330 of file GNEAdditional.h.
Referenced by drawIcon(), getRotation(), and updatePositionAndRotation().