![]() |
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 | drawFrontDottedGeometry (DottedGeometryColor &dottedGeometryColor) const |
draw front inspected dottedShape More... | |
void | drawInspectedDottedGeometry (DottedGeometryColor &dottedGeometryColor) 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 187 of file GNEGeometry.h.
GNEGeometry::DottedGeometry::DottedGeometry | ( | ) |
constructor
Definition at line 335 of file GNEGeometry.cpp.
GNEGeometry::DottedGeometry::DottedGeometry | ( | const GUIVisualizationSettings & | s, |
PositionVector | shape, | ||
const bool | closeShape | ||
) |
constructor for shapes
Definition at line 344 of file GNEGeometry.cpp.
References calculateShapeRotationsAndLengths(), PositionVector::closePolygon(), GUIVisualizationSettings::dottedContourSettings, 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 365 of file GNEGeometry.cpp.
References calculateShapeRotationsAndLengths(), GUIVisualizationSettings::dottedContourSettings, myDottedGeometrySegments, and GUIVisualizationDottedContourSettings::segmentLength.
|
private |
calculate shape rotations and lengths
Definition at line 515 of file GNEGeometry.cpp.
References GNEGeometry::calculateLength(), and GNEGeometry::calculateRotation().
Referenced by DottedGeometry().
void GNEGeometry::DottedGeometry::drawFrontDottedGeometry | ( | DottedGeometryColor & | dottedGeometryColor | ) | const |
draw front inspected dottedShape
Definition at line 467 of file GNEGeometry.cpp.
References GLHelper::drawBoxLine(), GNEGeometry::DottedGeometryColor::getFrontColor(), and GLHelper::setColor().
Referenced by GNEGeometry::drawDottedContourClosedShape(), GNEGeometry::drawDottedContourEdge(), and GNEGeometry::drawDottedContourLane().
void GNEGeometry::DottedGeometry::drawInspectedDottedGeometry | ( | DottedGeometryColor & | dottedGeometryColor | ) | const |
draw inspected dottedShape
Definition at line 449 of file GNEGeometry.cpp.
References GLHelper::drawBoxLine(), GNEGeometry::DottedGeometryColor::getInspectedColor(), and GLHelper::setColor().
Referenced by GNEGeometry::drawDottedContourClosedShape(), GNEGeometry::drawDottedContourEdge(), GNEGeometry::drawDottedContourLane(), and GNEEdgeRelData::drawPartialGL().
double GNEGeometry::DottedGeometry::getWidth | ( | ) | const |
get width
Definition at line 494 of file GNEGeometry.cpp.
void GNEGeometry::DottedGeometry::invertOffset | ( | ) |
invert offset of all segments
Definition at line 506 of file GNEGeometry.cpp.
Referenced by GNEGeometry::drawDottedContourEdge(), GNEGeometry::drawDottedContourLane(), and GNEEdgeRelData::drawPartialGL().
void GNEGeometry::DottedGeometry::moveShapeToSide | ( | const double | value | ) |
move shape to side
Definition at line 485 of file GNEGeometry.cpp.
Referenced by GNEGeometry::drawDottedContourEdge(), GNEGeometry::drawDottedContourLane(), and GNEEdgeRelData::drawPartialGL().
|
privatedelete |
Invalidated assignment operator.
void GNEGeometry::DottedGeometry::setWidth | ( | const double | width | ) |
change default width
Definition at line 500 of file GNEGeometry.cpp.
Referenced by GNEGeometry::HierarchicalConnections::drawDottedConnection(), and GNEConnection::drawGL().
void GNEGeometry::DottedGeometry::updateDottedGeometry | ( | const GUIVisualizationSettings & | s, |
const GNELane * | lane | ||
) |
update DottedGeometry (using lane shape)
Definition at line 402 of file GNEGeometry.cpp.
References GUIVisualizationSettings::dottedContourSettings, GNELane::getLaneShape(), GUIVisualizationDottedContourSettings::segmentLength, and GUIVisualizationDottedContourSettings::segmentWidth.
Referenced by GNELane::updateGeometry().
void GNEGeometry::DottedGeometry::updateDottedGeometry | ( | const GUIVisualizationSettings & | s, |
PositionVector | shape, | ||
const bool | closeShape | ||
) |
update DottedGeometry (using shape)
Definition at line 421 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 254 of file GNEGeometry.h.
Referenced by DottedGeometry().
|
private |
geometry width
Definition at line 251 of file GNEGeometry.h.