![]() |
Eclipse SUMO - Simulation of Urban MObility
|
#include <GNEPersonPlanFrame.h>
Public Member Functions | |
void | abortPersonPlanCreation () |
abort person plan creation More... | |
bool | addEdge (GNEEdge *edge) |
add edge to route More... | |
void | drawTemporalRoute () const |
draw temporal route More... | |
void | edgePathCreatorName (const std::string &name) |
update PersonPlanCreator name More... | |
void | finishPersonPlanCreation () |
finish person plan creation More... | |
std::vector< GNEEdge * > | getClickedEdges () const |
get clicked edges More... | |
const std::vector< GNEEdge * > & | getEdgePath () const |
get current edge path More... | |
void | hidePersonPlanCreator () |
show PersonPlanCreator More... | |
PersonPlanCreator (GNEPersonPlanFrame *frameParent) | |
FOX-declaration. More... | |
void | refreshPersonPlanCreator () |
show PersonPlanCreator More... | |
void | removeLastAddedElement () |
remove last added element More... | |
void | showPersonPlanCreator () |
show PersonPlanCreator More... | |
~PersonPlanCreator () | |
destructor More... | |
FOX-callbacks | |
Called when the user click over button "Abort route creation" | |
long | onCmdAbortPersonPlanCreation (FXObject *, FXSelector, void *) |
long | onCmdFinishPersonPlanCreation (FXObject *, FXSelector, void *) |
Called when the user click over button "Finish route creation". More... | |
long | onCmdRemoveLastElement (FXObject *, FXSelector, void *) |
Called when the user click over button "Remove last inserted edge". More... | |
Private Attributes | |
FXButton * | myAbortCreationButton |
button for abort route creation More... | |
std::vector< GNEEdge * > | myClickedEdges |
current clicked edges More... | |
FXLabel * | myCurrentBeginElementLabel |
Label with current begin element. More... | |
FXButton * | myFinishCreationButton |
button for finish route creation More... | |
GNEPersonPlanFrame * | myPersonPlanFrameParent |
pointer to Person Plan Frame Parent More... | |
FXButton * | myRemoveLastEdge |
button for removing last edge More... | |
std::vector< GNEEdge * > | myTemporalEdgePath |
vector with temporal edge path More... | |
Definition at line 70 of file GNEPersonPlanFrame.h.
GNEPersonPlanFrame::PersonPlanCreator::PersonPlanCreator | ( | GNEPersonPlanFrame * | frameParent | ) |
FOX-declaration.
default constructor
Definition at line 147 of file GNEPersonPlanFrame.cpp.
References GUIDesignButton, GUIDesignLabelCenterThick, MID_GNE_EDGEPATH_ABORT, MID_GNE_EDGEPATH_FINISH, MID_GNE_EDGEPATH_REMOVELAST, myAbortCreationButton, myCurrentBeginElementLabel, myFinishCreationButton, and myRemoveLastEdge.
GNEPersonPlanFrame::PersonPlanCreator::~PersonPlanCreator | ( | ) |
destructor
Definition at line 168 of file GNEPersonPlanFrame.cpp.
void GNEPersonPlanFrame::PersonPlanCreator::abortPersonPlanCreation | ( | ) |
abort person plan creation
Definition at line 334 of file GNEPersonPlanFrame.cpp.
Referenced by GNEViewNet::abortOperation().
bool GNEPersonPlanFrame::PersonPlanCreator::addEdge | ( | GNEEdge * | edge | ) |
add edge to route
Definition at line 273 of file GNEPersonPlanFrame.cpp.
References GNEDemandElement::RouteCalculator::calculateDijkstraRoute(), GNEEdge::getLanes(), GNEDemandElement::getRouteCalculatorInstance(), SVC_PASSENGER, and SVC_PEDESTRIAN.
Referenced by GNEPersonPlanFrame::addPersonPlan(), and GNEPersonPlanFrame::personPlanCreated().
void GNEPersonPlanFrame::PersonPlanCreator::drawTemporalRoute | ( | ) | const |
draw temporal route
Definition at line 306 of file GNEPersonPlanFrame.cpp.
References GLHelper::drawLine(), GLO_MAX, RGBColor::ORANGE, and GLHelper::setColor().
Referenced by GNEViewNet::doPaintGL().
void GNEPersonPlanFrame::PersonPlanCreator::edgePathCreatorName | ( | const std::string & | name | ) |
update PersonPlanCreator name
Definition at line 172 of file GNEPersonPlanFrame.cpp.
Referenced by GNEPersonPlanFrame::demandElementSelected(), and GNEPersonPlanFrame::tagSelected().
void GNEPersonPlanFrame::PersonPlanCreator::finishPersonPlanCreation | ( | ) |
finish person plan creation
Definition at line 342 of file GNEPersonPlanFrame.cpp.
Referenced by GNEViewNet::hotkeyEnter().
std::vector< GNEEdge * > GNEPersonPlanFrame::PersonPlanCreator::getClickedEdges | ( | ) | const |
get clicked edges
Definition at line 261 of file GNEPersonPlanFrame.cpp.
Referenced by GNEPersonPlanFrame::personPlanCreated().
const std::vector< GNEEdge * > & GNEPersonPlanFrame::PersonPlanCreator::getEdgePath | ( | ) | const |
get current edge path
Definition at line 267 of file GNEPersonPlanFrame.cpp.
Referenced by GNEPersonPlanFrame::personPlanCreated().
void GNEPersonPlanFrame::PersonPlanCreator::hidePersonPlanCreator | ( | ) |
show PersonPlanCreator
Definition at line 192 of file GNEPersonPlanFrame.cpp.
References GNEPersonPlanFrame::hide().
Referenced by GNEPersonPlanFrame::demandElementSelected(), GNEPersonPlanFrame::hide(), GNEPersonPlanFrame::show(), and GNEPersonPlanFrame::tagSelected().
long GNEPersonPlanFrame::PersonPlanCreator::onCmdAbortPersonPlanCreation | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
Definition at line 358 of file GNEPersonPlanFrame.cpp.
Referenced by FXDEFMAP().
long GNEPersonPlanFrame::PersonPlanCreator::onCmdFinishPersonPlanCreation | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
Called when the user click over button "Finish route creation".
Definition at line 368 of file GNEPersonPlanFrame.cpp.
Referenced by FXDEFMAP().
long GNEPersonPlanFrame::PersonPlanCreator::onCmdRemoveLastElement | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
Called when the user click over button "Remove last inserted edge".
Definition at line 385 of file GNEPersonPlanFrame.cpp.
References GNEDemandElement::RouteCalculator::calculateDijkstraRoute(), GNEDemandElement::getRouteCalculatorInstance(), SVC_PASSENGER, and SVC_PEDESTRIAN.
Referenced by FXDEFMAP().
void GNEPersonPlanFrame::PersonPlanCreator::refreshPersonPlanCreator | ( | ) |
show PersonPlanCreator
Definition at line 213 of file GNEPersonPlanFrame.cpp.
References GNEHierarchicalChildElements::getChildDemandElements(), GNEHierarchicalParentElements::getParentAdditionals(), GNEHierarchicalParentElements::getParentDemandElements(), GNEHierarchicalParentElements::getParentEdges(), GNEHierarchicalParentElements::getParentLanes(), GNEPersonPlanFrame::hide(), GNEPersonPlanFrame::show(), SUMO_TAG_PERSONSTOP_BUSSTOP, SUMO_TAG_PERSONSTOP_LANE, SUMO_TAG_PERSONTRIP_BUSSTOP, SUMO_TAG_RIDE_BUSSTOP, SUMO_TAG_WALK_BUSSTOP, and SUMO_TAG_WALK_ROUTE.
Referenced by GNEPersonPlanFrame::personPlanCreated().
void GNEPersonPlanFrame::PersonPlanCreator::removeLastAddedElement | ( | ) |
remove last added element
Definition at line 350 of file GNEPersonPlanFrame.cpp.
Referenced by GNEViewNet::hotkeyBackSpace().
void GNEPersonPlanFrame::PersonPlanCreator::showPersonPlanCreator | ( | ) |
show PersonPlanCreator
Definition at line 183 of file GNEPersonPlanFrame.cpp.
References GNEPersonPlanFrame::show().
Referenced by GNEPersonPlanFrame::demandElementSelected(), GNEPersonPlanFrame::show(), and GNEPersonPlanFrame::tagSelected().
|
private |
button for abort route creation
Definition at line 140 of file GNEPersonPlanFrame.h.
Referenced by PersonPlanCreator().
|
private |
current clicked edges
Definition at line 146 of file GNEPersonPlanFrame.h.
|
private |
Label with current begin element.
Definition at line 134 of file GNEPersonPlanFrame.h.
Referenced by PersonPlanCreator().
|
private |
button for finish route creation
Definition at line 137 of file GNEPersonPlanFrame.h.
Referenced by PersonPlanCreator().
|
private |
pointer to Person Plan Frame Parent
Definition at line 131 of file GNEPersonPlanFrame.h.
|
private |
button for removing last edge
Definition at line 143 of file GNEPersonPlanFrame.h.
Referenced by PersonPlanCreator().
|
private |
vector with temporal edge path
Definition at line 149 of file GNEPersonPlanFrame.h.