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

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 174 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 181 of file GNEFrameModuls.h.

Constructor & Destructor Documentation

◆ EdgePathCreator()

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

◆ ~EdgePathCreator()

GNEFrameModuls::EdgePathCreator::~EdgePathCreator ( )

destructor

Definition at line 540 of file GNEFrameModuls.cpp.

Member Function Documentation

◆ abortEdgePathCreation()

void GNEFrameModuls::EdgePathCreator::abortEdgePathCreation ( )

abort edge path creation

Definition at line 751 of file GNEFrameModuls.cpp.

Referenced by GNEViewNet::abortOperation().

◆ addBusStop()

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

add busStop to route

Definition at line 669 of file GNEFrameModuls.cpp.

References GNEAdditional::setSpecialColor().

Referenced by GNEPersonFrame::addPerson().

◆ addEdge()

◆ clearEdges()

void GNEFrameModuls::EdgePathCreator::clearEdges ( )

clear edges (and restore colors)

Definition at line 680 of file GNEFrameModuls.cpp.

◆ drawTemporalRoute()

void GNEFrameModuls::EdgePathCreator::drawTemporalRoute ( ) const

draw temporal route

Definition at line 699 of file GNEFrameModuls.cpp.

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

Referenced by GNEViewNet::doPaintGL().

◆ edgePathCreatorName()

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

◆ finishEdgePathCreation()

void GNEFrameModuls::EdgePathCreator::finishEdgePathCreation ( )

finish edge path creation

Definition at line 759 of file GNEFrameModuls.cpp.

Referenced by GNEViewNet::hotkeyEnter().

◆ getClickedBusStop()

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

get current clicked edges

Definition at line 599 of file GNEFrameModuls.cpp.

Referenced by GNEPersonFrame::edgePathCreated().

◆ getClickedEdges()

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

get current clicked edges

Definition at line 593 of file GNEFrameModuls.cpp.

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

◆ hideEdgePathCreator()

void GNEFrameModuls::EdgePathCreator::hideEdgePathCreator ( )

◆ onCmdAbortRouteCreation()

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

Definition at line 775 of file GNEFrameModuls.cpp.

Referenced by FXDEFMAP().

◆ onCmdFinishRouteCreation()

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

Called when the user click over button "Finish route creation".

Definition at line 787 of file GNEFrameModuls.cpp.

References SUMO_TAG_BUS_STOP, toString(), and WRITE_WARNING.

Referenced by FXDEFMAP().

◆ onCmdRemoveLastInsertedElement()

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

Called when the user click over button "Remove las inserted edge/busStop".

Definition at line 811 of file GNEFrameModuls.cpp.

References GNEDemandElement::RouteCalculator::calculateDijkstraRoute(), and GNEDemandElement::getRouteCalculatorInstance().

Referenced by FXDEFMAP().

◆ removeLastInsertedElement()

void GNEFrameModuls::EdgePathCreator::removeLastInsertedElement ( )

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

Definition at line 767 of file GNEFrameModuls.cpp.

Referenced by GNEViewNet::hotkeyBackSpace().

◆ restoreEdgeColor()

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

restore colors of given edge

Definition at line 832 of file GNEFrameModuls.cpp.

References GNEEdge::getLanes().

◆ setEdgePathCreatorModes()

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

set EdgePathCreatorModes

Definition at line 587 of file GNEFrameModuls.cpp.

Referenced by GNEPersonFrame::demandElementSelected().

◆ setVClass()

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

◆ showEdgePathCreator()

void GNEFrameModuls::EdgePathCreator::showEdgePathCreator ( )

Field Documentation

◆ myAbortCreationButton

FXButton* GNEFrameModuls::EdgePathCreator::myAbortCreationButton
private

button for abort route creation

Definition at line 259 of file GNEFrameModuls.h.

Referenced by EdgePathCreator().

◆ myClickedEdges

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

current clicked edges

Definition at line 268 of file GNEFrameModuls.h.

◆ myEdgePathCreatorModes

int GNEFrameModuls::EdgePathCreator::myEdgePathCreatorModes
private

current edge path creator modes

Definition at line 277 of file GNEFrameModuls.h.

◆ myFinishCreationButton

FXButton* GNEFrameModuls::EdgePathCreator::myFinishCreationButton
private

button for finish route creation

Definition at line 256 of file GNEFrameModuls.h.

Referenced by EdgePathCreator().

◆ myFrameParent

GNEFrame* GNEFrameModuls::EdgePathCreator::myFrameParent
private

pointer to GNEFrame Parent

Definition at line 253 of file GNEFrameModuls.h.

◆ myRemoveLastInsertedEdge

FXButton* GNEFrameModuls::EdgePathCreator::myRemoveLastInsertedEdge
private

button for removing last inserted edge

Definition at line 262 of file GNEFrameModuls.h.

Referenced by EdgePathCreator().

◆ mySelectedBusStop

GNEAdditional* GNEFrameModuls::EdgePathCreator::mySelectedBusStop
private

pointer to selected busStop

Definition at line 271 of file GNEFrameModuls.h.

◆ myTemporalRoute

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

vector with temporal route edges

Definition at line 274 of file GNEFrameModuls.h.

◆ myVClass

SUMOVehicleClass GNEFrameModuls::EdgePathCreator::myVClass
private

VClass used for this trip.

Definition at line 265 of file GNEFrameModuls.h.


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