Eclipse SUMO - Simulation of Urban MObility
|
#include <GNEContour.h>
Public Member Functions | |
void | clearContour () const |
void clear contour | |
Boundary | getContourBoundary () const |
get contour boundary | |
GNEContour () | |
Constructor. | |
~GNEContour () | |
destructor | |
void | calculateContourClosedShape (const GUIVisualizationSettings &s, const GUIVisualizationSettings::Detail d, const GUIGlObject *glObject, const PositionVector &shape, const double layer, const double scale, const GUIGlObject *boundaryParent, const bool addToSelectedObjects=true) const |
calculate contours | |
void | calculateContourExtrudedShape (const GUIVisualizationSettings &s, const GUIVisualizationSettings::Detail d, const GUIGlObject *glObject, const PositionVector &shape, const double layer, const double extrusionWidth, const double scale, const bool closeFirstExtrem, const bool closeLastExtrem, const double offset, const GNESegment *segment, const GUIGlObject *boundaryParent, const bool addToSelectedObjects=true) const |
calculate contour extruded (used in elements formed by a central shape) | |
void | calculateContourRectangleShape (const GUIVisualizationSettings &s, const GUIVisualizationSettings::Detail d, const GUIGlObject *glObject, const Position &pos, const double width, const double height, const double layer, const double offsetX, const double offsetY, const double rot, const double scale, const GUIGlObject *boundaryParent) const |
calculate contour (for rectangled elements) | |
void | calculateContourCircleShape (const GUIVisualizationSettings &s, const GUIVisualizationSettings::Detail d, const GUIGlObject *glObject, const Position &pos, double radius, const double layer, const double scale, const GUIGlObject *boundaryParent) const |
calculate contour (circle elements) | |
void | calculateContourEdge (const GUIVisualizationSettings &s, const GUIVisualizationSettings::Detail d, const GNEEdge *edge, const GUIGlObject *elementToRegister, const double layer, const bool closeFirstExtrem, const bool closeLastExtrem) const |
calculate contour edge | |
void | calculateContourEdges (const GUIVisualizationSettings &s, const GUIVisualizationSettings::Detail d, const GNEEdge *fromEdge, const GNEEdge *toEdge) const |
calculate contour between two consecutive edges | |
void | calculateContourFirstGeometryPoint (const GUIVisualizationSettings &s, const GUIVisualizationSettings::Detail d, const GUIGlObject *glObject, const PositionVector &shape, const double layer, const double radius, const double scale) const |
calculate contour for first geometry point | |
void | calculateContourLastGeometryPoint (const GUIVisualizationSettings &s, const GUIVisualizationSettings::Detail d, const GUIGlObject *glObject, const PositionVector &shape, const double layer, const double radius, const double scale) const |
calculate contour for last geometry point | |
void | calculateContourMiddleGeometryPoints (const GUIVisualizationSettings &s, const GUIVisualizationSettings::Detail d, const GUIGlObject *glObject, const PositionVector &shape, const double layer, const double radius, const double scale) const |
calculate contour for middle geometry point | |
void | calculateContourAllGeometryPoints (const GUIVisualizationSettings &s, const GUIVisualizationSettings::Detail d, const GUIGlObject *glObject, const PositionVector &shape, const double layer, const double radius, const double scale, const bool calculatePosOverShape) const |
calculate contour for all geometry points | |
void | calculateContourEdgeGeometryPoints (const GUIVisualizationSettings &s, const GUIVisualizationSettings::Detail d, const GNEEdge *edge, const double radius, const bool calculatePosOverShape, const bool firstExtrem, const bool lastExtrem) const |
calculate contour for edge geometry points | |
bool | checkDrawPathContour (const GUIVisualizationSettings &s, const GUIVisualizationSettings::Detail d, const GNEAttributeCarrier *AC) const |
drawing contour functions | |
bool | drawDottedContours (const GUIVisualizationSettings &s, const GUIVisualizationSettings::Detail d, const GNEAttributeCarrier *AC, const double lineWidth, const bool addOffset) const |
draw dotted contours (basics, select, delete, inspect...) | |
void | drawDottedContourGeometryPoints (const GUIVisualizationSettings &s, const GUIVisualizationSettings::Detail d, const GNEAttributeCarrier *AC, const PositionVector &shape, const double radius, const double scale, const double lineWidth) const |
draw dotted contour for geometry points | |
void | drawInnenContourClosed (const GUIVisualizationSettings &s, const GUIVisualizationSettings::Detail d, const PositionVector &shape, const double scale, const double lineWidth) const |
draw innen contour (currently used only in walkingAreas) | |
bool | drawDottedContour (const GUIVisualizationSettings &s, GUIDottedGeometry::DottedContourType type, const double lineWidth, const bool addOffset) const |
draw dotted contour (call out of this class only in special cases, for example in WalkingAreas) | |
Private Member Functions | |
GNEContour (const GNEContour &)=delete | |
Invalidated copy constructor. | |
GNEContour & | operator= (const GNEContour &src)=delete |
Invalidated assignment operator. | |
build contour functions | |
void | buildContourClosedShape (const GUIVisualizationSettings &s, const GUIVisualizationSettings::Detail d, const PositionVector &shape, const double scale) const |
build contour around closed shape (ej. polygon) | |
void | buildContourExtrudedShape (const GUIVisualizationSettings &s, const GUIVisualizationSettings::Detail d, const PositionVector &shape, const double extrusionWidth, const double scale, const bool closeFirstExtrem, const bool closeLastExtrem, const double offset) const |
build contour around extruded shape (ej. lane) | |
void | buildContourRectangle (const GUIVisualizationSettings &s, const GUIVisualizationSettings::Detail d, const Position &pos, const double width, const double height, const double offsetX, const double offsetY, const double rot, const double scale) const |
build contour around rectangle | |
void | buildContourCircle (const GUIVisualizationSettings &s, const GUIVisualizationSettings::Detail d, const Position &pos, double radius, const double scale) const |
build contour aorund circle | |
void | buildContourEdge (const GUIVisualizationSettings &s, const GUIVisualizationSettings::Detail d, const GNEEdge *edge, const bool closeFirstExtrem, const bool closeLastExtrem) const |
build contour around edge | |
void | buildContourEdges (const GUIVisualizationSettings &s, const GUIVisualizationSettings::Detail d, const GNEEdge *fromEdge, const GNEEdge *toEdge) const |
build contour between two from-to edgeds | |
Private Attributes | |
PositionVector * | myCalculatedShape |
calculated shape | |
Boundary * | myContourBoundary |
contourboundary | |
std::vector< GUIDottedGeometry > * | myDottedGeometries |
dotted geometries | |
Static Private Attributes | |
static GUIDottedGeometry::DottedGeometryColor | myDottedGeometryColor |
dotted geometry color | |
Definition at line 38 of file GNEContour.h.
GNEContour::GNEContour | ( | ) |
Constructor.
Definition at line 44 of file GNEContour.cpp.
GNEContour::~GNEContour | ( | ) |
destructor
Definition at line 51 of file GNEContour.cpp.
References myCalculatedShape, myContourBoundary, and myDottedGeometries.
|
privatedelete |
Invalidated copy constructor.
|
private |
build contour aorund circle
Definition at line 543 of file GNEContour.cpp.
References GUIVisualizationSettings::CircleResolution16, GUIVisualizationSettings::CircleResolution32, PositionVector::getBoxBoundary(), GUIGeometry::getVertexCircleAroundPosition(), myCalculatedShape, myContourBoundary, myDottedGeometries, Boundary::reset(), Position::x(), and Position::y().
Referenced by calculateContourCircleShape().
|
private |
build contour around closed shape (ej. polygon)
Definition at line 450 of file GNEContour.cpp.
References PositionVector::closePolygon(), PositionVector::getBoxBoundary(), myCalculatedShape, myContourBoundary, myDottedGeometries, Boundary::reset(), and PositionVector::scaleRelative().
Referenced by calculateContourClosedShape().
|
private |
build contour around edge
Definition at line 573 of file GNEContour.cpp.
References OptionsCont::getBool(), PositionVector::getBoxBoundary(), GNELane::getDrawingConstants(), GNELane::DrawingConstants::getDrawingWidth(), GNELane::getLaneGeometry(), GNEEdge::getLanes(), GNELane::DrawingConstants::getOffset(), OptionsCont::getOptions(), GUIGeometry::getShape(), myCalculatedShape, myContourBoundary, myDottedGeometries, and PositionVector::reverse().
Referenced by calculateContourEdge().
|
private |
build contour between two from-to edgeds
Definition at line 614 of file GNEContour.cpp.
Referenced by calculateContourEdges().
|
private |
build contour around extruded shape (ej. lane)
Definition at line 471 of file GNEContour.cpp.
References PositionVector::getBoxBoundary(), myCalculatedShape, myContourBoundary, myDottedGeometries, Boundary::reset(), and PositionVector::reverse().
Referenced by calculateContourExtrudedShape().
|
private |
build contour around rectangle
Definition at line 512 of file GNEContour.cpp.
References PositionVector::add(), DEG2RAD, PositionVector::getBoxBoundary(), myCalculatedShape, myContourBoundary, myDottedGeometries, Boundary::reset(), PositionVector::rotate2D(), and PositionVector::scaleRelative().
Referenced by calculateContourRectangleShape().
void GNEContour::calculateContourAllGeometryPoints | ( | const GUIVisualizationSettings & | s, |
const GUIVisualizationSettings::Detail | d, | ||
const GUIGlObject * | glObject, | ||
const PositionVector & | shape, | ||
const double | layer, | ||
const double | radius, | ||
const double | scale, | ||
const bool | calculatePosOverShape | ||
) | const |
calculate contour for all geometry points
Definition at line 195 of file GNEContour.cpp.
References GUIViewObjectsHandler::checkGeometryPoint(), GUIViewObjectsHandler::checkPositionOverShape(), GUIVisualizationSettings::drawForViewObjectsHandler, and gViewObjectsHandler.
Referenced by GNEConnection::calculateConnectionContour(), GNEAdditional::calculateContourPolygons(), GNECrossing::calculateCrossingContour(), GNEJunction::calculateJunctioncontour(), and GNELane::calculateLaneContour().
void GNEContour::calculateContourCircleShape | ( | const GUIVisualizationSettings & | s, |
const GUIVisualizationSettings::Detail | d, | ||
const GUIGlObject * | glObject, | ||
const Position & | pos, | ||
double | radius, | ||
const double | layer, | ||
const double | scale, | ||
const GUIGlObject * | boundaryParent | ||
) | const |
calculate contour (circle elements)
Definition at line 122 of file GNEContour.cpp.
References buildContourCircle(), GUIViewObjectsHandler::checkCircleObject(), GUIViewObjectsHandler::checkRectangleSelection(), GUIVisualizationSettings::drawForViewObjectsHandler, gViewObjectsHandler, and myContourBoundary.
Referenced by GNEJunction::calculateJunctioncontour(), GNEPOI::calculatePOIContour(), GNEParkingSpace::calculateSpaceContour(), GNEStoppingPlace::calculateStoppingPlaceContour(), GNEAccess::drawGL(), GNETAZ::drawGL(), GNEVariableSpeedSignSymbol::drawGL(), GNEStopPlan::drawGL(), GNELaneAreaDetector::drawLanePartialGL(), GNEDemandElementPlan::drawPlanGL(), and GNEDemandElementPlan::drawPlanLanePartial().
void GNEContour::calculateContourClosedShape | ( | const GUIVisualizationSettings & | s, |
const GUIVisualizationSettings::Detail | d, | ||
const GUIGlObject * | glObject, | ||
const PositionVector & | shape, | ||
const double | layer, | ||
const double | scale, | ||
const GUIGlObject * | boundaryParent, | ||
const bool | addToSelectedObjects = true |
||
) | const |
calculate contours
calculate contour (for closed shapes)
Definition at line 75 of file GNEContour.cpp.
References buildContourClosedShape(), GUIViewObjectsHandler::checkRectangleSelection(), GUIViewObjectsHandler::checkShapeObject(), GUIVisualizationSettings::drawForViewObjectsHandler, gViewObjectsHandler, myCalculatedShape, and myContourBoundary.
Referenced by GNEAdditional::calculateContourPolygons(), GNEJunction::calculateJunctioncontour(), and GNEWalkingArea::drawGL().
void GNEContour::calculateContourEdge | ( | const GUIVisualizationSettings & | s, |
const GUIVisualizationSettings::Detail | d, | ||
const GNEEdge * | edge, | ||
const GUIGlObject * | elementToRegister, | ||
const double | layer, | ||
const bool | closeFirstExtrem, | ||
const bool | closeLastExtrem | ||
) | const |
calculate contour edge
Definition at line 136 of file GNEContour.cpp.
References buildContourEdge(), GUIViewObjectsHandler::checkShapeObject(), GUIVisualizationSettings::drawForViewObjectsHandler, gViewObjectsHandler, myCalculatedShape, and myContourBoundary.
Referenced by GNEEdge::calculateEdgeContour(), GNEEdgeData::drawLanePartialGL(), and GNEEdgeRelData::drawLanePartialGL().
void GNEContour::calculateContourEdgeGeometryPoints | ( | const GUIVisualizationSettings & | s, |
const GUIVisualizationSettings::Detail | d, | ||
const GNEEdge * | edge, | ||
const double | radius, | ||
const bool | calculatePosOverShape, | ||
const bool | firstExtrem, | ||
const bool | lastExtrem | ||
) | const |
calculate contour for edge geometry points
Definition at line 213 of file GNEContour.cpp.
References PositionVector::around(), GUIViewObjectsHandler::checkGeometryPoint(), GUIVisualizationSettings::drawForViewObjectsHandler, NBEdge::getGeometry(), GNEEdge::getNBEdge(), GUIViewObjectsHandler::getSelectedGeometryPoints(), GUIViewObjectsHandler::getSelectionPosition(), GUIGlObject::getType(), gViewObjectsHandler, Position::INVALID, myCalculatedShape, PositionVector::nearest_offset_to_point2D(), and GUIViewObjectsHandler::selectPositionOverShape().
Referenced by GNEEdge::calculateEdgeContour().
void GNEContour::calculateContourEdges | ( | const GUIVisualizationSettings & | s, |
const GUIVisualizationSettings::Detail | d, | ||
const GNEEdge * | fromEdge, | ||
const GNEEdge * | toEdge | ||
) | const |
calculate contour between two consecutive edges
Definition at line 150 of file GNEContour.cpp.
References buildContourEdges().
Referenced by GNEEdgeRelData::drawJunctionPartialGL().
void GNEContour::calculateContourExtrudedShape | ( | const GUIVisualizationSettings & | s, |
const GUIVisualizationSettings::Detail | d, | ||
const GUIGlObject * | glObject, | ||
const PositionVector & | shape, | ||
const double | layer, | ||
const double | extrusionWidth, | ||
const double | scale, | ||
const bool | closeFirstExtrem, | ||
const bool | closeLastExtrem, | ||
const double | offset, | ||
const GNESegment * | segment, | ||
const GUIGlObject * | boundaryParent, | ||
const bool | addToSelectedObjects = true |
||
) | const |
calculate contour extruded (used in elements formed by a central shape)
Definition at line 91 of file GNEContour.cpp.
References buildContourExtrudedShape(), GUIViewObjectsHandler::checkRectangleSelection(), GUIViewObjectsHandler::checkShapeObject(), GUIVisualizationSettings::drawForViewObjectsHandler, gViewObjectsHandler, myCalculatedShape, and myContourBoundary.
Referenced by GNEConnection::calculateConnectionContour(), GNEAdditional::calculateContourPolygons(), GNECrossing::calculateCrossingContour(), GNELane::calculateLaneContour(), GNEParkingSpace::calculateSpaceContour(), GNEStoppingPlace::calculateStoppingPlaceContour(), GNELaneAreaDetector::drawGL(), GNERouteProbe::drawGL(), GNEVaporizer::drawGL(), GNETAZRelData::drawGL(), GNEStop::drawGL(), GNEStopPlan::drawGL(), GNEInternalLane::drawGL(), GNELaneAreaDetector::drawJunctionPartialGL(), GNEOverheadWire::drawJunctionPartialGL(), GNERoute::drawJunctionPartialGL(), GNEVehicle::drawJunctionPartialGL(), GNELaneAreaDetector::drawLanePartialGL(), GNEOverheadWire::drawLanePartialGL(), GNERoute::drawLanePartialGL(), GNEVehicle::drawLanePartialGL(), GNEDemandElementPlan::drawPlanGL(), GNEDemandElementPlan::drawPlanJunctionPartial(), and GNEDemandElementPlan::drawPlanLanePartial().
void GNEContour::calculateContourFirstGeometryPoint | ( | const GUIVisualizationSettings & | s, |
const GUIVisualizationSettings::Detail | d, | ||
const GUIGlObject * | glObject, | ||
const PositionVector & | shape, | ||
const double | layer, | ||
const double | radius, | ||
const double | scale | ||
) | const |
calculate contour for first geometry point
Definition at line 158 of file GNEContour.cpp.
References GUIViewObjectsHandler::checkGeometryPoint(), GUIVisualizationSettings::drawForViewObjectsHandler, and gViewObjectsHandler.
Referenced by GNEStoppingPlace::calculateStoppingPlaceContour(), GNEEdge::drawEndGeometryPoint(), and GNEEdge::drawStartGeometryPoint().
void GNEContour::calculateContourLastGeometryPoint | ( | const GUIVisualizationSettings & | s, |
const GUIVisualizationSettings::Detail | d, | ||
const GUIGlObject * | glObject, | ||
const PositionVector & | shape, | ||
const double | layer, | ||
const double | radius, | ||
const double | scale | ||
) | const |
calculate contour for last geometry point
Definition at line 169 of file GNEContour.cpp.
References GUIViewObjectsHandler::checkGeometryPoint(), GUIVisualizationSettings::drawForViewObjectsHandler, and gViewObjectsHandler.
Referenced by GNEStoppingPlace::calculateStoppingPlaceContour().
void GNEContour::calculateContourMiddleGeometryPoints | ( | const GUIVisualizationSettings & | s, |
const GUIVisualizationSettings::Detail | d, | ||
const GUIGlObject * | glObject, | ||
const PositionVector & | shape, | ||
const double | layer, | ||
const double | radius, | ||
const double | scale | ||
) | const |
calculate contour for middle geometry point
Definition at line 180 of file GNEContour.cpp.
References GUIViewObjectsHandler::checkGeometryPoint(), GUIViewObjectsHandler::checkPositionOverShape(), GUIVisualizationSettings::drawForViewObjectsHandler, and gViewObjectsHandler.
void GNEContour::calculateContourRectangleShape | ( | const GUIVisualizationSettings & | s, |
const GUIVisualizationSettings::Detail | d, | ||
const GUIGlObject * | glObject, | ||
const Position & | pos, | ||
const double | width, | ||
const double | height, | ||
const double | layer, | ||
const double | offsetX, | ||
const double | offsetY, | ||
const double | rot, | ||
const double | scale, | ||
const GUIGlObject * | boundaryParent | ||
) | const |
calculate contour (for rectangled elements)
Definition at line 108 of file GNEContour.cpp.
References buildContourRectangle(), GUIViewObjectsHandler::checkRectangleSelection(), GUIViewObjectsHandler::checkShapeObject(), GUIVisualizationSettings::drawForViewObjectsHandler, gViewObjectsHandler, myCalculatedShape, and myContourBoundary.
Referenced by GNEPOI::calculatePOIContour(), GNECalibrator::drawCalibratorSymbol(), GNEEntryExitDetector::drawGL(), GNEInductionLoopDetector::drawGL(), GNEInstantInductionLoopDetector::drawGL(), GNERerouterSymbol::drawGL(), GNERouteProbe::drawGL(), GNEVaporizer::drawGL(), GNEContainer::drawGL(), GNEPerson::drawGL(), GNEVehicle::drawGL(), GNEAdditional::drawListedAdditional(), and GNEAdditional::drawSquaredAdditional().
bool GNEContour::checkDrawPathContour | ( | const GUIVisualizationSettings & | s, |
const GUIVisualizationSettings::Detail | d, | ||
const GNEAttributeCarrier * | AC | ||
) | const |
drawing contour functions
check if draw path contours (if we're inspecting/selecting/deleting a path, we need to draw all path elements)
Definition at line 267 of file GNEContour.cpp.
References GNEAttributeCarrier::checkDrawDeleteContour(), GNEAttributeCarrier::checkDrawFromContour(), GNEAttributeCarrier::checkDrawFrontContour(), GNEAttributeCarrier::checkDrawInspectContour(), GNEAttributeCarrier::checkDrawMoveContour(), GNEAttributeCarrier::checkDrawOverContour(), GNEAttributeCarrier::checkDrawRelatedContour(), GNEAttributeCarrier::checkDrawSelectContour(), GNEAttributeCarrier::checkDrawToContour(), GUIVisualizationSettings::disableDottedContours, GUIVisualizationSettings::DottedContours, and GUIVisualizationSettings::drawForViewObjectsHandler.
Referenced by GNELaneAreaDetector::drawJunctionPartialGL(), GNEEdgeRelData::drawJunctionPartialGL(), GNERoute::drawJunctionPartialGL(), GNEVehicle::drawJunctionPartialGL(), GNELaneAreaDetector::drawLanePartialGL(), GNEEdgeRelData::drawLanePartialGL(), GNERoute::drawLanePartialGL(), GNEVehicle::drawLanePartialGL(), GNEDemandElementPlan::drawPlanJunctionPartial(), and GNEDemandElementPlan::drawPlanLanePartial().
void GNEContour::clearContour | ( | ) | const |
void clear contour
Definition at line 65 of file GNEContour.cpp.
References myCalculatedShape, myContourBoundary, myDottedGeometries, and Boundary::reset().
Referenced by GNEAdditional::resetAdditionalContour(), GNEPoly::setAttribute(), and GNEJunction::setMoveShape().
bool GNEContour::drawDottedContour | ( | const GUIVisualizationSettings & | s, |
GUIDottedGeometry::DottedContourType | type, | ||
const double | lineWidth, | ||
const bool | addOffset | ||
) | const |
draw dotted contour (call out of this class only in special cases, for example in WalkingAreas)
Definition at line 431 of file GNEContour.cpp.
References GLO_DOTTEDCONTOUR, myDottedGeometries, myDottedGeometryColor, GLHelper::popMatrix(), GLHelper::pushMatrix(), and GUIDottedGeometry::DottedGeometryColor::reset().
Referenced by drawDottedContours(), and GNEWalkingArea::drawGL().
void GNEContour::drawDottedContourGeometryPoints | ( | const GUIVisualizationSettings & | s, |
const GUIVisualizationSettings::Detail | d, | ||
const GNEAttributeCarrier * | AC, | ||
const PositionVector & | shape, | ||
const double | radius, | ||
const double | scale, | ||
const double | lineWidth | ||
) | const |
draw dotted contour for geometry points
Definition at line 355 of file GNEContour.cpp.
References GNEAttributeCarrier::checkDrawMoveContour(), GUIVisualizationSettings::disableDottedContours, GUIVisualizationSettings::DottedContours, GNEAttributeCarrier::getGUIGlObject(), GUIViewObjectsHandler::getSelectedGeometryPoints(), GUIViewObjectsHandler::getSelectedPositionOverShape(), GUIGeometry::getVertexCircleAroundPosition(), GLO_DOTTEDCONTOUR, gViewObjectsHandler, Position::INVALID, GUIDottedGeometry::MOVE, myDottedGeometryColor, GLHelper::popMatrix(), GLHelper::pushMatrix(), and GUIDottedGeometry::DottedGeometryColor::reset().
Referenced by GNEEdge::drawEdgeGeometryPoints(), GNEPoly::drawGeometryPoints(), GNEBusStop::drawGL(), GNEChargingStation::drawGL(), GNEContainerStop::drawGL(), GNEParkingArea::drawGL(), GNETAZ::drawGL(), GNEConnection::drawGL(), GNECrossing::drawGL(), and GNEJunction::drawGL().
bool GNEContour::drawDottedContours | ( | const GUIVisualizationSettings & | s, |
const GUIVisualizationSettings::Detail | d, | ||
const GNEAttributeCarrier * | AC, | ||
const double | lineWidth, | ||
const bool | addOffset | ||
) | const |
draw dotted contours (basics, select, delete, inspect...)
Definition at line 311 of file GNEContour.cpp.
References GNEAttributeCarrier::checkDrawDeleteContour(), GNEAttributeCarrier::checkDrawFromContour(), GNEAttributeCarrier::checkDrawFrontContour(), GNEAttributeCarrier::checkDrawInspectContour(), GNEAttributeCarrier::checkDrawMoveContour(), GNEAttributeCarrier::checkDrawOverContour(), GNEAttributeCarrier::checkDrawRelatedContour(), GNEAttributeCarrier::checkDrawSelectContour(), GNEAttributeCarrier::checkDrawToContour(), GUIVisualizationSettings::disableDottedContours, GUIVisualizationSettings::DottedContours, drawDottedContour(), GUIDottedGeometry::FROM, GUIDottedGeometry::FRONT, GUIDottedGeometry::INSPECT, GUIDottedGeometry::MOVE, GUIDottedGeometry::OVER, GUIDottedGeometry::RELATED, GUIDottedGeometry::REMOVE, GUIDottedGeometry::SELECT, and GUIDottedGeometry::TO.
Referenced by GNECalibrator::drawCalibratorSymbol(), GNEAccess::drawGL(), GNEBusStop::drawGL(), GNEChargingStation::drawGL(), GNEContainerStop::drawGL(), GNEEntryExitDetector::drawGL(), GNEInductionLoopDetector::drawGL(), GNEInstantInductionLoopDetector::drawGL(), GNELaneAreaDetector::drawGL(), GNEParkingArea::drawGL(), GNEParkingSpace::drawGL(), GNERerouterSymbol::drawGL(), GNERouteProbe::drawGL(), GNETAZ::drawGL(), GNEVaporizer::drawGL(), GNEVariableSpeedSignSymbol::drawGL(), GNETAZRelData::drawGL(), GNEContainer::drawGL(), GNEPerson::drawGL(), GNEStop::drawGL(), GNEStopPlan::drawGL(), GNEVehicle::drawGL(), GNEConnection::drawGL(), GNECrossing::drawGL(), GNEEdge::drawGL(), GNEInternalLane::drawGL(), GNEJunction::drawGL(), GNELane::drawGL(), GNEWalkingArea::drawGL(), GNEPOI::drawGL(), GNEPoly::drawGL(), GNELaneAreaDetector::drawJunctionPartialGL(), GNEOverheadWire::drawJunctionPartialGL(), GNERoute::drawJunctionPartialGL(), GNEVehicle::drawJunctionPartialGL(), GNELaneAreaDetector::drawLanePartialGL(), GNEOverheadWire::drawLanePartialGL(), GNEEdgeData::drawLanePartialGL(), GNEEdgeRelData::drawLanePartialGL(), GNERoute::drawLanePartialGL(), GNEVehicle::drawLanePartialGL(), GNEAdditional::drawListedAdditional(), GNEDemandElementPlan::drawPlanGL(), GNEDemandElementPlan::drawPlanJunctionPartial(), GNEDemandElementPlan::drawPlanLanePartial(), and GNEAdditional::drawSquaredAdditional().
void GNEContour::drawInnenContourClosed | ( | const GUIVisualizationSettings & | s, |
const GUIVisualizationSettings::Detail | d, | ||
const PositionVector & | shape, | ||
const double | scale, | ||
const double | lineWidth | ||
) | const |
draw innen contour (currently used only in walkingAreas)
Definition at line 406 of file GNEContour.cpp.
References PositionVector::closePolygon(), myCalculatedShape, myDottedGeometries, myDottedGeometryColor, GLHelper::popMatrix(), GLHelper::pushMatrix(), GUIDottedGeometry::DottedGeometryColor::reset(), and PositionVector::scaleRelative().
Referenced by GNEWalkingArea::drawWalkingArea().
Boundary GNEContour::getContourBoundary | ( | ) | const |
get contour boundary
Definition at line 59 of file GNEContour.cpp.
References myContourBoundary.
Referenced by GNEAdditional::getCenteringBoundary(), GNEConnection::getCenteringBoundary(), GNECrossing::getCenteringBoundary(), GNEEdgeType::getCenteringBoundary(), GNEInternalLane::getCenteringBoundary(), GNELane::getCenteringBoundary(), GNELaneType::getCenteringBoundary(), and GNEWalkingArea::getCenteringBoundary().
|
privatedelete |
Invalidated assignment operator.
|
private |
calculated shape
Definition at line 148 of file GNEContour.h.
Referenced by buildContourCircle(), buildContourClosedShape(), buildContourEdge(), buildContourExtrudedShape(), buildContourRectangle(), calculateContourClosedShape(), calculateContourEdge(), calculateContourEdgeGeometryPoints(), calculateContourExtrudedShape(), calculateContourRectangleShape(), clearContour(), drawInnenContourClosed(), and ~GNEContour().
|
private |
contourboundary
Definition at line 145 of file GNEContour.h.
Referenced by buildContourCircle(), buildContourClosedShape(), buildContourEdge(), buildContourExtrudedShape(), buildContourRectangle(), calculateContourCircleShape(), calculateContourClosedShape(), calculateContourEdge(), calculateContourExtrudedShape(), calculateContourRectangleShape(), clearContour(), getContourBoundary(), and ~GNEContour().
|
private |
dotted geometries
Definition at line 142 of file GNEContour.h.
Referenced by buildContourCircle(), buildContourClosedShape(), buildContourEdge(), buildContourExtrudedShape(), buildContourRectangle(), clearContour(), drawDottedContour(), drawInnenContourClosed(), and ~GNEContour().
|
staticprivate |
dotted geometry color
Definition at line 151 of file GNEContour.h.
Referenced by drawDottedContour(), drawDottedContourGeometryPoints(), and drawInnenContourClosed().