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.

References myAbortCreationButton, and onCmdAbortPersonPlanCreation().

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, myTemporalEdgePath, 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.

References myFinishCreationButton, and onCmdFinishPersonPlanCreation().

Referenced by GNEViewNet::hotkeyEnter().

◆ getClickedEdges()

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

get clicked edges

Definition at line 262 of file GNEPersonPlanFrame.cpp.

References myClickedEdges.

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.

References myTemporalEdgePath.

Referenced by GNEPersonPlanFrame::personPlanCreated().

◆ hidePersonPlanCreator()

◆ onCmdAbortPersonPlanCreation()

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

◆ onCmdFinishPersonPlanCreation()

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

◆ onCmdRemoveLastElement()

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

◆ refreshPersonPlanCreator()

◆ removeLastAddedElement()

void GNEPersonPlanFrame::PersonPlanCreator::removeLastAddedElement ( )

remove last added element

Definition at line 351 of file GNEPersonPlanFrame.cpp.

References myRemoveLastEdge, and onCmdRemoveLastElement().

Referenced by GNEViewNet::hotkeyBackSpace().

◆ showPersonPlanCreator()

void GNEPersonPlanFrame::PersonPlanCreator::showPersonPlanCreator ( )

Field Documentation

◆ myAbortCreationButton

FXButton* GNEPersonPlanFrame::PersonPlanCreator::myAbortCreationButton
private

◆ myClickedEdges

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

◆ myCurrentBeginElementLabel

FXLabel* GNEPersonPlanFrame::PersonPlanCreator::myCurrentBeginElementLabel
private

Label with current begin element.

Definition at line 136 of file GNEPersonPlanFrame.h.

Referenced by PersonPlanCreator(), and refreshPersonPlanCreator().

◆ myFinishCreationButton

FXButton* GNEPersonPlanFrame::PersonPlanCreator::myFinishCreationButton
private

◆ myPersonPlanFrameParent

GNEPersonPlanFrame* GNEPersonPlanFrame::PersonPlanCreator::myPersonPlanFrameParent
private

◆ myRemoveLastEdge

FXButton* GNEPersonPlanFrame::PersonPlanCreator::myRemoveLastEdge
private

button for removing last edge

Definition at line 145 of file GNEPersonPlanFrame.h.

Referenced by addEdge(), hidePersonPlanCreator(), PersonPlanCreator(), refreshPersonPlanCreator(), and removeLastAddedElement().

◆ myTemporalEdgePath

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

vector with temporal edge path

Definition at line 151 of file GNEPersonPlanFrame.h.

Referenced by addEdge(), drawTemporalRoute(), getEdgePath(), hidePersonPlanCreator(), onCmdRemoveLastElement(), and refreshPersonPlanCreator().


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