Eclipse SUMO - Simulation of Urban MObility
GNEContourElement Class Reference

#include <GNEContourElement.h>

Inheritance diagram for GNEContourElement:
[legend]
Collaboration diagram for GNEContourElement:
[legend]

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

GNEAttributeCarriermyAC
 pointer to AC More...
 
double * myCachedHeight
 pointer to cached height More...
 
PositionmyCachedPosition
 pointer to cached position More...
 
double * myCachedRot
 pointer to cached rotation More...
 
double * myCachedScale
 pointer to cached scale More...
 
PositionVectormyCachedShape
 pointer to cached shape More...
 
double * myCachedWidth
 pointer to cached width More...
 
GUIDottedGeometrymyDottedGeometryA
 pointer to dotted geometry A More...
 
GUIDottedGeometrymyDottedGeometryB
 pointer to dotted geometry B More...
 
GUIDottedGeometrymyDottedGeometryC
 pointer to dotted geometry C More...
 
GUIDottedGeometry::DottedGeometryColormyDottedGeometryColor
 dotted geometry color More...
 

Detailed Description

Definition at line 37 of file GNEContourElement.h.

Constructor & Destructor Documentation

◆ GNEContourElement()

GNEContourElement::GNEContourElement ( GNEAttributeCarrier AC)
protected

Constructor.

Definition at line 36 of file GNEContourElement.cpp.

◆ ~GNEContourElement()

GNEContourElement::~GNEContourElement ( )
protected

Member Function Documentation

◆ buildAndDrawDottedContourCircle()

void GNEContourElement::buildAndDrawDottedContourCircle ( const GUIVisualizationSettings s,
GUIDottedGeometry::DottedContourType  type,
const Position pos,
double  radius,
const double  scale,
const double  lineWidth 
) const
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().

Here is the caller graph for this function:

◆ buildAndDrawDottedContourClosed()

void GNEContourElement::buildAndDrawDottedContourClosed ( const GUIVisualizationSettings s,
const GUIDottedGeometry::DottedContourType  type,
const PositionVector shape,
const double  scale,
const double  lineWidth 
) const
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().

Here is the caller graph for this function:

◆ buildAndDrawDottedContourEdge()

◆ buildAndDrawDottedContourExtruded()

void GNEContourElement::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
private

◆ buildAndDrawDottedContourRectangle()

void GNEContourElement::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
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().

Here is the caller graph for this function:

◆ drawDottedContourCircle()

◆ drawDottedContourClosed()

◆ drawDottedContourEdge()

◆ drawDottedContourExtruded()

void GNEContourElement::drawDottedContourExtruded ( const GUIVisualizationSettings s,
const PositionVector shape,
const double  extrusionWidth,
const double  scale,
const bool  drawFirstExtrem,
const bool  drawLastExtrem,
const double  lineWidth 
) const
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().

Here is the caller graph for this function:

◆ drawDottedContourRectangle()

void GNEContourElement::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
protected

Field Documentation

◆ myAC

◆ myCachedHeight

double* GNEContourElement::myCachedHeight
private

pointer to cached height

Definition at line 82 of file GNEContourElement.h.

Referenced by buildAndDrawDottedContourRectangle(), and ~GNEContourElement().

◆ myCachedPosition

Position* GNEContourElement::myCachedPosition
private

pointer to cached position

Definition at line 73 of file GNEContourElement.h.

Referenced by buildAndDrawDottedContourCircle(), buildAndDrawDottedContourRectangle(), and ~GNEContourElement().

◆ myCachedRot

double* GNEContourElement::myCachedRot
private

pointer to cached rotation

Definition at line 85 of file GNEContourElement.h.

Referenced by buildAndDrawDottedContourRectangle(), and ~GNEContourElement().

◆ myCachedScale

double* GNEContourElement::myCachedScale
private

◆ myCachedShape

PositionVector* GNEContourElement::myCachedShape
private

◆ myCachedWidth

double* GNEContourElement::myCachedWidth
private

pointer to cached width

Definition at line 79 of file GNEContourElement.h.

Referenced by buildAndDrawDottedContourRectangle(), and ~GNEContourElement().

◆ myDottedGeometryA

◆ myDottedGeometryB

GUIDottedGeometry* GNEContourElement::myDottedGeometryB
private

pointer to dotted geometry B

Definition at line 97 of file GNEContourElement.h.

Referenced by buildAndDrawDottedContourEdge(), buildAndDrawDottedContourExtruded(), and ~GNEContourElement().

◆ myDottedGeometryC

GUIDottedGeometry* GNEContourElement::myDottedGeometryC
private

pointer to dotted geometry C

Definition at line 100 of file GNEContourElement.h.

Referenced by buildAndDrawDottedContourEdge(), buildAndDrawDottedContourExtruded(), and ~GNEContourElement().

◆ myDottedGeometryColor


The documentation for this class was generated from the following files: