![]() |
Eclipse SUMO - Simulation of Urban MObility
|
#include <GNERouteFrame.h>
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... | |
GNERouteFrame * | myRouteFrameParent |
pointer to Vehicle Frame Parent More... | |
std::vector< GNEEdge * > | mySelectedEdges |
current selected edges More... | |
std::vector< GNEEdge * > | myTemporalRoute |
vector with temporal route edges More... | |
Definition at line 179 of file GNERouteFrame.h.
GNERouteFrame::NonConsecutiveEdges::NonConsecutiveEdges | ( | GNERouteFrame * | routeFrameParent | ) |
FOX-declaration.
default constructor
Definition at line 506 of file GNERouteFrame.cpp.
References GUIDesignButton, GUIDesignLabelFrameInformation, MID_GNE_EDGEPATH_ABORT, MID_GNE_EDGEPATH_FINISH, MID_GNE_EDGEPATH_REMOVELAST, myAbortCreationButton, myFinishCreationButton, myInfoRouteLabel, and myRemoveLastInsertedEdge.
GNERouteFrame::NonConsecutiveEdges::~NonConsecutiveEdges | ( | ) |
destructor
Definition at line 523 of file GNERouteFrame.cpp.
bool GNERouteFrame::NonConsecutiveEdges::addEdge | ( | GNEEdge * | edge | ) |
set edge from (and change color)
Definition at line 553 of file GNERouteFrame.cpp.
References GNEDemandElement::RouteCalculator::calculateDijkstraRoute(), GNEEdge::getLanes(), and GNEDemandElement::getRouteCalculatorInstance().
Referenced by GNERouteFrame::handleEdgeClick().
void GNERouteFrame::NonConsecutiveEdges::clearEdges | ( | ) |
clear edges (and restore colors)
Definition at line 587 of file GNERouteFrame.cpp.
std::vector< GNEEdge * > GNERouteFrame::NonConsecutiveEdges::getSelectedEdges | ( | ) | const |
get current selected edgesm
Definition at line 547 of file GNERouteFrame.cpp.
const std::vector< GNEEdge * > & GNERouteFrame::NonConsecutiveEdges::getTemporalRoute | ( | ) | const |
get temporal route
Definition at line 601 of file GNERouteFrame.cpp.
Referenced by GNERouteFrame::drawTemporalRoute().
void GNERouteFrame::NonConsecutiveEdges::hideNonConsecutiveEdgesModul | ( | ) |
show NonConsecutiveEdges
Definition at line 541 of file GNERouteFrame.cpp.
References GNERouteFrame::hide().
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.
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().
long GNERouteFrame::NonConsecutiveEdges::onCmdCreateRoute | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
Definition at line 613 of file GNERouteFrame.cpp.
References GNERouteHandler::RouteParameter::color, GNERouteHandler::RouteParameter::edges, GNEAttributeCarrier::getTagStr(), GNERouteHandler::RouteParameter::routeID, SUMO_ATTR_COLOR, SUMO_ATTR_ID, SUMO_TAG_ROUTE, and GNERouteHandler::RouteParameter::vClass.
Referenced by GNERouteFrame::hotkeyEnter().
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().
void GNERouteFrame::NonConsecutiveEdges::showNonConsecutiveEdgesModul | ( | ) |
show NonConsecutiveEdges
Definition at line 528 of file GNERouteFrame.cpp.
References GNERouteFrame::show().
|
protected |
|
private |
button for abort route creation
Definition at line 246 of file GNERouteFrame.h.
Referenced by NonConsecutiveEdges().
|
private |
button for finish route creation
Definition at line 243 of file GNERouteFrame.h.
Referenced by NonConsecutiveEdges().
|
private |
label with route info
Definition at line 234 of file GNERouteFrame.h.
Referenced by NonConsecutiveEdges().
|
private |
button for removing last inserted edge
Definition at line 249 of file GNERouteFrame.h.
Referenced by NonConsecutiveEdges().
|
private |
pointer to Vehicle Frame Parent
Definition at line 231 of file GNERouteFrame.h.
|
private |
current selected edges
Definition at line 237 of file GNERouteFrame.h.
|
private |
vector with temporal route edges
Definition at line 240 of file GNERouteFrame.h.