![]() |
Eclipse SUMO - Simulation of Urban MObility
|
#include <GNEContourElement.h>
Protected Member Functions | |
| void | drawDottedContourCircle (const GUIVisualizationSettings &s, const Position &pos, double radius, const double scale, const double lineWidth) const |
| draw dotted contour (circle) More... | |
| void | drawDottedContourClosed (const GUIVisualizationSettings &s, const PositionVector &shape, const double scale, const double lineWidth) const |
| draw dotted contour (for closed shapes) More... | |
| void | drawDottedContourEdge (const GUIVisualizationSettings &s, const GNEEdge *edge, const bool drawFirstExtrem, const bool drawLastExtrem, const double lineWidth) const |
| draw dotted contour edge More... | |
| void | drawDottedContourExtruded (const GUIVisualizationSettings &s, const PositionVector &shape, const double extrusionWidth, const double scale, const bool drawFirstExtrem, const bool drawLastExtrem, const double lineWidth) const |
| draw dotted contour extruded (used in elements formed by a central shape) More... | |
| void | drawDottedContourRectangle (const GUIVisualizationSettings &s, const Position &pos, const double width, const double height, const double offsetX, const double offsetY, const double rot, const double scale, const double lineWidth) const |
| draw dotted contour (for rectangled elements) More... | |
| GNEContourElement (GNEAttributeCarrier *AC) | |
| Constructor. More... | |
| ~GNEContourElement () | |
| destructor More... | |
Private Member Functions | |
| void | buildAndDrawDottedContourCircle (const GUIVisualizationSettings &s, GUIDottedGeometry::DottedContourType type, const Position &pos, double radius, const double scale, const double lineWidth) const |
| draw dotted contour circle More... | |
| void | buildAndDrawDottedContourClosed (const GUIVisualizationSettings &s, const GUIDottedGeometry::DottedContourType type, const PositionVector &shape, const double scale, const double lineWidth) const |
| draw dotted contour shape More... | |
| void | buildAndDrawDottedContourEdge (const GUIVisualizationSettings &s, GUIDottedGeometry::DottedContourType type, const GNEEdge *edge, const bool drawFirstExtrem, const bool drawLastExtrem, const double lineWidth) const |
| draw dotted contour edge More... | |
| void | buildAndDrawDottedContourExtruded (const GUIVisualizationSettings &s, GUIDottedGeometry::DottedContourType type, const PositionVector &shape, const double extrusionWidth, const double scale, const bool drawFirstExtrem, const bool drawLastExtrem, const double lineWidth) const |
| build and draw dotted contour extruded More... | |
| void | buildAndDrawDottedContourRectangle (const GUIVisualizationSettings &s, GUIDottedGeometry::DottedContourType type, const Position &pos, const double width, const double height, const double offsetX, const double offsetY, const double rot, const double scale, const double lineWidth) const |
| draw dotted contour rectangle More... | |
Private Attributes | |
| GNEAttributeCarrier * | myAC |
| pointer to AC More... | |
| double * | myCachedHeight |
| pointer to cached height More... | |
| Position * | myCachedPosition |
| pointer to cached position More... | |
| double * | myCachedRot |
| pointer to cached rotation More... | |
| double * | myCachedScale |
| pointer to cached scale More... | |
| PositionVector * | myCachedShape |
| pointer to cached shape More... | |
| double * | myCachedWidth |
| pointer to cached width More... | |
| GUIDottedGeometry * | myDottedGeometryA |
| pointer to dotted geometry A More... | |
| GUIDottedGeometry * | myDottedGeometryB |
| pointer to dotted geometry B More... | |
| GUIDottedGeometry * | myDottedGeometryC |
| pointer to dotted geometry C More... | |
| GUIDottedGeometry::DottedGeometryColor * | myDottedGeometryColor |
| dotted geometry color More... | |
Definition at line 37 of file GNEContourElement.h.
|
protected |
Constructor.
Definition at line 36 of file GNEContourElement.cpp.
|
protected |
destructor
Definition at line 51 of file GNEContourElement.cpp.
References myCachedHeight, myCachedPosition, myCachedRot, myCachedScale, myCachedShape, myCachedWidth, myDottedGeometryA, myDottedGeometryB, myDottedGeometryC, and myDottedGeometryColor.
|
private |
draw dotted contour circle
Definition at line 397 of file GNEContourElement.cpp.
References GUIDottedGeometry::drawDottedGeometry(), GUIGeometry::getVertexCircleAroundPosition(), GLO_DOTTEDCONTOUR, myCachedPosition, myCachedScale, myDottedGeometryA, myDottedGeometryColor, GLHelper::popMatrix(), GLHelper::pushMatrix(), and GUIDottedGeometry::DottedGeometryColor::reset().
Referenced by drawDottedContourCircle().
|
private |
draw dotted contour shape
Definition at line 282 of file GNEContourElement.cpp.
References GUIDottedGeometry::drawDottedGeometry(), GLO_DOTTEDCONTOUR, myCachedScale, myCachedShape, myDottedGeometryA, myDottedGeometryColor, GLHelper::popMatrix(), GLHelper::pushMatrix(), GUIDottedGeometry::DottedGeometryColor::reset(), and PositionVector::scaleRelative().
Referenced by drawDottedContourClosed().
|
private |
draw dotted contour edge
Definition at line 422 of file GNEContourElement.cpp.
References PositionVector::append(), buildAndDrawDottedContourExtruded(), GUIDottedGeometry::DottedGeometryColor::changeColor(), GUIDottedGeometry::drawDottedGeometry(), GNELane::LaneDrawingConstants::exaggeration, OptionsCont::getBool(), GNELane::getLaneGeometry(), GNEEdge::getLanes(), OptionsCont::getOptions(), GUIGeometry::getShape(), GLO_DOTTEDCONTOUR, GNELane::LaneDrawingConstants::halfWidth, GUIDottedGeometry::invertOffset(), GUIDottedGeometry::moveShapeToSide(), myCachedShape, myDottedGeometryA, myDottedGeometryB, myDottedGeometryC, myDottedGeometryColor, GLHelper::popMatrix(), GLHelper::pushMatrix(), and GUIDottedGeometry::DottedGeometryColor::reset().
Referenced by drawDottedContourEdge().
|
private |
build and draw dotted contour extruded
Definition at line 310 of file GNEContourElement.cpp.
References GUIDottedGeometry::DottedGeometryColor::changeColor(), GUIDottedGeometry::drawDottedGeometry(), GLO_DOTTEDCONTOUR, GUIDottedGeometry::invertOffset(), GUIDottedGeometry::moveShapeToSide(), myCachedScale, myCachedShape, myDottedGeometryA, myDottedGeometryB, myDottedGeometryC, myDottedGeometryColor, GLHelper::popMatrix(), GLHelper::pushMatrix(), and GUIDottedGeometry::DottedGeometryColor::reset().
Referenced by buildAndDrawDottedContourEdge(), and drawDottedContourExtruded().
|
private |
draw dotted contour rectangle
Definition at line 354 of file GNEContourElement.cpp.
References PositionVector::add(), DEG2RAD, GUIDottedGeometry::drawDottedGeometry(), GLO_DOTTEDCONTOUR, myCachedHeight, myCachedPosition, myCachedRot, myCachedScale, myCachedWidth, myDottedGeometryA, myDottedGeometryColor, GLHelper::popMatrix(), GLHelper::pushMatrix(), GUIDottedGeometry::DottedGeometryColor::reset(), and PositionVector::rotate2D().
Referenced by drawDottedContourRectangle().
|
protected |
draw dotted contour (circle)
Definition at line 198 of file GNEContourElement.cpp.
References buildAndDrawDottedContourCircle(), GNEAttributeCarrier::checkDrawDeleteContour(), GNEAttributeCarrier::checkDrawFromContour(), GNEAttributeCarrier::checkDrawFrontContour(), GNEAttributeCarrier::checkDrawInspectContour(), GNEAttributeCarrier::checkDrawOverContour(), GNEAttributeCarrier::checkDrawRelatedContour(), GNEAttributeCarrier::checkDrawSelectContour(), GNEAttributeCarrier::checkDrawToContour(), GUIVisualizationSettings::drawDottedContour(), GUIDottedGeometry::FROM, GUIDottedGeometry::FRONT, GUIDottedGeometry::INSPECT, myAC, GUIDottedGeometry::OVER, GUIDottedGeometry::RELATED, GUIDottedGeometry::REMOVE, GUIDottedGeometry::SELECT, and GUIDottedGeometry::TO.
Referenced by GNEAccess::drawGL(), GNETAZ::drawGL(), GNEVariableSpeedSignSymbol::drawGL(), GNEJunction::drawGL(), and GNEPOI::drawGL().
|
protected |
draw dotted contour (for closed shapes)
Definition at line 66 of file GNEContourElement.cpp.
References buildAndDrawDottedContourClosed(), GNEAttributeCarrier::checkDrawDeleteContour(), GNEAttributeCarrier::checkDrawFromContour(), GNEAttributeCarrier::checkDrawFrontContour(), GNEAttributeCarrier::checkDrawInspectContour(), GNEAttributeCarrier::checkDrawOverContour(), GNEAttributeCarrier::checkDrawRelatedContour(), GNEAttributeCarrier::checkDrawSelectContour(), GNEAttributeCarrier::checkDrawToContour(), GUIVisualizationSettings::drawDottedContour(), GUIDottedGeometry::FROM, GUIDottedGeometry::FRONT, GUIDottedGeometry::INSPECT, myAC, GUIDottedGeometry::OVER, GUIDottedGeometry::RELATED, GUIDottedGeometry::REMOVE, GUIDottedGeometry::SELECT, and GUIDottedGeometry::TO.
Referenced by GNETAZ::drawGL(), GNEJunction::drawGL(), GNEWalkingArea::drawGL(), and GNEPoly::drawGL().
|
protected |
draw dotted contour edge
Definition at line 236 of file GNEContourElement.cpp.
References buildAndDrawDottedContourEdge(), GNEAttributeCarrier::checkDrawDeleteContour(), GNEAttributeCarrier::checkDrawFromContour(), GNEAttributeCarrier::checkDrawFrontContour(), GNEAttributeCarrier::checkDrawInspectContour(), GNEAttributeCarrier::checkDrawOverContour(), GNEAttributeCarrier::checkDrawRelatedContour(), GNEAttributeCarrier::checkDrawSelectContour(), GNEAttributeCarrier::checkDrawToContour(), GUIVisualizationSettings::drawDottedContour(), GUIDottedGeometry::FROM, GUIDottedGeometry::FRONT, GUIDottedGeometry::INSPECT, myAC, GUIDottedGeometry::OVER, GUIDottedGeometry::RELATED, GUIDottedGeometry::REMOVE, GUIDottedGeometry::SELECT, and GUIDottedGeometry::TO.
Referenced by GNEEdge::drawGL(), GNEEdgeData::drawPartialGL(), and GNEEdgeRelData::drawPartialGL().
|
protected |
draw dotted contour extruded (used in elements formed by a central shape)
Definition at line 104 of file GNEContourElement.cpp.
References buildAndDrawDottedContourExtruded(), GNEAttributeCarrier::checkDrawDeleteContour(), GNEAttributeCarrier::checkDrawFromContour(), GNEAttributeCarrier::checkDrawFrontContour(), GNEAttributeCarrier::checkDrawInspectContour(), GNEAttributeCarrier::checkDrawOverContour(), GNEAttributeCarrier::checkDrawRelatedContour(), GNEAttributeCarrier::checkDrawSelectContour(), GNEAttributeCarrier::checkDrawToContour(), GUIVisualizationSettings::drawDottedContour(), GUIDottedGeometry::FROM, GUIDottedGeometry::FRONT, GUIDottedGeometry::INSPECT, myAC, GUIDottedGeometry::OVER, GUIDottedGeometry::RELATED, GUIDottedGeometry::REMOVE, GUIDottedGeometry::SELECT, and GUIDottedGeometry::TO.
Referenced by GNEBusStop::drawGL(), GNEChargingStation::drawGL(), GNEContainerStop::drawGL(), GNELaneAreaDetector::drawGL(), GNEParkingArea::drawGL(), GNEParkingSpace::drawGL(), GNERouteProbe::drawGL(), GNEVaporizer::drawGL(), GNETAZRelData::drawGL(), GNEConnection::drawGL(), GNECrossing::drawGL(), GNELane::drawGL(), GNEPoly::drawGL(), GNELane::drawLaneAsRailway(), GNELaneAreaDetector::drawPartialGL(), GNEOverheadWire::drawPartialGL(), GNERoute::drawPartialGL(), GNEVehicle::drawPartialGL(), GNEDemandElementPlan::drawPlanGL(), GNEDemandElementPlan::drawPlanPartial(), GNEStop::drawStopPersonOverEdge(), GNEStop::drawStopPersonOverStoppingPlace(), and GNEStop::drawVehicleStop().
|
protected |
draw dotted contour (for rectangled elements)
Definition at line 151 of file GNEContourElement.cpp.
References buildAndDrawDottedContourRectangle(), GNEAttributeCarrier::checkDrawDeleteContour(), GNEAttributeCarrier::checkDrawFromContour(), GNEAttributeCarrier::checkDrawFrontContour(), GNEAttributeCarrier::checkDrawInspectContour(), GNEAttributeCarrier::checkDrawOverContour(), GNEAttributeCarrier::checkDrawRelatedContour(), GNEAttributeCarrier::checkDrawSelectContour(), GNEAttributeCarrier::checkDrawToContour(), GUIVisualizationSettings::drawDottedContour(), GUIDottedGeometry::FROM, GUIDottedGeometry::FRONT, GUIDottedGeometry::INSPECT, myAC, GUIDottedGeometry::OVER, GUIDottedGeometry::RELATED, GUIDottedGeometry::REMOVE, GUIDottedGeometry::SELECT, and GUIDottedGeometry::TO.
Referenced by GNECalibrator::drawCalibratorSymbol(), GNEEntryExitDetector::drawGL(), GNEInductionLoopDetector::drawGL(), GNEInstantInductionLoopDetector::drawGL(), GNERerouterSymbol::drawGL(), GNEContainer::drawGL(), GNEPerson::drawGL(), GNEVehicle::drawGL(), GNEPOI::drawGL(), GNEAdditional::drawListedAdditional(), and GNEAdditional::drawSquaredAdditional().
|
private |
pointer to AC
Definition at line 70 of file GNEContourElement.h.
Referenced by drawDottedContourCircle(), drawDottedContourClosed(), drawDottedContourEdge(), drawDottedContourExtruded(), and drawDottedContourRectangle().
|
private |
pointer to cached height
Definition at line 82 of file GNEContourElement.h.
Referenced by buildAndDrawDottedContourRectangle(), and ~GNEContourElement().
|
private |
pointer to cached position
Definition at line 73 of file GNEContourElement.h.
Referenced by buildAndDrawDottedContourCircle(), buildAndDrawDottedContourRectangle(), and ~GNEContourElement().
|
private |
pointer to cached rotation
Definition at line 85 of file GNEContourElement.h.
Referenced by buildAndDrawDottedContourRectangle(), and ~GNEContourElement().
|
private |
pointer to cached scale
Definition at line 88 of file GNEContourElement.h.
Referenced by buildAndDrawDottedContourCircle(), buildAndDrawDottedContourClosed(), buildAndDrawDottedContourExtruded(), buildAndDrawDottedContourRectangle(), and ~GNEContourElement().
|
private |
pointer to cached shape
Definition at line 76 of file GNEContourElement.h.
Referenced by buildAndDrawDottedContourClosed(), buildAndDrawDottedContourEdge(), buildAndDrawDottedContourExtruded(), and ~GNEContourElement().
|
private |
pointer to cached width
Definition at line 79 of file GNEContourElement.h.
Referenced by buildAndDrawDottedContourRectangle(), and ~GNEContourElement().
|
private |
pointer to dotted geometry A
Definition at line 94 of file GNEContourElement.h.
Referenced by buildAndDrawDottedContourCircle(), buildAndDrawDottedContourClosed(), buildAndDrawDottedContourEdge(), buildAndDrawDottedContourExtruded(), buildAndDrawDottedContourRectangle(), and ~GNEContourElement().
|
private |
pointer to dotted geometry B
Definition at line 97 of file GNEContourElement.h.
Referenced by buildAndDrawDottedContourEdge(), buildAndDrawDottedContourExtruded(), and ~GNEContourElement().
|
private |
pointer to dotted geometry C
Definition at line 100 of file GNEContourElement.h.
Referenced by buildAndDrawDottedContourEdge(), buildAndDrawDottedContourExtruded(), and ~GNEContourElement().
|
private |
dotted geometry color
Definition at line 91 of file GNEContourElement.h.
Referenced by buildAndDrawDottedContourCircle(), buildAndDrawDottedContourClosed(), buildAndDrawDottedContourEdge(), buildAndDrawDottedContourExtruded(), buildAndDrawDottedContourRectangle(), and ~GNEContourElement().