![]() |
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 | draw (double size=0.5) const |
draw lock icon More... | |
void | setRotation (GNELane *additionalLane=nullptr) |
set Rotation of block Icon (must be called in updateGeometry(bool updateGrid) 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 361 of file GNEAdditional.h.
GNEAdditional::BlockIcon::BlockIcon | ( | GNEAdditional * | additional | ) |
constructor
Definition at line 770 of file GNEAdditional.cpp.
void GNEAdditional::BlockIcon::draw | ( | double | size = 0.5 | ) | const |
draw lock icon
Definition at line 792 of file GNEAdditional.cpp.
References GNEAttributeCarrier::TagProperties::canBlockMovement(), GUITexturesHelper::drawTexturedBox(), GNEAttributeCarrier::getTagProperty(), GUITextureSubSys::getTexture(), GUIGlObject::getType(), GNETEXTURE_EMPTY, GNETEXTURE_EMPTYSELECTED, GNETEXTURE_LOCK, GNETEXTURE_LOCKSELECTED, GNETEXTURE_NOTMOVING, GNETEXTURE_NOTMOVINGSELECTED, myAdditional, GNEAdditional::myBlockMovement, GNEAttributeCarrier::mySelected, 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(), GNEVariableSpeedSign::drawGL(), GNERerouter::drawGL(), GNEDetectorEntry::drawGL(), GNEDetectorExit::drawGL(), GNEDetectorE1::drawGL(), GNEDetectorE1Instant::drawGL(), and GNEDetectorE2::drawGL().
void GNEAdditional::BlockIcon::setRotation | ( | GNELane * | additionalLane = nullptr | ) |
set Rotation of block Icon (must be called in updateGeometry(bool updateGrid) function)
Definition at line 776 of file GNEAdditional.cpp.
References GNEAdditional::getPositionInView(), GNELane::getShape(), PositionVector::length(), myAdditional, GNEAdditional::myGeometry, PositionVector::nearest_offset_to_point2D(), rotation, PositionVector::rotationDegreeAtOffset(), and GNEAdditional::AdditionalGeometry::shape.
Referenced by GNEBusStop::updateGeometry(), GNEContainerStop::updateGeometry(), GNEChargingStation::updateGeometry(), GNEParkingArea::updateGeometry(), GNEVaporizer::updateGeometry(), GNERouteProbe::updateGeometry(), GNEDetectorE3::updateGeometry(), GNEVariableSpeedSign::updateGeometry(), GNERerouter::updateGeometry(), GNEAccess::updateGeometry(), GNEDetectorEntry::updateGeometry(), GNEDetectorExit::updateGeometry(), GNEDetectorE1::updateGeometry(), GNEDetectorE1Instant::updateGeometry(), and GNEDetectorE2::updateGeometry().
|
private |
pointer to additional parent
Definition at line 373 of file GNEAdditional.h.
Referenced by draw(), and setRotation().
Position GNEAdditional::BlockIcon::offset |
The offSet of the block icon.
Definition at line 380 of file GNEAdditional.h.
Referenced by draw(), GNEVaporizer::updateGeometry(), GNERouteProbe::updateGeometry(), GNEDetectorE3::updateGeometry(), GNEVariableSpeedSign::updateGeometry(), GNEAccess::updateGeometry(), GNERerouter::updateGeometry(), GNEDetectorE1::updateGeometry(), GNEDetectorE1Instant::updateGeometry(), and GNEDetectorE2::updateGeometry().
Position GNEAdditional::BlockIcon::position |
position of the block icon
Definition at line 377 of file GNEAdditional.h.
Referenced by draw(), GNEDetectorE2::drawGL(), GNEChargingStation::updateGeometry(), GNEContainerStop::updateGeometry(), GNEBusStop::updateGeometry(), GNEParkingArea::updateGeometry(), GNEVaporizer::updateGeometry(), GNERouteProbe::updateGeometry(), GNEDetectorE3::updateGeometry(), GNEVariableSpeedSign::updateGeometry(), GNEAccess::updateGeometry(), GNERerouter::updateGeometry(), GNEDetectorE1::updateGeometry(), GNEDetectorEntry::updateGeometry(), GNEDetectorExit::updateGeometry(), GNEDetectorE1Instant::updateGeometry(), and GNEDetectorE2::updateGeometry().
double GNEAdditional::BlockIcon::rotation |
The rotation of the block icon.
Definition at line 383 of file GNEAdditional.h.
Referenced by draw(), GNEChargingStation::drawGL(), GNEContainerStop::drawGL(), GNEBusStop::drawGL(), GNEParkingArea::drawGL(), GNEDetectorEntry::drawGL(), GNEDetectorExit::drawGL(), GNEDetectorE1::drawGL(), GNEDetectorE1Instant::drawGL(), GNEDetectorE2::drawGL(), and setRotation().