![]() |
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... | |
Protected Member Functions | |
PersonPlanCreator () | |
FOX needs this. 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 71 of file GNEPersonPlanFrame.h.
GNEPersonPlanFrame::PersonPlanCreator::PersonPlanCreator | ( | GNEPersonPlanFrame * | frameParent | ) |
FOX-declaration.
default constructor
Definition at line 148 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 169 of file GNEPersonPlanFrame.cpp.
|
inlineprotected |
FOX needs this.
Definition at line 129 of file GNEPersonPlanFrame.h.
void GNEPersonPlanFrame::PersonPlanCreator::abortPersonPlanCreation | ( | ) |
abort person plan creation
Definition at line 335 of file GNEPersonPlanFrame.cpp.
References myAbortCreationButton, and onCmdAbortPersonPlanCreation().
Referenced by GNEViewNet::abortOperation().
bool GNEPersonPlanFrame::PersonPlanCreator::addEdge | ( | GNEEdge * | edge | ) |
add edge to route
Definition at line 274 of file GNEPersonPlanFrame.cpp.
References GNEDemandElement::RouteCalculator::calculateDijkstraRoute(), GNEApplicationWindow::disableUndoRedo(), GNEFrameModuls::TagSelector::getCurrentTagProperties(), GNEFrame::getEdgeCandidateSelectedColor(), GNEViewParent::getGNEAppWindows(), GNEEdge::getLanes(), GNEDemandElement::getRouteCalculatorInstance(), GNEViewNet::getViewParent(), GNEAttributeCarrier::TagProperties::isRide(), myAbortCreationButton, myClickedEdges, myFinishCreationButton, myPersonPlanFrameParent, GNEPersonPlanFrame::myPersonPlanTagSelector, myRemoveLastEdge, myTemporalEdgePath, GNEFrame::myViewNet, SVC_PASSENGER, and SVC_PEDESTRIAN.
Referenced by GNEPersonPlanFrame::addPersonPlan(), GNEPersonPlanFrame::personPlanCreated(), and refreshPersonPlanCreator().
void GNEPersonPlanFrame::PersonPlanCreator::drawTemporalRoute | ( | ) | const |
draw temporal route
Definition at line 307 of file GNEPersonPlanFrame.cpp.
References GLHelper::drawLine(), GLO_MAX, myTemporalEdgePath, RGBColor::ORANGE, and GLHelper::setColor().
Referenced by GNEViewNet::doPaintGL().
void GNEPersonPlanFrame::PersonPlanCreator::edgePathCreatorName | ( | const std::string & | name | ) |
update PersonPlanCreator name
Definition at line 173 of file GNEPersonPlanFrame.cpp.
References myAbortCreationButton, and myFinishCreationButton.
Referenced by GNEPersonPlanFrame::demandElementSelected(), and GNEPersonPlanFrame::tagSelected().
void GNEPersonPlanFrame::PersonPlanCreator::finishPersonPlanCreation | ( | ) |
finish person plan creation
Definition at line 343 of file GNEPersonPlanFrame.cpp.
References myFinishCreationButton, and onCmdFinishPersonPlanCreation().
Referenced by GNEViewNet::hotkeyEnter().
std::vector< GNEEdge * > GNEPersonPlanFrame::PersonPlanCreator::getClickedEdges | ( | ) | const |
get clicked edges
Definition at line 262 of file GNEPersonPlanFrame.cpp.
References myClickedEdges.
Referenced by GNEPersonPlanFrame::personPlanCreated().
const std::vector< GNEEdge * > & GNEPersonPlanFrame::PersonPlanCreator::getEdgePath | ( | ) | const |
get current edge path
Definition at line 268 of file GNEPersonPlanFrame.cpp.
References myTemporalEdgePath.
Referenced by GNEPersonPlanFrame::personPlanCreated().
void GNEPersonPlanFrame::PersonPlanCreator::hidePersonPlanCreator | ( | ) |
show PersonPlanCreator
Definition at line 193 of file GNEPersonPlanFrame.cpp.
References GNEPersonPlanFrame::hide(), myAbortCreationButton, myClickedEdges, myFinishCreationButton, myRemoveLastEdge, and myTemporalEdgePath.
Referenced by GNEPersonPlanFrame::demandElementSelected(), GNEPersonPlanFrame::hide(), GNEPersonPlanFrame::show(), and GNEPersonPlanFrame::tagSelected().
long GNEPersonPlanFrame::PersonPlanCreator::onCmdAbortPersonPlanCreation | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
Definition at line 359 of file GNEPersonPlanFrame.cpp.
References GNEApplicationWindow::enableUndoRedo(), GNEViewParent::getGNEAppWindows(), GNEViewNet::getViewParent(), myPersonPlanFrameParent, GNEFrame::myViewNet, and refreshPersonPlanCreator().
Referenced by abortPersonPlanCreation().
long GNEPersonPlanFrame::PersonPlanCreator::onCmdFinishPersonPlanCreation | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
Called when the user click over button "Finish route creation".
Definition at line 369 of file GNEPersonPlanFrame.cpp.
References GNEApplicationWindow::enableUndoRedo(), GNEViewParent::getGNEAppWindows(), GNEViewNet::getViewParent(), myClickedEdges, myPersonPlanFrameParent, GNEFrame::myViewNet, GNEPersonPlanFrame::personPlanCreated(), refreshPersonPlanCreator(), and GNEViewNet::update().
Referenced by finishPersonPlanCreation().
long GNEPersonPlanFrame::PersonPlanCreator::onCmdRemoveLastElement | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
Called when the user click over button "Remove last inserted edge".
Definition at line 386 of file GNEPersonPlanFrame.cpp.
References GNEDemandElement::RouteCalculator::calculateDijkstraRoute(), GNEFrameModuls::TagSelector::getCurrentTagProperties(), GNEDemandElement::getRouteCalculatorInstance(), GNEAttributeCarrier::TagProperties::isRide(), myClickedEdges, myPersonPlanFrameParent, GNEPersonPlanFrame::myPersonPlanTagSelector, myTemporalEdgePath, SVC_PASSENGER, and SVC_PEDESTRIAN.
Referenced by removeLastAddedElement().
void GNEPersonPlanFrame::PersonPlanCreator::refreshPersonPlanCreator | ( | ) |
show PersonPlanCreator
Definition at line 214 of file GNEPersonPlanFrame.cpp.
References addEdge(), GNEHierarchicalElementParents::getAdditionalParents(), GNEFrameModuls::DemandElementSelector::getCurrentDemandElement(), GNEHierarchicalElementChildren::getDemandElementChildren(), GNEHierarchicalElementParents::getDemandElementParents(), GNEHierarchicalElementParents::getEdgeParents(), GNEHierarchicalElementParents::getLaneParents(), GNEPersonPlanFrame::hide(), myAbortCreationButton, myClickedEdges, myCurrentBeginElementLabel, myFinishCreationButton, myPersonPlanFrameParent, GNEPersonPlanFrame::myPersonSelector, myRemoveLastEdge, myTemporalEdgePath, 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 onCmdAbortPersonPlanCreation(), onCmdFinishPersonPlanCreation(), GNEPersonPlanFrame::personPlanCreated(), and showPersonPlanCreator().
void GNEPersonPlanFrame::PersonPlanCreator::removeLastAddedElement | ( | ) |
remove last added element
Definition at line 351 of file GNEPersonPlanFrame.cpp.
References myRemoveLastEdge, and onCmdRemoveLastElement().
Referenced by GNEViewNet::hotkeyBackSpace().
void GNEPersonPlanFrame::PersonPlanCreator::showPersonPlanCreator | ( | ) |
show PersonPlanCreator
Definition at line 184 of file GNEPersonPlanFrame.cpp.
References refreshPersonPlanCreator(), and GNEPersonPlanFrame::show().
Referenced by GNEPersonPlanFrame::demandElementSelected(), GNEPersonPlanFrame::show(), and GNEPersonPlanFrame::tagSelected().
|
private |
button for abort route creation
Definition at line 142 of file GNEPersonPlanFrame.h.
Referenced by abortPersonPlanCreation(), addEdge(), edgePathCreatorName(), hidePersonPlanCreator(), PersonPlanCreator(), and refreshPersonPlanCreator().
|
private |
current clicked edges
Definition at line 148 of file GNEPersonPlanFrame.h.
Referenced by addEdge(), getClickedEdges(), hidePersonPlanCreator(), onCmdFinishPersonPlanCreation(), onCmdRemoveLastElement(), and refreshPersonPlanCreator().
|
private |
Label with current begin element.
Definition at line 136 of file GNEPersonPlanFrame.h.
Referenced by PersonPlanCreator(), and refreshPersonPlanCreator().
|
private |
button for finish route creation
Definition at line 139 of file GNEPersonPlanFrame.h.
Referenced by addEdge(), edgePathCreatorName(), finishPersonPlanCreation(), hidePersonPlanCreator(), PersonPlanCreator(), and refreshPersonPlanCreator().
|
private |
pointer to Person Plan Frame Parent
Definition at line 133 of file GNEPersonPlanFrame.h.
Referenced by addEdge(), onCmdAbortPersonPlanCreation(), onCmdFinishPersonPlanCreation(), onCmdRemoveLastElement(), and refreshPersonPlanCreator().
|
private |
button for removing last edge
Definition at line 145 of file GNEPersonPlanFrame.h.
Referenced by addEdge(), hidePersonPlanCreator(), PersonPlanCreator(), refreshPersonPlanCreator(), and removeLastAddedElement().
|
private |
vector with temporal edge path
Definition at line 151 of file GNEPersonPlanFrame.h.
Referenced by addEdge(), drawTemporalRoute(), getEdgePath(), hidePersonPlanCreator(), onCmdRemoveLastElement(), and refreshPersonPlanCreator().