Eclipse SUMO - Simulation of Urban MObility
GNEPersonPlanFrame::PersonPlanCreator Class Reference

#include <GNEPersonPlanFrame.h>

Inheritance diagram for GNEPersonPlanFrame::PersonPlanCreator:
Collaboration diagram for GNEPersonPlanFrame::PersonPlanCreator:

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...
 
GNEPersonPlanFramemyPersonPlanFrameParent
 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...
 

Detailed Description

Definition at line 71 of file GNEPersonPlanFrame.h.

Constructor & Destructor Documentation

◆ PersonPlanCreator() [1/2]

GNEPersonPlanFrame::PersonPlanCreator::PersonPlanCreator ( GNEPersonPlanFrame frameParent)

◆ ~PersonPlanCreator()

GNEPersonPlanFrame::PersonPlanCreator::~PersonPlanCreator ( )

destructor

Definition at line 169 of file GNEPersonPlanFrame.cpp.

◆ PersonPlanCreator() [2/2]

GNEPersonPlanFrame::PersonPlanCreator::PersonPlanCreator ( )
inlineprotected

FOX needs this.

Definition at line 129 of file GNEPersonPlanFrame.h.

Member Function Documentation

◆ abortPersonPlanCreation()

void GNEPersonPlanFrame::PersonPlanCreator::abortPersonPlanCreation ( )

abort person plan creation

Definition at line 335 of file GNEPersonPlanFrame.cpp.

Referenced by GNEViewNet::abortOperation().

◆ addEdge()

◆ drawTemporalRoute()

void GNEPersonPlanFrame::PersonPlanCreator::drawTemporalRoute ( ) const

draw temporal route

Definition at line 307 of file GNEPersonPlanFrame.cpp.

References GLHelper::drawLine(), GLO_MAX, RGBColor::ORANGE, and GLHelper::setColor().

Referenced by GNEViewNet::doPaintGL().

◆ edgePathCreatorName()

void GNEPersonPlanFrame::PersonPlanCreator::edgePathCreatorName ( const std::string &  name)

◆ finishPersonPlanCreation()

void GNEPersonPlanFrame::PersonPlanCreator::finishPersonPlanCreation ( )

finish person plan creation

Definition at line 343 of file GNEPersonPlanFrame.cpp.

Referenced by GNEViewNet::hotkeyEnter().

◆ getClickedEdges()

std::vector< GNEEdge * > GNEPersonPlanFrame::PersonPlanCreator::getClickedEdges ( ) const

get clicked edges

Definition at line 262 of file GNEPersonPlanFrame.cpp.

Referenced by GNEPersonPlanFrame::personPlanCreated().

◆ getEdgePath()

const std::vector< GNEEdge * > & GNEPersonPlanFrame::PersonPlanCreator::getEdgePath ( ) const

get current edge path

Definition at line 268 of file GNEPersonPlanFrame.cpp.

Referenced by GNEPersonPlanFrame::personPlanCreated().

◆ hidePersonPlanCreator()

void GNEPersonPlanFrame::PersonPlanCreator::hidePersonPlanCreator ( )

◆ onCmdAbortPersonPlanCreation()

long GNEPersonPlanFrame::PersonPlanCreator::onCmdAbortPersonPlanCreation ( FXObject *  ,
FXSelector  ,
void *   
)

Definition at line 359 of file GNEPersonPlanFrame.cpp.

◆ onCmdFinishPersonPlanCreation()

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.

◆ onCmdRemoveLastElement()

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(), GNEDemandElement::getRouteCalculatorInstance(), SVC_PASSENGER, and SVC_PEDESTRIAN.

◆ refreshPersonPlanCreator()

◆ removeLastAddedElement()

void GNEPersonPlanFrame::PersonPlanCreator::removeLastAddedElement ( )

remove last added element

Definition at line 351 of file GNEPersonPlanFrame.cpp.

Referenced by GNEViewNet::hotkeyBackSpace().

◆ showPersonPlanCreator()

void GNEPersonPlanFrame::PersonPlanCreator::showPersonPlanCreator ( )

Field Documentation

◆ myAbortCreationButton

FXButton* GNEPersonPlanFrame::PersonPlanCreator::myAbortCreationButton
private

button for abort route creation

Definition at line 142 of file GNEPersonPlanFrame.h.

Referenced by PersonPlanCreator().

◆ myClickedEdges

std::vector<GNEEdge*> GNEPersonPlanFrame::PersonPlanCreator::myClickedEdges
private

current clicked edges

Definition at line 148 of file GNEPersonPlanFrame.h.

◆ myCurrentBeginElementLabel

FXLabel* GNEPersonPlanFrame::PersonPlanCreator::myCurrentBeginElementLabel
private

Label with current begin element.

Definition at line 136 of file GNEPersonPlanFrame.h.

Referenced by PersonPlanCreator().

◆ myFinishCreationButton

FXButton* GNEPersonPlanFrame::PersonPlanCreator::myFinishCreationButton
private

button for finish route creation

Definition at line 139 of file GNEPersonPlanFrame.h.

Referenced by PersonPlanCreator().

◆ myPersonPlanFrameParent

GNEPersonPlanFrame* GNEPersonPlanFrame::PersonPlanCreator::myPersonPlanFrameParent
private

pointer to Person Plan Frame Parent

Definition at line 133 of file GNEPersonPlanFrame.h.

◆ myRemoveLastEdge

FXButton* GNEPersonPlanFrame::PersonPlanCreator::myRemoveLastEdge
private

button for removing last edge

Definition at line 145 of file GNEPersonPlanFrame.h.

Referenced by PersonPlanCreator().

◆ myTemporalEdgePath

std::vector<GNEEdge*> GNEPersonPlanFrame::PersonPlanCreator::myTemporalEdgePath
private

vector with temporal edge path

Definition at line 151 of file GNEPersonPlanFrame.h.


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