![]() |
Eclipse SUMO - Simulation of Urban MObility
|
#include <GUIDottedGeometry.h>
Data Structures | |
| class | DottedGeometryColor |
| class for pack all variables related with GUIDottedGeometry color More... | |
| struct | Segment |
| dotted geometry segment More... | |
Public Types | |
| enum class | DottedContourType { INSPECT , REMOVE , SELECT , MOVE , FRONT , OVER , FROM , TO , RELATED , WALKINGAREA , NOTHING } |
Public Member Functions | |
| void | clearDottedGeometry () |
| clear dotted geometry | |
| void | drawDottedGeometry (const GUIVisualizationSettings &s, GUIDottedGeometry::DottedContourType type, DottedGeometryColor &dottedGeometryColor, const double lineWidth, const bool addOffset) const |
| draw dotted geometry | |
| void | drawInnenGeometry (const double lineWidth) const |
| draw innen geometry | |
| Position | getBackPosition () const |
| get back position | |
| Position | getFrontPosition () const |
| get front position | |
| const PositionVector & | getUnresampledShape () const |
| get simple shape (the shape without resampling) | |
| GUIDottedGeometry () | |
| constructor | |
| GUIDottedGeometry (const GUIVisualizationSettings &s, const GUIVisualizationSettings::Detail d, PositionVector shape, const bool closeShape) | |
| constructor for shapes | |
| void | moveShapeToSide (const double value) |
| move shape to side | |
| void | updateDottedGeometry (const GUIVisualizationSettings &s, const GUIVisualizationSettings::Detail d, const PositionVector &laneShape) |
| update GUIDottedGeometry (using lane shape) | |
| void | updateDottedGeometry (const GUIVisualizationSettings &s, const GUIVisualizationSettings::Detail d, PositionVector shape, const bool closeShape) |
| update GUIDottedGeometry (using shape) | |
Private Member Functions | |
| void | calculateShapeRotationsAndLengths () |
| calculate shape rotations and lengths | |
Private Attributes | |
| std::vector< GUIDottedGeometry::Segment > | myDottedGeometrySegments |
| dotted element shape (note: It's centered in 0,0 due scaling) | |
| PositionVector | myUnresampledShape |
| shape without resampling | |
Definition at line 30 of file GUIDottedGeometry.h.
|
strong |
| Enumerator | |
|---|---|
| INSPECT | |
| REMOVE | |
| SELECT | |
| MOVE | |
| FRONT | |
| OVER | |
| FROM | |
| TO | |
| RELATED | |
| WALKINGAREA | |
| NOTHING | |
Definition at line 34 of file GUIDottedGeometry.h.
| GUIDottedGeometry::GUIDottedGeometry | ( | ) |
constructor
Definition at line 156 of file GUIDottedGeometry.cpp.
| GUIDottedGeometry::GUIDottedGeometry | ( | const GUIVisualizationSettings & | s, |
| const GUIVisualizationSettings::Detail | d, | ||
| PositionVector | shape, | ||
| const bool | closeShape | ||
| ) |
constructor for shapes
Definition at line 159 of file GUIDottedGeometry.cpp.
References calculateShapeRotationsAndLengths(), PositionVector::closePolygon(), GUIVisualizationSettings::dottedContourSettings, GUIVisualizationSettings::DottedContoursResampled, PositionVector::length2D(), MAXIMUM_DOTTEDGEOMETRYLENGTH, myDottedGeometrySegments, myUnresampledShape, and GUIVisualizationDottedContourSettings::segmentLength.
|
private |
calculate shape rotations and lengths
Definition at line 317 of file GUIDottedGeometry.cpp.
References GUIGeometry::calculateLength(), GUIGeometry::calculateRotation(), and myDottedGeometrySegments.
Referenced by GUIDottedGeometry(), updateDottedGeometry(), and updateDottedGeometry().
| void GUIDottedGeometry::clearDottedGeometry | ( | ) |
clear dotted geometry
Definition at line 310 of file GUIDottedGeometry.cpp.
References myDottedGeometrySegments, and myUnresampledShape.
| void GUIDottedGeometry::drawDottedGeometry | ( | const GUIVisualizationSettings & | s, |
| GUIDottedGeometry::DottedContourType | type, | ||
| DottedGeometryColor & | dottedGeometryColor, | ||
| const double | lineWidth, | ||
| const bool | addOffset | ||
| ) | const |
draw dotted geometry
Definition at line 241 of file GUIDottedGeometry.cpp.
References GLHelper::drawBoxLine(), GUIDottedGeometry::DottedGeometryColor::getColor(), myDottedGeometrySegments, and GLHelper::setColor().
| void GUIDottedGeometry::drawInnenGeometry | ( | const double | lineWidth | ) | const |
draw innen geometry
Definition at line 261 of file GUIDottedGeometry.cpp.
References GLHelper::drawBoxLine(), and myDottedGeometrySegments.
| Position GUIDottedGeometry::getBackPosition | ( | ) | const |
get back position
Definition at line 294 of file GUIDottedGeometry.cpp.
References Position::INVALID, and myUnresampledShape.
| Position GUIDottedGeometry::getFrontPosition | ( | ) | const |
get front position
Definition at line 284 of file GUIDottedGeometry.cpp.
References Position::INVALID, and myUnresampledShape.
| const PositionVector & GUIDottedGeometry::getUnresampledShape | ( | ) | const |
get simple shape (the shape without resampling)
Definition at line 304 of file GUIDottedGeometry.cpp.
References myUnresampledShape.
| void GUIDottedGeometry::moveShapeToSide | ( | const double | value | ) |
move shape to side
Definition at line 273 of file GUIDottedGeometry.cpp.
References PositionVector::move2side(), myDottedGeometrySegments, and myUnresampledShape.
| void GUIDottedGeometry::updateDottedGeometry | ( | const GUIVisualizationSettings & | s, |
| const GUIVisualizationSettings::Detail | d, | ||
| const PositionVector & | laneShape | ||
| ) |
update GUIDottedGeometry (using lane shape)
Definition at line 191 of file GUIDottedGeometry.cpp.
References calculateShapeRotationsAndLengths(), GUIVisualizationSettings::dottedContourSettings, GUIVisualizationSettings::DottedContoursResampled, myDottedGeometrySegments, myUnresampledShape, PositionVector::resample(), and GUIVisualizationDottedContourSettings::segmentLength.
| void GUIDottedGeometry::updateDottedGeometry | ( | const GUIVisualizationSettings & | s, |
| const GUIVisualizationSettings::Detail | d, | ||
| PositionVector | shape, | ||
| const bool | closeShape | ||
| ) |
update GUIDottedGeometry (using shape)
Definition at line 213 of file GUIDottedGeometry.cpp.
References calculateShapeRotationsAndLengths(), PositionVector::closePolygon(), GUIVisualizationSettings::dottedContourSettings, GUIVisualizationSettings::DottedContoursResampled, myDottedGeometrySegments, myUnresampledShape, and GUIVisualizationDottedContourSettings::segmentLength.
|
private |
dotted element shape (note: It's centered in 0,0 due scaling)
Definition at line 136 of file GUIDottedGeometry.h.
Referenced by calculateShapeRotationsAndLengths(), clearDottedGeometry(), drawDottedGeometry(), drawInnenGeometry(), GUIDottedGeometry(), moveShapeToSide(), updateDottedGeometry(), and updateDottedGeometry().
|
private |
shape without resampling
Definition at line 133 of file GUIDottedGeometry.h.
Referenced by clearDottedGeometry(), getBackPosition(), getFrontPosition(), getUnresampledShape(), GUIDottedGeometry(), moveShapeToSide(), updateDottedGeometry(), and updateDottedGeometry().