![]() |
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 bool forceCalculation=false) 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 bool forceCalculation=false) 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 43 of file GNEContour.cpp.
| GNEContour::~GNEContour | ( | ) |
destructor
Definition at line 50 of file GNEContour.cpp.
References myCalculatedShape, myContourBoundary, and myDottedGeometries.
|
privatedelete |
Invalidated copy constructor.
|
private |
build contour aorund circle
Definition at line 550 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 457 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 580 of file GNEContour.cpp.
References OptionsCont::getBool(), PositionVector::getBoxBoundary(), GNEHierarchicalElement::getChildLanes(), GNELane::getDrawingConstants(), GNELane::DrawingConstants::getDrawingWidth(), GNELane::getLaneGeometry(), 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 621 of file GNEContour.cpp.
Referenced by calculateContourEdges().
|
private |
build contour around extruded shape (ej. lane)
Definition at line 478 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 519 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 196 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 121 of file GNEContour.cpp.
References buildContourCircle(), GUIViewObjectsHandler::checkCircleObject(), GUIViewObjectsHandler::checkRectangleSelection(), GUIVisualizationSettings::drawForViewObjectsHandler, and gViewObjectsHandler.
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 74 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 135 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 214 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 149 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 90 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(), GNEAdditionalListed::drawListedAdditional(), 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 bool | forceCalculation = false |
||
| ) | const |
calculate contour for first geometry point
Definition at line 157 of file GNEContour.cpp.
References GUIViewObjectsHandler::checkGeometryPoint(), GUIVisualizationSettings::drawForViewObjectsHandler, and gViewObjectsHandler.
Referenced by GNEStoppingPlace::calculateStoppingPlaceContour(), GNELaneAreaDetector::drawE2PartialLane(), GNEEdge::drawEndGeometryPoint(), GNELaneAreaDetector::drawGL(), 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 bool | forceCalculation = false |
||
| ) | 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(), GNELaneAreaDetector::drawE2PartialLane(), and GNELaneAreaDetector::drawGL().
| 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 181 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 107 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(), GNERouteProbe::drawGL(), GNEVaporizer::drawGL(), GNEContainer::drawGL(), GNEPerson::drawGL(), GNEVehicle::drawGL(), and GNEAdditionalSquared::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 268 of file GNEContour.cpp.
References GNEAttributeCarrier::checkDrawDeleteContour(), GNEAttributeCarrier::checkDrawDeleteContourSmall(), 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 64 of file GNEContour.cpp.
References myCalculatedShape, myContourBoundary, myDottedGeometries, and Boundary::reset().
Referenced by GNEAdditional::resetAdditionalContour(), GNEPoly::setAttribute(), and GNEMoveElementJunction::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 438 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 362 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(), GNELaneAreaDetector::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 316 of file GNEContour.cpp.
References GNEAttributeCarrier::checkDrawDeleteContour(), GNEAttributeCarrier::checkDrawDeleteContourSmall(), GNEAttributeCarrier::checkDrawFromContour(), GNEAttributeCarrier::checkDrawFrontContour(), GNEAttributeCarrier::checkDrawInspectContour(), GNEAttributeCarrier::checkDrawMoveContour(), GNEAttributeCarrier::checkDrawOverContour(), GNEAttributeCarrier::checkDrawRelatedContour(), GNEAttributeCarrier::checkDrawSelectContour(), GNEAttributeCarrier::checkDrawToContour(), GUIVisualizationSettings::disableDottedContours, GUIVisualizationSettings::DottedContours, GUIVisualizationSettings::dottedContourSettings, drawDottedContour(), GUIDottedGeometry::FROM, GUIDottedGeometry::FRONT, GUIDottedGeometry::INSPECT, GUIDottedGeometry::MOVE, GUIDottedGeometry::OVER, GUIDottedGeometry::RELATED, GUIDottedGeometry::REMOVE, GUIVisualizationDottedContourSettings::segmentWidthSmall, 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(), GNERouteProbe::drawGL(), GNETAZ::drawGL(), GNEVaporizer::drawGL(), GNEVariableSpeedSignSymbol::drawGL(), GNETAZRelData::drawGL(), GNEContainer::drawGL(), GNEPerson::drawGL(), GNEStop::drawGL(), GNEStopPlan::drawGL(), GNEVehicle::drawGL(), GNEConnection::drawGL(), GNECrossing::drawGL(), GNEInternalLane::drawGL(), GNEWalkingArea::drawGL(), GNEPOI::drawGL(), GNEPoly::drawGL(), GNEEdge::drawGL(), GNEJunction::drawGL(), GNELane::drawGL(), GNELaneAreaDetector::drawJunctionPartialGL(), GNEOverheadWire::drawJunctionPartialGL(), GNERoute::drawJunctionPartialGL(), GNEVehicle::drawJunctionPartialGL(), GNELaneAreaDetector::drawLanePartialGL(), GNEOverheadWire::drawLanePartialGL(), GNEEdgeData::drawLanePartialGL(), GNEEdgeRelData::drawLanePartialGL(), GNERoute::drawLanePartialGL(), GNEVehicle::drawLanePartialGL(), GNEAdditionalListed::drawListedAdditional(), GNEDemandElementPlan::drawPlanGL(), GNEDemandElementPlan::drawPlanJunctionPartial(), GNEDemandElementPlan::drawPlanLanePartial(), and GNEAdditionalSquared::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 413 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 58 of file GNEContour.cpp.
References myContourBoundary.
Referenced by GNEConnection::getCenteringBoundary(), GNECrossing::getCenteringBoundary(), GNEEdgeType::getCenteringBoundary(), GNEInternalLane::getCenteringBoundary(), GNELaneType::getCenteringBoundary(), GNEWalkingArea::getCenteringBoundary(), GNEAdditional::getCenteringBoundary(), and GNELane::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(), 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().