Eclipse SUMO - Simulation of Urban MObility
GNERouteFrame::NonConsecutiveEdges Class Reference

#include <GNERouteFrame.h>

Inheritance diagram for GNERouteFrame::NonConsecutiveEdges:
Collaboration diagram for GNERouteFrame::NonConsecutiveEdges:

Public Member Functions

bool addEdge (GNEEdge *edge)
 set edge from (and change color) More...
 
void clearEdges ()
 clear edges (and restore colors) More...
 
std::vector< GNEEdge * > getSelectedEdges () const
 get current selected edgesm More...
 
const std::vector< GNEEdge * > & getTemporalRoute () const
 get temporal route More...
 
void hideNonConsecutiveEdgesModul ()
 show NonConsecutiveEdges More...
 
bool isValid (SUMOVehicleClass vehicleClass) const
 check if from and to edges create a valid route More...
 
 NonConsecutiveEdges (GNERouteFrame *routeFrameParent)
 FOX-declaration. More...
 
void showNonConsecutiveEdgesModul ()
 show NonConsecutiveEdges More...
 
 ~NonConsecutiveEdges ()
 destructor More...
 
FOX-callbacks

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

long onCmdCreateRoute (FXObject *, FXSelector, void *)
 
long onCmdAbortRoute (FXObject *, FXSelector, void *)
 Called when the user click over button "Abort route creation". More...
 
long onCmdRemoveLastRouteEdge (FXObject *, FXSelector, void *)
 Called when the user click over button "Remove las inserted edge". More...
 

Protected Member Functions

void updateInfoRouteLabel ()
 update InfoRouteLabel More...
 

Private Attributes

FXButton * myAbortCreationButton
 button for abort route creation More...
 
FXButton * myFinishCreationButton
 button for finish route creation More...
 
FXLabel * myInfoRouteLabel
 label with route info More...
 
FXButton * myRemoveLastInsertedEdge
 button for removing last inserted edge More...
 
GNERouteFramemyRouteFrameParent
 pointer to Vehicle Frame Parent More...
 
std::vector< GNEEdge * > mySelectedEdges
 current selected edges More...
 
std::vector< GNEEdge * > myTemporalRoute
 vector with temporal route edges More...
 

Detailed Description

Definition at line 179 of file GNERouteFrame.h.

Constructor & Destructor Documentation

◆ NonConsecutiveEdges()

GNERouteFrame::NonConsecutiveEdges::NonConsecutiveEdges ( GNERouteFrame routeFrameParent)

◆ ~NonConsecutiveEdges()

GNERouteFrame::NonConsecutiveEdges::~NonConsecutiveEdges ( )

destructor

Definition at line 523 of file GNERouteFrame.cpp.

Member Function Documentation

◆ addEdge()

bool GNERouteFrame::NonConsecutiveEdges::addEdge ( GNEEdge edge)

◆ clearEdges()

void GNERouteFrame::NonConsecutiveEdges::clearEdges ( )

clear edges (and restore colors)

Definition at line 587 of file GNERouteFrame.cpp.

◆ getSelectedEdges()

std::vector< GNEEdge * > GNERouteFrame::NonConsecutiveEdges::getSelectedEdges ( ) const

get current selected edgesm

Definition at line 547 of file GNERouteFrame.cpp.

◆ getTemporalRoute()

const std::vector< GNEEdge * > & GNERouteFrame::NonConsecutiveEdges::getTemporalRoute ( ) const

get temporal route

Definition at line 601 of file GNERouteFrame.cpp.

Referenced by GNERouteFrame::drawTemporalRoute().

◆ hideNonConsecutiveEdgesModul()

void GNERouteFrame::NonConsecutiveEdges::hideNonConsecutiveEdgesModul ( )

show NonConsecutiveEdges

Definition at line 541 of file GNERouteFrame.cpp.

References GNERouteFrame::hide().

◆ isValid()

bool GNERouteFrame::NonConsecutiveEdges::isValid ( SUMOVehicleClass  vehicleClass) const

check if from and to edges create a valid route

Definition at line 607 of file GNERouteFrame.cpp.

◆ onCmdAbortRoute()

long GNERouteFrame::NonConsecutiveEdges::onCmdAbortRoute ( FXObject *  ,
FXSelector  ,
void *   
)

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

Definition at line 649 of file GNERouteFrame.cpp.

Referenced by GNERouteFrame::hotkeyEsc().

◆ onCmdCreateRoute()

◆ onCmdRemoveLastRouteEdge()

long GNERouteFrame::NonConsecutiveEdges::onCmdRemoveLastRouteEdge ( FXObject *  ,
FXSelector  ,
void *   
)

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

Definition at line 670 of file GNERouteFrame.cpp.

References GNEDemandElement::RouteCalculator::calculateDijkstraRoute(), and GNEDemandElement::getRouteCalculatorInstance().

Referenced by GNERouteFrame::hotkeyBackSpace().

◆ showNonConsecutiveEdgesModul()

void GNERouteFrame::NonConsecutiveEdges::showNonConsecutiveEdgesModul ( )

show NonConsecutiveEdges

Definition at line 528 of file GNERouteFrame.cpp.

References GNERouteFrame::show().

◆ updateInfoRouteLabel()

void GNERouteFrame::NonConsecutiveEdges::updateInfoRouteLabel ( )
protected

update InfoRouteLabel

Definition at line 700 of file GNERouteFrame.cpp.

References toString().

Field Documentation

◆ myAbortCreationButton

FXButton* GNERouteFrame::NonConsecutiveEdges::myAbortCreationButton
private

button for abort route creation

Definition at line 246 of file GNERouteFrame.h.

Referenced by NonConsecutiveEdges().

◆ myFinishCreationButton

FXButton* GNERouteFrame::NonConsecutiveEdges::myFinishCreationButton
private

button for finish route creation

Definition at line 243 of file GNERouteFrame.h.

Referenced by NonConsecutiveEdges().

◆ myInfoRouteLabel

FXLabel* GNERouteFrame::NonConsecutiveEdges::myInfoRouteLabel
private

label with route info

Definition at line 234 of file GNERouteFrame.h.

Referenced by NonConsecutiveEdges().

◆ myRemoveLastInsertedEdge

FXButton* GNERouteFrame::NonConsecutiveEdges::myRemoveLastInsertedEdge
private

button for removing last inserted edge

Definition at line 249 of file GNERouteFrame.h.

Referenced by NonConsecutiveEdges().

◆ myRouteFrameParent

GNERouteFrame* GNERouteFrame::NonConsecutiveEdges::myRouteFrameParent
private

pointer to Vehicle Frame Parent

Definition at line 231 of file GNERouteFrame.h.

◆ mySelectedEdges

std::vector<GNEEdge*> GNERouteFrame::NonConsecutiveEdges::mySelectedEdges
private

current selected edges

Definition at line 237 of file GNERouteFrame.h.

◆ myTemporalRoute

std::vector<GNEEdge*> GNERouteFrame::NonConsecutiveEdges::myTemporalRoute
private

vector with temporal route edges

Definition at line 240 of file GNERouteFrame.h.


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