![]() |
Eclipse SUMO - Simulation of Urban MObility
|
class for pack all variables related with DottedGeometry More...
#include <GNEGeometry.h>
Data Structures | |
| struct | Segment |
| dotted geometry segment More... | |
Public Member Functions | |
| DottedGeometry () | |
| constructor More... | |
| DottedGeometry (const GUIVisualizationSettings &s, const DottedGeometry &topDottedGeometry, const bool drawFirstExtrem, const DottedGeometry &botDottedGeometry, const bool drawLastExtrem) | |
| constructor for extremes More... | |
| DottedGeometry (const GUIVisualizationSettings &s, PositionVector shape, const bool closeShape) | |
| constructor for shapes More... | |
| void | drawDottedGeometry (DottedGeometryColor &dottedGeometryColor, GNEGeometry::DottedContourType type, const double customWidth=-1) const |
| draw inspected dottedShape More... | |
| double | getWidth () const |
| get width More... | |
| void | invertOffset () |
| invert offset of all segments More... | |
| void | moveShapeToSide (const double value) |
| move shape to side More... | |
| void | setWidth (const double width) |
| change default width More... | |
| void | updateDottedGeometry (const GUIVisualizationSettings &s, const GNELane *lane) |
| update DottedGeometry (using lane shape) More... | |
| void | updateDottedGeometry (const GUIVisualizationSettings &s, PositionVector shape, const bool closeShape) |
| update DottedGeometry (using shape) More... | |
Private Member Functions | |
| void | calculateShapeRotationsAndLengths () |
| calculate shape rotations and lengths More... | |
| DottedGeometry & | operator= (const DottedGeometry &other)=delete |
| Invalidated assignment operator. More... | |
Private Attributes | |
| std::vector< DottedGeometry::Segment > | myDottedGeometrySegments |
| dotted element shape (note: It's centered in 0,0 due scaling) More... | |
| double | myWidth |
| geometry width More... | |
class for pack all variables related with DottedGeometry
Definition at line 152 of file GNEGeometry.h.
| GNEGeometry::DottedGeometry::DottedGeometry | ( | ) |
constructor
Definition at line 324 of file GNEGeometry.cpp.
| GNEGeometry::DottedGeometry::DottedGeometry | ( | const GUIVisualizationSettings & | s, |
| PositionVector | shape, | ||
| const bool | closeShape | ||
| ) |
constructor for shapes
Definition at line 329 of file GNEGeometry.cpp.
References calculateShapeRotationsAndLengths(), PositionVector::closePolygon(), GUIVisualizationSettings::dottedContourSettings, PositionVector::length2D(), MAXIMUM_DOTTEDGEOMETRYLENGTH, myDottedGeometrySegments, and GUIVisualizationDottedContourSettings::segmentLength.
| GNEGeometry::DottedGeometry::DottedGeometry | ( | const GUIVisualizationSettings & | s, |
| const DottedGeometry & | topDottedGeometry, | ||
| const bool | drawFirstExtrem, | ||
| const DottedGeometry & | botDottedGeometry, | ||
| const bool | drawLastExtrem | ||
| ) |
constructor for extremes
Definition at line 355 of file GNEGeometry.cpp.
References calculateShapeRotationsAndLengths(), GUIVisualizationSettings::dottedContourSettings, myDottedGeometrySegments, and GUIVisualizationDottedContourSettings::segmentLength.
|
private |
calculate shape rotations and lengths
Definition at line 483 of file GNEGeometry.cpp.
References GNEGeometry::calculateLength(), and GNEGeometry::calculateRotation().
Referenced by DottedGeometry().
| void GNEGeometry::DottedGeometry::drawDottedGeometry | ( | DottedGeometryColor & | dottedGeometryColor, |
| GNEGeometry::DottedContourType | type, | ||
| const double | customWidth = -1 |
||
| ) | const |
draw inspected dottedShape
Definition at line 436 of file GNEGeometry.cpp.
References GLHelper::drawBoxLine(), GNEGeometry::DottedGeometryColor::getColor(), and GLHelper::setColor().
Referenced by GNEGeometry::drawDottedContourClosedShape(), GNEGeometry::drawDottedContourEdge(), GNEGeometry::drawDottedContourShape(), and GNEEdgeRelData::drawPartialGL().
| double GNEGeometry::DottedGeometry::getWidth | ( | ) | const |
get width
Definition at line 462 of file GNEGeometry.cpp.
| void GNEGeometry::DottedGeometry::invertOffset | ( | ) |
invert offset of all segments
Definition at line 474 of file GNEGeometry.cpp.
Referenced by GNEGeometry::drawDottedContourEdge(), GNEGeometry::drawDottedContourShape(), and GNEEdgeRelData::drawPartialGL().
| void GNEGeometry::DottedGeometry::moveShapeToSide | ( | const double | value | ) |
move shape to side
Definition at line 453 of file GNEGeometry.cpp.
Referenced by GNEGeometry::drawDottedContourEdge(), GNEGeometry::drawDottedContourShape(), and GNEEdgeRelData::drawPartialGL().
|
privatedelete |
Invalidated assignment operator.
| void GNEGeometry::DottedGeometry::setWidth | ( | const double | width | ) |
change default width
Definition at line 468 of file GNEGeometry.cpp.
| void GNEGeometry::DottedGeometry::updateDottedGeometry | ( | const GUIVisualizationSettings & | s, |
| const GNELane * | lane | ||
| ) |
update DottedGeometry (using lane shape)
Definition at line 392 of file GNEGeometry.cpp.
References GUIVisualizationSettings::dottedContourSettings, GNELane::getLaneShape(), GUIVisualizationDottedContourSettings::segmentLength, and GUIVisualizationDottedContourSettings::segmentWidth.
| void GNEGeometry::DottedGeometry::updateDottedGeometry | ( | const GUIVisualizationSettings & | s, |
| PositionVector | shape, | ||
| const bool | closeShape | ||
| ) |
update DottedGeometry (using shape)
Definition at line 411 of file GNEGeometry.cpp.
References PositionVector::closePolygon(), GUIVisualizationSettings::dottedContourSettings, GUIVisualizationDottedContourSettings::segmentLength, and GUIVisualizationDottedContourSettings::segmentWidth.
|
private |
dotted element shape (note: It's centered in 0,0 due scaling)
Definition at line 216 of file GNEGeometry.h.
Referenced by DottedGeometry().
|
private |
geometry width
Definition at line 213 of file GNEGeometry.h.