Eclipse SUMO - Simulation of Urban MObility
GNEFrameModuls::EdgePathCreator Class Reference

#include <GNEFrameModuls.h>

Inheritance diagram for GNEFrameModuls::EdgePathCreator:
Collaboration diagram for GNEFrameModuls::EdgePathCreator:

Public Types

enum  EdgePathCreatorModes { GNE_EDGEPATHCREATOR_CONSECUTIVE = 1 << 0, GNE_EDGEPATHCREATOR_FROM_TO_VIA = 1 << 1, GNE_EDGEPATHCREATOR_FROM_BUSSTOP = 1 << 2, GNE_EDGEPATHCREATOR_TO_BUSSTOP = 1 << 3 }
 FOX-declaration. More...
 

Public Member Functions

void abortEdgePathCreation ()
 abort edge path creation More...
 
bool addBusStop (GNEAdditional *busStop)
 add busStop to route More...
 
bool addEdge (GNEEdge *edge)
 add edge to route More...
 
void clearEdges ()
 clear edges (and restore colors) More...
 
void drawTemporalRoute () const
 draw temporal route More...
 
 EdgePathCreator (GNEFrame *frameParent, int edgePathCreatorModes)
 default constructor More...
 
void edgePathCreatorName (const std::string &name)
 update EdgePathCreator name More...
 
void finishEdgePathCreation ()
 finish edge path creation More...
 
GNEAdditionalgetClickedBusStop () const
 get current clicked edges More...
 
std::vector< GNEEdge * > getClickedEdges () const
 get current clicked edges More...
 
void hideEdgePathCreator ()
 show EdgePathCreator More...
 
void removeLastInsertedElement ()
 remove last added element (either a BusStop or an edge) More...
 
void setEdgePathCreatorModes (int edgePathCreatorModes)
 set EdgePathCreatorModes More...
 
void setVClass (SUMOVehicleClass vClass)
 set SUMOVehicleClass More...
 
void showEdgePathCreator ()
 show EdgePathCreator More...
 
 ~EdgePathCreator ()
 destructor More...
 
FOX-callbacks

Called when the user click over button "Abort route creation"

long onCmdAbortRouteCreation (FXObject *, FXSelector, void *)
 
long onCmdFinishRouteCreation (FXObject *, FXSelector, void *)
 Called when the user click over button "Finish route creation". More...
 
long onCmdRemoveLastInsertedElement (FXObject *, FXSelector, void *)
 Called when the user click over button "Remove las inserted edge/busStop". More...
 

Protected Member Functions

 EdgePathCreator ()
 FOX needs this. More...
 

Private Member Functions

void restoreEdgeColor (const GNEEdge *edge)
 restore colors of given edge More...
 

Private Attributes

FXButton * myAbortCreationButton
 button for abort route creation More...
 
std::vector< GNEEdge * > myClickedEdges
 current clicked edges More...
 
int myEdgePathCreatorModes
 current edge path creator modes More...
 
FXButton * myFinishCreationButton
 button for finish route creation More...
 
GNEFramemyFrameParent
 pointer to GNEFrame Parent More...
 
FXButton * myRemoveLastInsertedEdge
 button for removing last inserted edge More...
 
GNEAdditionalmySelectedBusStop
 pointer to selected busStop More...
 
std::vector< GNEEdge * > myTemporalRoute
 vector with temporal route edges More...
 
SUMOVehicleClass myVClass
 VClass used for this trip. More...
 

Detailed Description

Definition at line 177 of file GNEFrameModuls.h.

Member Enumeration Documentation

◆ EdgePathCreatorModes

FOX-declaration.

list of the edge path creator modes

Enumerator
GNE_EDGEPATHCREATOR_CONSECUTIVE 
GNE_EDGEPATHCREATOR_FROM_TO_VIA 
GNE_EDGEPATHCREATOR_FROM_BUSSTOP 
GNE_EDGEPATHCREATOR_TO_BUSSTOP 

Definition at line 184 of file GNEFrameModuls.h.

Constructor & Destructor Documentation

◆ EdgePathCreator() [1/2]

GNEFrameModuls::EdgePathCreator::EdgePathCreator ( GNEFrame frameParent,
int  edgePathCreatorModes 
)

◆ ~EdgePathCreator()

GNEFrameModuls::EdgePathCreator::~EdgePathCreator ( )

destructor

Definition at line 532 of file GNEFrameModuls.cpp.

◆ EdgePathCreator() [2/2]

GNEFrameModuls::EdgePathCreator::EdgePathCreator ( )
inlineprotected

FOX needs this.

Definition at line 253 of file GNEFrameModuls.h.

Member Function Documentation

◆ abortEdgePathCreation()

void GNEFrameModuls::EdgePathCreator::abortEdgePathCreation ( )

abort edge path creation

Definition at line 724 of file GNEFrameModuls.cpp.

References myAbortCreationButton, and onCmdAbortRouteCreation().

Referenced by GNEViewNet::abortOperation().

◆ addBusStop()

bool GNEFrameModuls::EdgePathCreator::addBusStop ( GNEAdditional busStop)

◆ addEdge()

◆ clearEdges()

◆ drawTemporalRoute()

◆ edgePathCreatorName()

void GNEFrameModuls::EdgePathCreator::edgePathCreatorName ( const std::string &  name)

◆ finishEdgePathCreation()

void GNEFrameModuls::EdgePathCreator::finishEdgePathCreation ( )

finish edge path creation

Definition at line 732 of file GNEFrameModuls.cpp.

References myFinishCreationButton, and onCmdFinishRouteCreation().

Referenced by GNEViewNet::hotkeyEnter().

◆ getClickedBusStop()

GNEAdditional * GNEFrameModuls::EdgePathCreator::getClickedBusStop ( ) const

get current clicked edges

Definition at line 591 of file GNEFrameModuls.cpp.

References mySelectedBusStop.

Referenced by GNEPersonFrame::edgePathCreated().

◆ getClickedEdges()

std::vector< GNEEdge * > GNEFrameModuls::EdgePathCreator::getClickedEdges ( ) const

get current clicked edges

Definition at line 585 of file GNEFrameModuls.cpp.

References myClickedEdges.

Referenced by GNEPersonFrame::edgePathCreated(), and GNEVehicleFrame::edgePathCreated().

◆ hideEdgePathCreator()

void GNEFrameModuls::EdgePathCreator::hideEdgePathCreator ( )

◆ onCmdAbortRouteCreation()

long GNEFrameModuls::EdgePathCreator::onCmdAbortRouteCreation ( FXObject *  ,
FXSelector  ,
void *   
)

◆ onCmdFinishRouteCreation()

long GNEFrameModuls::EdgePathCreator::onCmdFinishRouteCreation ( FXObject *  ,
FXSelector  ,
void *   
)

◆ onCmdRemoveLastInsertedElement()

long GNEFrameModuls::EdgePathCreator::onCmdRemoveLastInsertedElement ( FXObject *  ,
FXSelector  ,
void *   
)

◆ removeLastInsertedElement()

void GNEFrameModuls::EdgePathCreator::removeLastInsertedElement ( )

remove last added element (either a BusStop or an edge)

Definition at line 740 of file GNEFrameModuls.cpp.

References myRemoveLastInsertedEdge, and onCmdRemoveLastInsertedElement().

Referenced by GNEViewNet::hotkeyBackSpace().

◆ restoreEdgeColor()

void GNEFrameModuls::EdgePathCreator::restoreEdgeColor ( const GNEEdge edge)
private

restore colors of given edge

Definition at line 800 of file GNEFrameModuls.cpp.

References GNEEdge::getLanes().

Referenced by clearEdges(), hideEdgePathCreator(), and onCmdRemoveLastInsertedElement().

◆ setEdgePathCreatorModes()

void GNEFrameModuls::EdgePathCreator::setEdgePathCreatorModes ( int  edgePathCreatorModes)

set EdgePathCreatorModes

Definition at line 579 of file GNEFrameModuls.cpp.

References myEdgePathCreatorModes.

◆ setVClass()

void GNEFrameModuls::EdgePathCreator::setVClass ( SUMOVehicleClass  vClass)

◆ showEdgePathCreator()

void GNEFrameModuls::EdgePathCreator::showEdgePathCreator ( )

Field Documentation

◆ myAbortCreationButton

FXButton* GNEFrameModuls::EdgePathCreator::myAbortCreationButton
private

◆ myClickedEdges

std::vector<GNEEdge*> GNEFrameModuls::EdgePathCreator::myClickedEdges
private

◆ myEdgePathCreatorModes

int GNEFrameModuls::EdgePathCreator::myEdgePathCreatorModes
private

current edge path creator modes

Definition at line 281 of file GNEFrameModuls.h.

Referenced by setEdgePathCreatorModes().

◆ myFinishCreationButton

FXButton* GNEFrameModuls::EdgePathCreator::myFinishCreationButton
private

◆ myFrameParent

GNEFrame* GNEFrameModuls::EdgePathCreator::myFrameParent
private

◆ myRemoveLastInsertedEdge

FXButton* GNEFrameModuls::EdgePathCreator::myRemoveLastInsertedEdge
private

◆ mySelectedBusStop

GNEAdditional* GNEFrameModuls::EdgePathCreator::mySelectedBusStop
private

pointer to selected busStop

Definition at line 275 of file GNEFrameModuls.h.

Referenced by addBusStop(), addEdge(), clearEdges(), drawTemporalRoute(), and getClickedBusStop().

◆ myTemporalRoute

std::vector<GNEEdge*> GNEFrameModuls::EdgePathCreator::myTemporalRoute
private

vector with temporal route edges

Definition at line 278 of file GNEFrameModuls.h.

Referenced by addEdge(), clearEdges(), drawTemporalRoute(), hideEdgePathCreator(), and onCmdRemoveLastInsertedElement().

◆ myVClass

SUMOVehicleClass GNEFrameModuls::EdgePathCreator::myVClass
private

VClass used for this trip.

Definition at line 269 of file GNEFrameModuls.h.

Referenced by addEdge(), onCmdRemoveLastInsertedElement(), and setVClass().


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