![]() |
Eclipse SUMO - Simulation of Urban MObility
|
struct for pack all variables related with DottedGeometry of stop More...
#include <GNEGeometry.h>
Public Member Functions | |
| DottedGeometry () | |
| constructor More... | |
| const Position & | getCentroid () const |
| get Centroid More... | |
| double | getRotation () const |
| get rotation More... | |
| const PositionVector & | getShape () const |
| The shape of the additional element. More... | |
| const std::vector< RGBColor > & | getShapeColors () const |
| The colors of the single shape parts. More... | |
| const std::vector< double > & | getShapeLengths () const |
| The lengths of the single shape parts. More... | |
| const std::vector< double > & | getShapeRotations () const |
| The rotations of the single shape parts. More... | |
| bool | isGeometryDeprecated () const |
| check if geometry is deprecated More... | |
| void | markDottedGeometryDeprecated () |
| mark dotted geometry deprecated More... | |
| void | updateDottedGeometry (const GUIVisualizationSettings &s, const PositionVector &contourShape) |
| update DottedGeometry (using an existent shape) More... | |
| void | updateDottedGeometry (const GUIVisualizationSettings &s, const PositionVector &lineShape, const double width) |
| update DottedGeometry (using an line shape and a width) More... | |
| void | updateDottedGeometry (const GUIVisualizationSettings &s, const Position &position, const double rotation, const double width, const double height) |
| update DottedGeometry (using a position, rotation, width and height) More... | |
Private Member Functions | |
| void | calculateShapeRotationsAndLengths () |
| calculate shape rotations and lengths More... | |
| DottedGeometry & | operator= (const DottedGeometry &other)=delete |
| Invalidated assignment operator. More... | |
Private Attributes | |
| Position | myCentroid |
| shape's centroid More... | |
| bool | myDottedGeometryDeprecated |
| flag to mark dotted geometry depreciated More... | |
| double | myRotation |
| shape's rotation (only used in certain dotted contours) More... | |
| PositionVector | myShape |
| dotted element shape (note: It's centered in 0,0 due scaling) More... | |
| std::vector< RGBColor > | myShapeColors |
| The colors of the dotted shape. More... | |
| std::vector< double > | myShapeLengths |
| The lengths of the dotted shape. More... | |
| std::vector< double > | myShapeRotations |
| The rotations of the dotted shape. More... | |
struct for pack all variables related with DottedGeometry of stop
Definition at line 156 of file GNEGeometry.h.
| GNEGeometry::DottedGeometry::DottedGeometry | ( | ) |
constructor
Definition at line 274 of file GNEGeometry.cpp.
|
private |
calculate shape rotations and lengths
Definition at line 403 of file GNEGeometry.cpp.
References GNEGeometry::calculateLength(), GNEGeometry::calculateRotation(), myShape, myShapeLengths, and myShapeRotations.
Referenced by updateDottedGeometry().
| const Position & GNEGeometry::DottedGeometry::getCentroid | ( | ) | const |
get Centroid
Definition at line 367 of file GNEGeometry.cpp.
References myCentroid.
Referenced by GNEGeometry::drawShapeDottedContour().
| double GNEGeometry::DottedGeometry::getRotation | ( | ) | const |
get rotation
Definition at line 373 of file GNEGeometry.cpp.
References myRotation.
Referenced by GNEGeometry::drawShapeDottedContour().
| const PositionVector & GNEGeometry::DottedGeometry::getShape | ( | ) | const |
The shape of the additional element.
Definition at line 379 of file GNEGeometry.cpp.
References myShape.
Referenced by GNEGeometry::drawShapeDottedContour().
| const std::vector< RGBColor > & GNEGeometry::DottedGeometry::getShapeColors | ( | ) | const |
The colors of the single shape parts.
Definition at line 397 of file GNEGeometry.cpp.
References myShapeColors.
Referenced by GNEGeometry::drawShapeDottedContour().
| const std::vector< double > & GNEGeometry::DottedGeometry::getShapeLengths | ( | ) | const |
The lengths of the single shape parts.
Definition at line 391 of file GNEGeometry.cpp.
References myShapeLengths.
Referenced by GNEGeometry::drawShapeDottedContour().
| const std::vector< double > & GNEGeometry::DottedGeometry::getShapeRotations | ( | ) | const |
The rotations of the single shape parts.
Definition at line 385 of file GNEGeometry.cpp.
References myShapeRotations.
Referenced by GNEGeometry::drawShapeDottedContour().
| bool GNEGeometry::DottedGeometry::isGeometryDeprecated | ( | ) | const |
check if geometry is deprecated
Definition at line 361 of file GNEGeometry.cpp.
References myDottedGeometryDeprecated.
Referenced by GNEViewNet::setDottedAC().
| void GNEGeometry::DottedGeometry::markDottedGeometryDeprecated | ( | ) |
mark dotted geometry deprecated
Definition at line 355 of file GNEGeometry.cpp.
References myDottedGeometryDeprecated.
Referenced by GNEParkingSpace::setAttribute(), GNEPoly::setAttribute(), GNEConnection::updateGeometry(), GNEBusStop::updateGeometry(), GNEChargingStation::updateGeometry(), GNEContainerStop::updateGeometry(), GNEParkingArea::updateGeometry(), GNEVaporizer::updateGeometry(), GNECrossing::updateGeometry(), GNERouteProbe::updateGeometry(), GNEDetectorE3::updateGeometry(), GNEVariableSpeedSign::updateGeometry(), GNEJunction::updateGeometry(), GNEAccess::updateGeometry(), GNELane::updateGeometry(), GNERerouter::updateGeometry(), GNEEdge::updateGeometry(), GNEDetectorE1::updateGeometry(), GNEDetectorEntryExit::updateGeometry(), GNEDetectorE1Instant::updateGeometry(), GNECalibrator::updateGeometry(), GNEDetectorE2::updateGeometry(), GNEPOI::updateGeometry(), and GNEJunction::updateGeometryAfterNetbuild().
|
privatedelete |
Invalidated assignment operator.
| void GNEGeometry::DottedGeometry::updateDottedGeometry | ( | const GUIVisualizationSettings & | s, |
| const PositionVector & | contourShape | ||
| ) |
update DottedGeometry (using an existent shape)
Definition at line 281 of file GNEGeometry.cpp.
References calculateShapeRotationsAndLengths(), GUIVisualizationSettings::dottedContourSettings, GUIVisualizationDottedContourSettings::firstColor, PositionVector::getCentroid(), myCentroid, myDottedGeometryDeprecated, myRotation, myShape, myShapeColors, PositionVector::resample(), GUIVisualizationDottedContourSettings::secondColor, GUIVisualizationDottedContourSettings::segmentLength, and PositionVector::sub().
Referenced by GNEBusStop::updateDottedContour(), GNEChargingStation::updateDottedContour(), GNEContainerStop::updateDottedContour(), GNEVaporizer::updateDottedContour(), GNEParkingArea::updateDottedContour(), GNETAZ::updateDottedContour(), GNERouteProbe::updateDottedContour(), GNEDetectorE3::updateDottedContour(), GNEParkingSpace::updateDottedContour(), GNEVariableSpeedSign::updateDottedContour(), GNERerouter::updateDottedContour(), GNEDetectorE1::updateDottedContour(), GNEDetectorEntryExit::updateDottedContour(), GNEDetectorE1Instant::updateDottedContour(), GNEDetectorE2::updateDottedContour(), GNEPoly::updateDottedContour(), GNEPOI::updateDottedContour(), GNECrossing::updateDottedContour(), GNEConnection::updateDottedContour(), GNENetworkElement::updateDottedGeometry(), and updateDottedGeometry().
| void GNEGeometry::DottedGeometry::updateDottedGeometry | ( | const GUIVisualizationSettings & | s, |
| const PositionVector & | lineShape, | ||
| const double | width | ||
| ) |
update DottedGeometry (using an line shape and a width)
Definition at line 311 of file GNEGeometry.cpp.
References PositionVector::closePolygon(), PositionVector::move2side(), PositionVector::reverse(), and updateDottedGeometry().
| void GNEGeometry::DottedGeometry::updateDottedGeometry | ( | const GUIVisualizationSettings & | s, |
| const Position & | position, | ||
| const double | rotation, | ||
| const double | width, | ||
| const double | height | ||
| ) |
update DottedGeometry (using a position, rotation, width and height)
Definition at line 335 of file GNEGeometry.cpp.
References PositionVector::closePolygon(), myRotation, and updateDottedGeometry().
|
private |
shape's centroid
Definition at line 198 of file GNEGeometry.h.
Referenced by getCentroid(), and updateDottedGeometry().
|
private |
flag to mark dotted geometry depreciated
Definition at line 216 of file GNEGeometry.h.
Referenced by isGeometryDeprecated(), markDottedGeometryDeprecated(), and updateDottedGeometry().
|
private |
shape's rotation (only used in certain dotted contours)
Definition at line 201 of file GNEGeometry.h.
Referenced by getRotation(), and updateDottedGeometry().
|
private |
dotted element shape (note: It's centered in 0,0 due scaling)
Definition at line 204 of file GNEGeometry.h.
Referenced by calculateShapeRotationsAndLengths(), getShape(), and updateDottedGeometry().
|
private |
The colors of the dotted shape.
Definition at line 213 of file GNEGeometry.h.
Referenced by getShapeColors(), and updateDottedGeometry().
|
private |
The lengths of the dotted shape.
Definition at line 210 of file GNEGeometry.h.
Referenced by calculateShapeRotationsAndLengths(), and getShapeLengths().
|
private |
The rotations of the dotted shape.
Definition at line 207 of file GNEGeometry.h.
Referenced by calculateShapeRotationsAndLengths(), and getShapeRotations().