Eclipse SUMO - Simulation of Urban MObility
GNEPathManager::PathDraw Class Reference

class used to mark path draw More...

#include <GNEPathManager.h>

Public Member Functions

bool checkDrawPathGeometry (const GUIVisualizationSettings &s, const GNELane *lane, SumoXMLTag tag)
 check if path element geometry must be drawn in the given lane More...
 
bool checkDrawPathGeometry (const GUIVisualizationSettings &s, const Segment *segment, SumoXMLTag tag)
 check if path element geometry must be drawn in the given junction More...
 
void clearPathDraw ()
 clear path draw More...
 
 PathDraw ()
 constructor More...
 
 ~PathDraw ()
 destructor More...
 

Private Attributes

std::map< const std::pair< const GNELane *, const GNELane * >, std::set< SumoXMLTag > > myLane2laneDrawedElements
 map for saving tags drawn in junctions More...
 
std::map< const GNELane *, std::set< SumoXMLTag > > myLaneDrawedElements
 map for saving tags drawn in lanes More...
 

Detailed Description

class used to mark path draw

Definition at line 265 of file GNEPathManager.h.

Constructor & Destructor Documentation

◆ PathDraw()

GNEPathManager::PathDraw::PathDraw ( )

constructor

Definition at line 550 of file GNEPathManager.cpp.

◆ ~PathDraw()

GNEPathManager::PathDraw::~PathDraw ( )

destructor

Definition at line 553 of file GNEPathManager.cpp.

Member Function Documentation

◆ checkDrawPathGeometry() [1/2]

bool GNEPathManager::PathDraw::checkDrawPathGeometry ( const GUIVisualizationSettings s,
const GNELane lane,
SumoXMLTag  tag 
)

check if path element geometry must be drawn in the given lane

Definition at line 565 of file GNEPathManager.cpp.

References GUIVisualizationSettings::drawForViewObjectsHandler.

Referenced by GNERoute::drawJunctionPartialGL(), GNEVehicle::drawJunctionPartialGL(), GNERoute::drawLanePartialGL(), GNEVehicle::drawLanePartialGL(), GNEDemandElementPlan::drawPlanJunctionPartial(), and GNEDemandElementPlan::drawPlanLanePartial().

Here is the caller graph for this function:

◆ checkDrawPathGeometry() [2/2]

bool GNEPathManager::PathDraw::checkDrawPathGeometry ( const GUIVisualizationSettings s,
const Segment segment,
SumoXMLTag  tag 
)

check if path element geometry must be drawn in the given junction

Definition at line 590 of file GNEPathManager.cpp.

References GUIVisualizationSettings::drawForViewObjectsHandler, GNEPathManager::Segment::getNextLane(), and GNEPathManager::Segment::getPreviousLane().

◆ clearPathDraw()

void GNEPathManager::PathDraw::clearPathDraw ( )

clear path draw

Definition at line 557 of file GNEPathManager.cpp.

Referenced by GNEViewNet::doPaintGL().

Here is the caller graph for this function:

Field Documentation

◆ myLane2laneDrawedElements

std::map<const std::pair<const GNELane*, const GNELane*>, std::set<SumoXMLTag> > GNEPathManager::PathDraw::myLane2laneDrawedElements
private

map for saving tags drawn in junctions

Definition at line 288 of file GNEPathManager.h.

◆ myLaneDrawedElements

std::map<const GNELane*, std::set<SumoXMLTag> > GNEPathManager::PathDraw::myLaneDrawedElements
private

map for saving tags drawn in lanes

Definition at line 285 of file GNEPathManager.h.


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