Eclipse SUMO - Simulation of Urban MObility
GNEFrameModuls::PathCreator Class Reference

#include <GNEFrameModuls.h>

Inheritance diagram for GNEFrameModuls::PathCreator:
Collaboration diagram for GNEFrameModuls::PathCreator:

Data Structures

class  Path
 FOX-declaration. More...
 

Public Member Functions

void abortPathCreation ()
 abort path creation More...
 
bool addEdge (GNEEdge *edge, const bool shiftKeyPressed, const bool controlKeyPressed)
 add edge More...
 
bool addRoute (GNEDemandElement *route, const bool shiftKeyPressed, const bool controlKeyPressed)
 add route More...
 
bool addStoppingPlace (GNEAdditional *stoppingPlace, const bool shiftKeyPressed, const bool controlKeyPressed)
 add stoppingPlace More...
 
void createPath ()
 create path More...
 
bool drawCandidateEdgesWithSpecialColor () const
 draw candidate edges with special color (Only for candidates, special and conflicted) More...
 
void drawTemporalRoute (const GUIVisualizationSettings &s) const
 draw temporal route More...
 
GNEAdditionalgetFromStoppingPlace (SumoXMLTag expectedTag) const
 get from stoppingPlace More...
 
const std::vector< Path > & getPath () const
 get path route More...
 
GNEDemandElementgetRoute () const
 get route More...
 
std::vector< GNEEdge * > getSelectedEdges () const
 get current selected additionals More...
 
GNEAdditionalgetToStoppingPlace (SumoXMLTag expectedTag) const
 get to stoppingPlace More...
 
SUMOVehicleClass getVClass () const
 get vClass More...
 
void hidePathCreatorModul ()
 show PathCreator More...
 
 PathCreator (GNEFrame *frameParent)
 default constructor More...
 
void removeLastElement ()
 remove path element More...
 
void setVClass (SUMOVehicleClass vClass)
 set vClass More...
 
void showPathCreatorModul (SumoXMLTag tag, const bool firstElement, const bool consecutives)
 show PathCreator for the given tag More...
 
void updateEdgeColors ()
 update edge colors More...
 
 ~PathCreator ()
 destructor More...
 
FOX-callbacks

Called when the user click over button "Finish route creation"

long onCmdCreatePath (FXObject *, FXSelector, void *)
 
long onCmdAbortPathCreation (FXObject *, FXSelector, void *)
 Called when the user click over button "Abort route creation". More...
 
long onCmdRemoveLastElement (FXObject *, FXSelector, void *)
 Called when the user click over button "Remove las inserted edge". More...
 
long onCmdShowCandidateEdges (FXObject *, FXSelector, void *)
 Called when the user click over check button "show candidate edges". More...
 

Protected Types

enum  Mode {
  CONSECUTIVE_EDGES = 1 << 0 , NONCONSECUTIVE_EDGES = 1 << 1 , START_EDGE = 1 << 2 , END_EDGE = 1 << 3 ,
  SINGLE_ELEMENT = 1 << 4 , ONLY_FROMTO = 1 << 5 , START_BUSSTOP = 1 << 6 , END_BUSSTOP = 1 << 7 ,
  ROUTE = 1 << 8 , REQUIERE_FIRSTELEMENT = 1 << 9 , SHOW_CANDIDATE_EDGES = 1 << 10
}
 

Protected Member Functions

void clearPath ()
 clear edges (and restore colors) More...
 
void recalculatePath ()
 recalculate path More...
 
void setPossibleCandidates (GNEEdge *originEdge, const SUMOVehicleClass vClass)
 set edgereachability (This function will be called recursively) More...
 
void setSpecialCandidates (GNEEdge *originEdge)
 set special candidates (This function will be called recursively) More...
 
void updateInfoRouteLabel ()
 update InfoRouteLabel More...
 

Protected Attributes

FXButton * myAbortCreationButton
 button for abort route creation More...
 
FXLabel * myControlLabel
 label for control information More...
 
int myCreationMode
 current creation mode More...
 
FXButton * myFinishCreationButton
 button for finish route creation More...
 
GNEFramemyFrameParent
 current frame parent More...
 
GNEAdditionalmyFromStoppingPlace
 from additional (usually a busStop) More...
 
FXLabel * myInfoRouteLabel
 label with route info More...
 
std::vector< PathmyPath
 vector with current path More...
 
FXButton * myRemoveLastInsertedElement
 button for removing last inserted element More...
 
GNEDemandElementmyRoute
 route (usually a busStop) More...
 
std::vector< GNEEdge * > mySelectedEdges
 vector with selected edges More...
 
FXLabel * myShiftLabel
 label for shift information More...
 
FXCheckButton * myShowCandidateEdges
 CheckBox for show candidate edges. More...
 
GNEAdditionalmyToStoppingPlace
 to additional (usually a busStop) More...
 
SUMOVehicleClass myVClass
 current vClass More...
 

Private Member Functions

PathCreatoroperator= (PathCreator *)=delete
 Invalidated assignment operator. More...
 
 PathCreator (PathCreator *)=delete
 Invalidated copy constructor. More...
 

Detailed Description

Definition at line 522 of file GNEFrameModuls.h.

Member Enumeration Documentation

◆ Mode

Enumerator
CONSECUTIVE_EDGES 
NONCONSECUTIVE_EDGES 
START_EDGE 
END_EDGE 
SINGLE_ELEMENT 
ONLY_FROMTO 
START_BUSSTOP 
END_BUSSTOP 
ROUTE 
REQUIERE_FIRSTELEMENT 
SHOW_CANDIDATE_EDGES 

Definition at line 658 of file GNEFrameModuls.h.

Constructor & Destructor Documentation

◆ PathCreator() [1/2]

◆ ~PathCreator()

GNEFrameModuls::PathCreator::~PathCreator ( )

destructor

Definition at line 2083 of file GNEFrameModuls.cpp.

◆ PathCreator() [2/2]

GNEFrameModuls::PathCreator::PathCreator ( PathCreator )
privatedelete

Invalidated copy constructor.

Member Function Documentation

◆ abortPathCreation()

void GNEFrameModuls::PathCreator::abortPathCreation ( )

◆ addEdge()

bool GNEFrameModuls::PathCreator::addEdge ( GNEEdge edge,
const bool  shiftKeyPressed,
const bool  controlKeyPressed 
)

◆ addRoute()

bool GNEFrameModuls::PathCreator::addRoute ( GNEDemandElement route,
const bool  shiftKeyPressed,
const bool  controlKeyPressed 
)

add route

Definition at line 2391 of file GNEFrameModuls.cpp.

References ROUTE.

Referenced by GNEPersonFrame::addPerson(), and GNEPersonPlanFrame::addPersonPlanElement().

Here is the caller graph for this function:

◆ addStoppingPlace()

bool GNEFrameModuls::PathCreator::addStoppingPlace ( GNEAdditional stoppingPlace,
const bool  shiftKeyPressed,
const bool  controlKeyPressed 
)

add stoppingPlace

Definition at line 2318 of file GNEFrameModuls.cpp.

Referenced by GNEPersonFrame::addPerson(), and GNEPersonPlanFrame::addPersonPlanElement().

Here is the caller graph for this function:

◆ clearPath()

void GNEFrameModuls::PathCreator::clearPath ( )
protected

clear edges (and restore colors)

Definition at line 2682 of file GNEFrameModuls.cpp.

◆ createPath()

void GNEFrameModuls::PathCreator::createPath ( )

create path

Definition at line 2552 of file GNEFrameModuls.cpp.

Referenced by GNEViewNet::hotkeyEnter().

Here is the caller graph for this function:

◆ drawCandidateEdgesWithSpecialColor()

bool GNEFrameModuls::PathCreator::drawCandidateEdgesWithSpecialColor ( ) const

draw candidate edges with special color (Only for candidates, special and conflicted)

Definition at line 2423 of file GNEFrameModuls.cpp.

Referenced by GNELane::setLaneColor().

Here is the caller graph for this function:

◆ drawTemporalRoute()

◆ getFromStoppingPlace()

GNEAdditional * GNEFrameModuls::PathCreator::getFromStoppingPlace ( SumoXMLTag  expectedTag) const

get from stoppingPlace

Definition at line 2371 of file GNEFrameModuls.cpp.

Referenced by GNERouteHandler::buildPersonPlan().

Here is the caller graph for this function:

◆ getPath()

const std::vector< GNEFrameModuls::PathCreator::Path > & GNEFrameModuls::PathCreator::getPath ( ) const

get path route

Definition at line 2417 of file GNEFrameModuls.cpp.

Referenced by GNERouteHandler::buildPersonPlan(), GNERouteFrame::createPath(), and GNEVehicleFrame::createPath().

Here is the caller graph for this function:

◆ getRoute()

GNEDemandElement * GNEFrameModuls::PathCreator::getRoute ( ) const

get route

Definition at line 2411 of file GNEFrameModuls.cpp.

Referenced by GNERouteHandler::buildPersonPlan().

Here is the caller graph for this function:

◆ getSelectedEdges()

std::vector< GNEEdge * > GNEFrameModuls::PathCreator::getSelectedEdges ( ) const

get current selected additionals

Definition at line 2312 of file GNEFrameModuls.cpp.

Referenced by GNERouteHandler::buildPersonPlan(), GNEEdgeRelDataFrame::createPath(), GNERouteFrame::createPath(), and GNEVehicleFrame::createPath().

Here is the caller graph for this function:

◆ getToStoppingPlace()

GNEAdditional * GNEFrameModuls::PathCreator::getToStoppingPlace ( SumoXMLTag  expectedTag) const

get to stoppingPlace

Definition at line 2381 of file GNEFrameModuls.cpp.

Referenced by GNERouteHandler::buildPersonPlan().

Here is the caller graph for this function:

◆ getVClass()

SUMOVehicleClass GNEFrameModuls::PathCreator::getVClass ( ) const

get vClass

Definition at line 2217 of file GNEFrameModuls.cpp.

Referenced by GNERouteFrame::createPath().

Here is the caller graph for this function:

◆ hidePathCreatorModul()

void GNEFrameModuls::PathCreator::hidePathCreatorModul ( )

◆ onCmdAbortPathCreation()

long GNEFrameModuls::PathCreator::onCmdAbortPathCreation ( FXObject *  ,
FXSelector  ,
void *   
)

Called when the user click over button "Abort route creation".

Definition at line 2619 of file GNEFrameModuls.cpp.

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onCmdCreatePath()

long GNEFrameModuls::PathCreator::onCmdCreatePath ( FXObject *  ,
FXSelector  ,
void *   
)

Definition at line 2611 of file GNEFrameModuls.cpp.

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onCmdRemoveLastElement()

long GNEFrameModuls::PathCreator::onCmdRemoveLastElement ( FXObject *  ,
FXSelector  ,
void *   
)

Called when the user click over button "Remove las inserted edge".

Definition at line 2627 of file GNEFrameModuls.cpp.

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onCmdShowCandidateEdges()

long GNEFrameModuls::PathCreator::onCmdShowCandidateEdges ( FXObject *  ,
FXSelector  ,
void *   
)

Called when the user click over check button "show candidate edges".

Definition at line 2635 of file GNEFrameModuls.cpp.

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ operator=()

PathCreator& GNEFrameModuls::PathCreator::operator= ( PathCreator )
privatedelete

Invalidated assignment operator.

◆ recalculatePath()

void GNEFrameModuls::PathCreator::recalculatePath ( )
protected

recalculate path

Definition at line 2700 of file GNEFrameModuls.cpp.

◆ removeLastElement()

void GNEFrameModuls::PathCreator::removeLastElement ( )

remove path element

Definition at line 2581 of file GNEFrameModuls.cpp.

Referenced by GNEViewNet::hotkeyBackSpace().

Here is the caller graph for this function:

◆ setPossibleCandidates()

void GNEFrameModuls::PathCreator::setPossibleCandidates ( GNEEdge originEdge,
const SUMOVehicleClass  vClass 
)
protected

set edgereachability (This function will be called recursively)

Definition at line 2750 of file GNEFrameModuls.cpp.

◆ setSpecialCandidates()

void GNEFrameModuls::PathCreator::setSpecialCandidates ( GNEEdge originEdge)
protected

set special candidates (This function will be called recursively)

Definition at line 2735 of file GNEFrameModuls.cpp.

References SVC_PEDESTRIAN.

◆ setVClass()

void GNEFrameModuls::PathCreator::setVClass ( SUMOVehicleClass  vClass)

◆ showPathCreatorModul()

◆ updateEdgeColors()

void GNEFrameModuls::PathCreator::updateEdgeColors ( )

update edge colors

Definition at line 2429 of file GNEFrameModuls.cpp.

◆ updateInfoRouteLabel()

void GNEFrameModuls::PathCreator::updateInfoRouteLabel ( )
protected

update InfoRouteLabel

Definition at line 2653 of file GNEFrameModuls.cpp.

References toString().

Field Documentation

◆ myAbortCreationButton

FXButton* GNEFrameModuls::PathCreator::myAbortCreationButton
protected

button for abort route creation

Definition at line 718 of file GNEFrameModuls.h.

Referenced by PathCreator().

◆ myControlLabel

FXLabel* GNEFrameModuls::PathCreator::myControlLabel
protected

label for control information

Definition at line 730 of file GNEFrameModuls.h.

Referenced by PathCreator().

◆ myCreationMode

int GNEFrameModuls::PathCreator::myCreationMode
protected

current creation mode

Definition at line 694 of file GNEFrameModuls.h.

◆ myFinishCreationButton

FXButton* GNEFrameModuls::PathCreator::myFinishCreationButton
protected

button for finish route creation

Definition at line 715 of file GNEFrameModuls.h.

Referenced by PathCreator().

◆ myFrameParent

GNEFrame* GNEFrameModuls::PathCreator::myFrameParent
protected

current frame parent

Definition at line 688 of file GNEFrameModuls.h.

◆ myFromStoppingPlace

GNEAdditional* GNEFrameModuls::PathCreator::myFromStoppingPlace
protected

from additional (usually a busStop)

Definition at line 700 of file GNEFrameModuls.h.

◆ myInfoRouteLabel

FXLabel* GNEFrameModuls::PathCreator::myInfoRouteLabel
protected

label with route info

Definition at line 712 of file GNEFrameModuls.h.

Referenced by PathCreator().

◆ myPath

std::vector<Path> GNEFrameModuls::PathCreator::myPath
protected

vector with current path

Definition at line 709 of file GNEFrameModuls.h.

◆ myRemoveLastInsertedElement

FXButton* GNEFrameModuls::PathCreator::myRemoveLastInsertedElement
protected

button for removing last inserted element

Definition at line 721 of file GNEFrameModuls.h.

Referenced by PathCreator().

◆ myRoute

GNEDemandElement* GNEFrameModuls::PathCreator::myRoute
protected

route (usually a busStop)

Definition at line 706 of file GNEFrameModuls.h.

◆ mySelectedEdges

std::vector<GNEEdge*> GNEFrameModuls::PathCreator::mySelectedEdges
protected

vector with selected edges

Definition at line 697 of file GNEFrameModuls.h.

◆ myShiftLabel

FXLabel* GNEFrameModuls::PathCreator::myShiftLabel
protected

label for shift information

Definition at line 727 of file GNEFrameModuls.h.

Referenced by PathCreator().

◆ myShowCandidateEdges

FXCheckButton* GNEFrameModuls::PathCreator::myShowCandidateEdges
protected

CheckBox for show candidate edges.

Definition at line 724 of file GNEFrameModuls.h.

Referenced by PathCreator().

◆ myToStoppingPlace

GNEAdditional* GNEFrameModuls::PathCreator::myToStoppingPlace
protected

to additional (usually a busStop)

Definition at line 703 of file GNEFrameModuls.h.

◆ myVClass

SUMOVehicleClass GNEFrameModuls::PathCreator::myVClass
protected

current vClass

Definition at line 691 of file GNEFrameModuls.h.


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