Eclipse SUMO - Simulation of Urban MObility
GNEPathCreator Class Reference

#include <GNEPathCreator.h>

Inheritance diagram for GNEPathCreator:
[legend]
Collaboration diagram for GNEPathCreator:
[legend]

Data Structures

class  Path
 FOX-declaration. More...
 

Public Types

enum  Options {
  NOTHING = 1 << 0 , COLLAPSIBLE = 1 << 1 , EXTENSIBLE = 1 << 2 , SAVE = 1 << 3 ,
  LOAD = 1 << 4
}
 GroupBoxModule options. More...
 

Public Member Functions

void abortPathCreation ()
 abort path creation More...
 
bool addEdge (GNEEdge *edge, const bool shiftKeyPressed, const bool controlKeyPressed)
 add edge More...
 
bool addJunction (GNEJunction *junction, const bool shiftKeyPressed, const bool controlKeyPressed)
 add junction More...
 
bool addRoute (GNEDemandElement *route, const bool shiftKeyPressed, const bool controlKeyPressed)
 add route More...
 
bool addStoppingPlace (GNEAdditional *stoppingPlace, const bool shiftKeyPressed, const bool controlKeyPressed)
 add stoppingPlace More...
 
void clearEdgeColors ()
 clear edge colors More...
 
void clearJunctionColors ()
 clear junction colors More...
 
bool createPath (const bool useLastRoute)
 create path More...
 
bool drawCandidateEdgesWithSpecialColor () const
 draw candidate edges with special color (Only for candidates, special and conflicted) More...
 
void drawTemporalRoute (const GUIVisualizationSettings &s) const
 draw temporal route More...
 
FXVerticalFrame * getCollapsableFrame ()
 get collapsable frame (used by all elements that will be collapsed if button is toggled) More...
 
const std::vector< Path > & getPath () const
 get path route More...
 
GNEDemandElementgetRoute () const
 get route More...
 
const std::vector< GNEEdge * > & getSelectedEdges () const
 get current selected edges More...
 
const std::vector< GNEJunction * > & getSelectedJunctions () const
 get current selected junctions More...
 
GNEAdditionalgetToStoppingPlace (SumoXMLTag expectedTag) const
 get to stoppingPlace More...
 
SUMOVehicleClass getVClass () const
 get vClass More...
 
 GNEPathCreator (GNEFrame *frameParent)
 default constructor More...
 
void hidePathCreatorModule ()
 show GNEPathCreator More...
 
long onCmdCollapseButton (FXObject *, FXSelector, void *)
 collapse GroupBoxModule More...
 
long onCmdExtendButton (FXObject *, FXSelector, void *)
 extends GroupBoxModule More...
 
long onCmdLoadButton (FXObject *, FXSelector, void *)
 load contents More...
 
long onCmdResetButton (FXObject *, FXSelector, void *)
 reset GroupBoxModule More...
 
long onCmdSaveButton (FXObject *, FXSelector, void *)
 save contents More...
 
long onPaint (FXObject *, FXSelector, void *)
 draw MFXGroupBoxModule More...
 
long onUpdResetButton (FXObject *, FXSelector, void *)
 update reset GroupBoxModule More...
 
void removeLastElement ()
 remove path element More...
 
void setText (const std::string &text)
 set text More...
 
void setVClass (SUMOVehicleClass vClass)
 set vClass More...
 
void showPathCreatorModule (SumoXMLTag element, const bool firstElement, const bool consecutives)
 show GNEPathCreator for the given tag More...
 
void updateEdgeColors ()
 update edge colors More...
 
void updateJunctionColors ()
 update junction colors More...
 
 ~GNEPathCreator ()
 destructor More...
 
FOX-callbacks

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

long onCmdCreatePath (FXObject *, FXSelector, void *)
 
long onCmdUseLastRoute (FXObject *, FXSelector, void *)
 Called when the user click over button "Use last route". More...
 
long onUpdUseLastRoute (FXObject *, FXSelector, void *)
 Called when update button "Use last route". More...
 
long onCmdAbortPathCreation (FXObject *, FXSelector, void *)
 Called when the user click over button "Abort route creation". More...
 
long onCmdRemoveLastElement (FXObject *, FXSelector, void *)
 Called when the user click over button "Remove las inserted edge". More...
 
long onCmdShowCandidateEdges (FXObject *, FXSelector, void *)
 Called when the user click over check button "show candidate edges". More...
 

Protected Types

enum  Mode {
  CONSECUTIVE_EDGES = 1 << 0 , NONCONSECUTIVE_EDGES = 1 << 1 , START_EDGE = 1 << 2 , END_EDGE = 1 << 3 ,
  START_JUNCTION = 1 << 4 , END_JUNCTION = 1 << 5 , STOP = 1 << 6 , ONLY_FROMTO = 1 << 7 ,
  END_BUSSTOP = 1 << 8 , END_CONTAINERSTOP = 1 << 9 , ROUTE = 1 << 10 , REQUIRE_FIRSTELEMENT = 1 << 11 ,
  SHOW_CANDIDATE_EDGES = 1 << 12 , SHOW_CANDIDATE_JUNCTIONS = 1 << 13
}
 

Protected Member Functions

void clearPath ()
 clear edges (and restore colors) More...
 
virtual bool loadContents () const
 load contents (can be reimplemented in children) More...
 
void recalculatePath ()
 recalculate path More...
 
virtual bool saveContents () const
 save contents (can be reimplemented in children) More...
 
void setPossibleCandidates (GNEEdge *originEdge, const SUMOVehicleClass vClass)
 set edgereachability (This function will be called recursively) More...
 
void setSpecialCandidates (GNEEdge *originEdge)
 set special candidates (This function will be called recursively) More...
 
void toggleSaveButton (const bool value)
 enable or disable save buttons More...
 
void updateInfoRouteLabel ()
 update InfoRouteLabel More...
 

Protected Attributes

FXButton * myAbortCreationButton
 button for abort route creation More...
 
FXLabel * myBackSpaceLabel
 label for backSpace information More...
 
FXLabel * myControlLabel
 label for control information More...
 
int myCreationMode
 current creation mode More...
 
FXButton * myFinishCreationButton
 button for finish route creation More...
 
GNEFramemyFrameParent
 current frame parent More...
 
FXLabel * myInfoRouteLabel
 label with route info More...
 
std::vector< PathmyPath
 vector with current path More...
 
FXButton * myRemoveLastInsertedElement
 button for removing last inserted element More...
 
GNEDemandElementmyRoute
 route (usually a busStop) More...
 
std::vector< GNEEdge * > mySelectedEdges
 vector with selected edges More...
 
std::vector< GNEJunction * > mySelectedJunctions
 vector with selected junctions More...
 
FXLabel * myShiftLabel
 label for shift information More...
 
FXCheckButton * myShowCandidateEdges
 CheckBox for show candidate edges. More...
 
GNEAdditionalmyToStoppingPlace
 to additional (usually a busStop) More...
 
FXButton * myUseLastRoute
 button for use last inserted route More...
 
SUMOVehicleClass myVClass
 current vClass More...
 

Private Member Functions

 GNEPathCreator (GNEPathCreator *)=delete
 Invalidated copy constructor. More...
 
GNEPathCreatoroperator= (GNEPathCreator *)=delete
 Invalidated assignment operator. More...
 

Private Attributes

FXVerticalFrame * myCollapsableFrame = nullptr
 vertical collapsable frame More...
 
FXButton * myCollapseButton = nullptr
 button for collapse elements More...
 
bool myCollapsed
 flag to check if this groupbox is collapsed More...
 
FXButton * myExtendButton = nullptr
 button for extend elements More...
 
FXLabel * myLabel = nullptr
 label used in non collapsable MFXGroupBoxModule More...
 
FXButton * myLoadButton = nullptr
 button for load elements More...
 
const int myOptions
 GroupBoxModule options. More...
 
FXButton * myResetWidthButton = nullptr
 button for reset frame width More...
 
FXButton * mySaveButton = nullptr
 button for save elements More...
 

Detailed Description

Definition at line 35 of file GNEPathCreator.h.

Member Enumeration Documentation

◆ Mode

enum GNEPathCreator::Mode
protected
Enumerator
CONSECUTIVE_EDGES 
NONCONSECUTIVE_EDGES 
START_EDGE 
END_EDGE 
START_JUNCTION 
END_JUNCTION 
STOP 
ONLY_FROMTO 
END_BUSSTOP 
END_CONTAINERSTOP 
ROUTE 
REQUIRE_FIRSTELEMENT 
SHOW_CANDIDATE_EDGES 
SHOW_CANDIDATE_JUNCTIONS 

Definition at line 192 of file GNEPathCreator.h.

◆ Options

GroupBoxModule options.

Enumerator
NOTHING 
COLLAPSIBLE 
EXTENSIBLE 
SAVE 
LOAD 

Definition at line 37 of file MFXGroupBoxModule.h.

Constructor & Destructor Documentation

◆ GNEPathCreator() [1/2]

◆ ~GNEPathCreator()

GNEPathCreator::~GNEPathCreator ( )

destructor

Definition at line 183 of file GNEPathCreator.cpp.

◆ GNEPathCreator() [2/2]

GNEPathCreator::GNEPathCreator ( GNEPathCreator )
privatedelete

Invalidated copy constructor.

Member Function Documentation

◆ abortPathCreation()

◆ addEdge()

◆ addJunction()

bool GNEPathCreator::addJunction ( GNEJunction junction,
const bool  shiftKeyPressed,
const bool  controlKeyPressed 
)

◆ addRoute()

bool GNEPathCreator::addRoute ( GNEDemandElement route,
const bool  shiftKeyPressed,
const bool  controlKeyPressed 
)

add route

Definition at line 589 of file GNEPathCreator.cpp.

References createPath(), myCreationMode, myRoute, recalculatePath(), ROUTE, updateEdgeColors(), and updateInfoRouteLabel().

Referenced by GNEPersonFrame::addPerson(), and GNEPersonPlanFrame::addPersonPlanElement().

Here is the caller graph for this function:

◆ addStoppingPlace()

◆ clearEdgeColors()

void GNEPathCreator::clearEdgeColors ( )

clear edge colors

Definition at line 713 of file GNEPathCreator.cpp.

References GNENet::getAttributeCarriers(), GNENetHelper::AttributeCarriers::getEdges(), GNEViewNet::getNet(), GNEFrame::getViewNet(), and myFrameParent.

Referenced by clearPath(), GNEVehicleFrame::demandElementSelected(), and updateEdgeColors().

Here is the caller graph for this function:

◆ clearJunctionColors()

void GNEPathCreator::clearJunctionColors ( )

clear junction colors

Definition at line 704 of file GNEPathCreator.cpp.

References GNENet::getAttributeCarriers(), GNENetHelper::AttributeCarriers::getJunctions(), GNEViewNet::getNet(), GNEFrame::getViewNet(), and myFrameParent.

Referenced by clearPath(), GNEVehicleFrame::demandElementSelected(), and updateJunctionColors().

Here is the caller graph for this function:

◆ clearPath()

void GNEPathCreator::clearPath ( )
protected

clear edges (and restore colors)

reset flags

Definition at line 954 of file GNEPathCreator.cpp.

References clearEdgeColors(), clearJunctionColors(), myPath, myRoute, mySelectedEdges, mySelectedJunctions, myToStoppingPlace, and updateInfoRouteLabel().

Referenced by abortPathCreation(), and hidePathCreatorModule().

Here is the caller graph for this function:

◆ createPath()

bool GNEPathCreator::createPath ( const bool  useLastRoute)

create path

Definition at line 806 of file GNEPathCreator.cpp.

References GNEFrame::createPath(), and myFrameParent.

Referenced by addEdge(), addRoute(), addStoppingPlace(), GNEViewNet::hotkeyEnter(), onCmdCreatePath(), and onCmdUseLastRoute().

Here is the caller graph for this function:

◆ drawCandidateEdgesWithSpecialColor()

bool GNEPathCreator::drawCandidateEdgesWithSpecialColor ( ) const

draw candidate edges with special color (Only for candidates, special and conflicted)

Definition at line 623 of file GNEPathCreator.cpp.

References myShowCandidateEdges.

Referenced by GNELane::setLaneColor().

Here is the caller graph for this function:

◆ drawTemporalRoute()

◆ getCollapsableFrame()

FXVerticalFrame * MFXGroupBoxModule::getCollapsableFrame ( )
inherited

get collapsable frame (used by all elements that will be collapsed if button is toggled)

Definition at line 118 of file MFXGroupBoxModule.cpp.

References MFXGroupBoxModule::myCollapsableFrame.

Referenced by GNEInspectorFrame::AdditionalDialog::AdditionalDialog(), GNEFrameAttributeModules::AttributesEditor::AttributesEditor(), GNEFrameAttributeModules::AttributesEditorExtended::AttributesEditorExtended(), GNEGenericDataFrame::AttributeSelector::AttributeSelector(), GNEOverlappedInspection::buildFXElements(), GNEMoveFrame::ChangeZInSelection::ChangeZInSelection(), GNEConnectorFrame::ConnectionModifications::ConnectionModifications(), GNEConnectorFrame::ConnectionOperations::ConnectionOperations(), GNEConnectorFrame::ConnectionSelection::ConnectionSelection(), GNECrossingFrame::CreateCrossing::CreateCrossing(), GNECrossingFrame::CrossingParameters::CrossingParameters(), GNETAZFrame::CurrentTAZ::CurrentTAZ(), DemandElementSelector::DemandElementSelector(), GNEMoveFrame::DemandModeOptions::DemandModeOptions(), GNECrossingFrame::EdgesSelector::EdgesSelector(), GNEFrameAttributeModules::GenericDataAttributes::GenericDataAttributes(), GNEInspectorFrame::GEOAttributesEditor::GEOAttributesEditor(), GNEM_PathLegend::GNEM_PathLegend(), GNEPathCreator(), GNESelectorParent::GNESelectorParent(), GNEStopFrame::HelpCreation::HelpCreation(), GNEVehicleFrame::HelpCreation::HelpCreation(), GNECrossingFrame::Information::Information(), GNESelectorFrame::Information::Information(), GNEGenericDataFrame::IntervalSelector::IntervalSelector(), GNECreateEdgeFrame::LaneTypeSelector::LaneTypeSelector(), GNEConnectorFrame::Legend::Legend(), GNECreateEdgeFrame::Legend::Legend(), GNEProhibitionFrame::Legend::Legend(), GNETAZRelDataFrame::Legend::Legend(), GNESelectorFrame::ModificationMode::ModificationMode(), GNEMoveFrame::NetworkModeOptions::NetworkModeOptions(), GNEMatchAttribute::onCmdHelp(), GNEMatchGenericDataAttribute::onCmdHelp(), GNENeteditAttributes::onCmdHelp(), GNEOverlappedInspection::onCmdOverlappingHelp(), GNEInspectorFrame::ParametersEditor::ParametersEditor(), GNEDeleteFrame::ProtectElements::ProtectElements(), GNEAttributesCreator::refreshRows(), GNEProhibitionFrame::Selection::Selection(), GNESelectorFrame::SelectionHierarchy::SelectionHierarchy(), GNESelectorFrame::SelectionOperation::SelectionOperation(), GNEMoveFrame::ShiftEdgeSelectedGeometry::ShiftEdgeSelectedGeometry(), GNEMoveFrame::ShiftShapeGeometry::ShiftShapeGeometry(), GNETAZFrame::TAZChildDefaultParameters::TAZChildDefaultParameters(), GNETAZFrame::TAZCommonStatistics::TAZCommonStatistics(), GNETAZFrame::TAZEdgesGraphic::TAZEdgesGraphic(), GNETAZFrame::TAZParameters::TAZParameters(), GNETAZFrame::TAZSaveChanges::TAZSaveChanges(), GNETAZFrame::TAZSelectionStatistics::TAZSelectionStatistics(), GNEInspectorFrame::TemplateEditor::TemplateEditor(), GNETLSEditorFrame::TLSAttributes::TLSAttributes(), GNETLSEditorFrame::TLSDefinition::TLSDefinition(), GNETLSEditorFrame::TLSFile::TLSFile(), GNETLSEditorFrame::TLSJunction::TLSJunction(), GNETLSEditorFrame::TLSPhases::TLSPhases(), GNETypeFrame::TypeEditor::TypeEditor(), GNESelectorFrame::VisualScaling::VisualScaling(), and GNETypeFrame::VTypeDistributions::VTypeDistributions().

◆ getPath()

const std::vector< GNEPathCreator::Path > & GNEPathCreator::getPath ( ) const

get path route

Definition at line 617 of file GNEPathCreator.cpp.

References myPath.

Referenced by GNERouteHandler::buildContainerPlan(), GNERouteHandler::buildPersonPlan(), GNERouteFrame::createPath(), and GNEVehicleFrame::createPath().

Here is the caller graph for this function:

◆ getRoute()

GNEDemandElement * GNEPathCreator::getRoute ( ) const

get route

Definition at line 611 of file GNEPathCreator.cpp.

References myRoute.

Referenced by GNERouteHandler::buildPersonPlan().

Here is the caller graph for this function:

◆ getSelectedEdges()

const std::vector< GNEEdge * > & GNEPathCreator::getSelectedEdges ( ) const

get current selected edges

Definition at line 503 of file GNEPathCreator.cpp.

References mySelectedEdges.

Referenced by GNERouteHandler::buildContainerPlan(), GNERouteHandler::buildPersonPlan(), GNEEdgeRelDataFrame::createPath(), GNERouteFrame::createPath(), and GNEVehicleFrame::createPath().

Here is the caller graph for this function:

◆ getSelectedJunctions()

const std::vector< GNEJunction * > & GNEPathCreator::getSelectedJunctions ( ) const

get current selected junctions

Definition at line 509 of file GNEPathCreator.cpp.

References mySelectedJunctions.

Referenced by GNERouteHandler::buildPersonPlan(), and GNEVehicleFrame::createPath().

Here is the caller graph for this function:

◆ getToStoppingPlace()

GNEAdditional * GNEPathCreator::getToStoppingPlace ( SumoXMLTag  expectedTag) const

get to stoppingPlace

Definition at line 579 of file GNEPathCreator.cpp.

References GNETagProperties::getTag(), GNEAttributeCarrier::getTagProperty(), and myToStoppingPlace.

Referenced by GNERouteHandler::buildContainerPlan(), and GNERouteHandler::buildPersonPlan().

Here is the caller graph for this function:

◆ getVClass()

SUMOVehicleClass GNEPathCreator::getVClass ( ) const

get vClass

Definition at line 350 of file GNEPathCreator.cpp.

References myVClass.

◆ hidePathCreatorModule()

◆ loadContents()

bool MFXGroupBoxModule::loadContents ( ) const
protectedvirtualinherited

load contents (can be reimplemented in children)

Definition at line 226 of file MFXGroupBoxModule.cpp.

Referenced by MFXGroupBoxModule::onCmdLoadButton().

Here is the caller graph for this function:

◆ onCmdAbortPathCreation()

long GNEPathCreator::onCmdAbortPathCreation ( FXObject *  ,
FXSelector  ,
void *   
)

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

Definition at line 891 of file GNEPathCreator.cpp.

References abortPathCreation().

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onCmdCollapseButton()

long MFXGroupBoxModule::onCmdCollapseButton ( FXObject *  ,
FXSelector  ,
void *   
)
inherited

collapse GroupBoxModule

Definition at line 137 of file MFXGroupBoxModule.cpp.

References COLLAPSE, GUIIconSubSys::getIcon(), MFXGroupBoxModule::myCollapsableFrame, MFXGroupBoxModule::myCollapseButton, MFXGroupBoxModule::myCollapsed, and UNCOLLAPSE.

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onCmdCreatePath()

long GNEPathCreator::onCmdCreatePath ( FXObject *  ,
FXSelector  ,
void *   
)

Definition at line 869 of file GNEPathCreator.cpp.

References createPath().

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onCmdExtendButton()

long MFXGroupBoxModule::onCmdExtendButton ( FXObject *  ,
FXSelector  ,
void *   
)
inherited

extends GroupBoxModule

Definition at line 153 of file MFXGroupBoxModule.cpp.

References GNEFrame::getScrollBarWidth(), GNETLSEditorFrame::TLSPhases::getTLSEditorParent(), GNETLSTable::getTLSPhasesParent(), GNEFrame::getViewNet(), GNEViewNet::getViewParent(), MFXGroupBoxModule::myCollapsableFrame, MFXGroupBoxModule::myFrameParent, and GNEViewParent::setFrameAreaWidth().

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onCmdLoadButton()

long MFXGroupBoxModule::onCmdLoadButton ( FXObject *  ,
FXSelector  ,
void *   
)
inherited

load contents

Definition at line 207 of file MFXGroupBoxModule.cpp.

References MFXGroupBoxModule::loadContents().

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onCmdRemoveLastElement()

long GNEPathCreator::onCmdRemoveLastElement ( FXObject *  ,
FXSelector  ,
void *   
)

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

Definition at line 899 of file GNEPathCreator.cpp.

References removeLastElement().

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onCmdResetButton()

long MFXGroupBoxModule::onCmdResetButton ( FXObject *  ,
FXSelector  ,
void *   
)
inherited

reset GroupBoxModule

Definition at line 179 of file MFXGroupBoxModule.cpp.

References GNEFrame::getViewNet(), GNEViewNet::getViewParent(), MFXGroupBoxModule::myFrameParent, and GNEViewParent::setFrameAreaWidth().

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onCmdSaveButton()

long MFXGroupBoxModule::onCmdSaveButton ( FXObject *  ,
FXSelector  ,
void *   
)
inherited

save contents

Definition at line 201 of file MFXGroupBoxModule.cpp.

References MFXGroupBoxModule::saveContents().

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onCmdShowCandidateEdges()

long GNEPathCreator::onCmdShowCandidateEdges ( FXObject *  ,
FXSelector  ,
void *   
)

Called when the user click over check button "show candidate edges".

Definition at line 907 of file GNEPathCreator.cpp.

References myControlLabel, myShiftLabel, myShowCandidateEdges, and updateEdgeColors().

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onCmdUseLastRoute()

long GNEPathCreator::onCmdUseLastRoute ( FXObject *  ,
FXSelector  ,
void *   
)

Called when the user click over button "Use last route".

Definition at line 876 of file GNEPathCreator.cpp.

References createPath().

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onPaint()

long MFXGroupBoxModule::onPaint ( FXObject *  ,
FXSelector  ,
void *  ptr 
)
inherited

draw MFXGroupBoxModule

Definition at line 124 of file MFXGroupBoxModule.cpp.

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onUpdResetButton()

long MFXGroupBoxModule::onUpdResetButton ( FXObject *  sender,
FXSelector  ,
void *   
)
inherited

update reset GroupBoxModule

Definition at line 188 of file MFXGroupBoxModule.cpp.

References GNEViewParent::getFrameAreaWidth(), GNEFrame::getViewNet(), GNEViewNet::getViewParent(), and MFXGroupBoxModule::myFrameParent.

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onUpdUseLastRoute()

long GNEPathCreator::onUpdUseLastRoute ( FXObject *  sender,
FXSelector  ,
void *   
)

Called when update button "Use last route".

Definition at line 882 of file GNEPathCreator.cpp.

References GNEViewNet::getLastCreatedRoute(), GNEFrame::getViewNet(), myCreationMode, myFrameParent, and ROUTE.

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ operator=()

GNEPathCreator & GNEPathCreator::operator= ( GNEPathCreator )
privatedelete

Invalidated assignment operator.

◆ recalculatePath()

void GNEPathCreator::recalculatePath ( )
protected

recalculate path

Definition at line 971 of file GNEPathCreator.cpp.

References GNEHierarchicalElement::getParentEdges(), GNEHierarchicalElement::getParentLanes(), GNEFrame::getViewNet(), myFrameParent, myPath, myRoute, mySelectedEdges, mySelectedJunctions, myToStoppingPlace, and myVClass.

Referenced by addEdge(), addJunction(), addRoute(), addStoppingPlace(), and removeLastElement().

Here is the caller graph for this function:

◆ removeLastElement()

void GNEPathCreator::removeLastElement ( )

remove path element

Definition at line 837 of file GNEPathCreator.cpp.

References GNEFrame::getViewNet(), myFrameParent, myRemoveLastInsertedElement, mySelectedEdges, recalculatePath(), updateEdgeColors(), updateInfoRouteLabel(), updateJunctionColors(), and GNEViewNet::updateViewNet().

Referenced by GNEViewNet::hotkeyBackSpace(), and onCmdRemoveLastElement().

Here is the caller graph for this function:

◆ saveContents()

bool MFXGroupBoxModule::saveContents ( ) const
protectedvirtualinherited

save contents (can be reimplemented in children)

Reimplemented in GNEFixDemandElements::FixOptions, and GNEFixNetworkElements::FixOptions.

Definition at line 219 of file MFXGroupBoxModule.cpp.

Referenced by MFXGroupBoxModule::onCmdSaveButton().

Here is the caller graph for this function:

◆ setPossibleCandidates()

void GNEPathCreator::setPossibleCandidates ( GNEEdge originEdge,
const SUMOVehicleClass  vClass 
)
protected

set edgereachability (This function will be called recursively)

Definition at line 1020 of file GNEPathCreator.cpp.

References GNEPathManager::PathCalculator::calculateReachability(), GNENet::getAttributeCarriers(), GNENetHelper::AttributeCarriers::getEdges(), GNEViewNet::getNet(), GNEPathManager::getPathCalculator(), GNENet::getPathManager(), GNEFrame::getViewNet(), and myFrameParent.

Referenced by updateEdgeColors().

Here is the caller graph for this function:

◆ setSpecialCandidates()

void GNEPathCreator::setSpecialCandidates ( GNEEdge originEdge)
protected

set special candidates (This function will be called recursively)

Definition at line 1005 of file GNEPathCreator.cpp.

References GNEPathManager::PathCalculator::calculateReachability(), GNENet::getAttributeCarriers(), GNENetHelper::AttributeCarriers::getEdges(), GNEViewNet::getNet(), GNEPathManager::getPathCalculator(), GNENet::getPathManager(), GNEFrame::getViewNet(), myFrameParent, and SVC_PEDESTRIAN.

Referenced by updateEdgeColors().

Here is the caller graph for this function:

◆ setText()

void MFXGroupBoxModule::setText ( const std::string &  text)
inherited

set text

Definition at line 112 of file MFXGroupBoxModule.cpp.

References MFXGroupBoxModule::myLabel.

Referenced by GNETagSelector::setCurrentTagType(), and GNESelectorFrame::SelectionInformation::updateInformationLabel().

Here is the caller graph for this function:

◆ setVClass()

void GNEPathCreator::setVClass ( SUMOVehicleClass  vClass)

◆ showPathCreatorModule()

void GNEPathCreator::showPathCreatorModule ( SumoXMLTag  element,
const bool  firstElement,
const bool  consecutives 
)

show GNEPathCreator for the given tag

Definition at line 187 of file GNEPathCreator.cpp.

References abortPathCreation(), CONSECUTIVE_EDGES, END_BUSSTOP, END_CONTAINERSTOP, END_EDGE, END_JUNCTION, GNE_TAG_FLOW_JUNCTIONS, GNE_TAG_FLOW_ROUTE, GNE_TAG_FLOW_WITHROUTE, GNE_TAG_PERSONTRIP_BUSSTOP, GNE_TAG_PERSONTRIP_EDGE, GNE_TAG_PERSONTRIP_JUNCTIONS, GNE_TAG_RIDE_BUSSTOP, GNE_TAG_RIDE_EDGE, GNE_TAG_ROUTE_EMBEDDED, GNE_TAG_STOPCONTAINER_CONTAINERSTOP, GNE_TAG_STOPCONTAINER_EDGE, GNE_TAG_STOPPERSON_BUSSTOP, GNE_TAG_STOPPERSON_EDGE, GNE_TAG_TRANSHIP_CONTAINERSTOP, GNE_TAG_TRANSHIP_EDGE, GNE_TAG_TRANSHIP_EDGES, GNE_TAG_TRANSPORT_CONTAINERSTOP, GNE_TAG_TRANSPORT_EDGE, GNE_TAG_TRIP_JUNCTIONS, GNE_TAG_VEHICLE_WITHROUTE, GNE_TAG_WALK_BUSSTOP, GNE_TAG_WALK_EDGE, GNE_TAG_WALK_EDGES, GNE_TAG_WALK_JUNCTIONS, GNE_TAG_WALK_ROUTE, myAbortCreationButton, myBackSpaceLabel, myControlLabel, myCreationMode, myFinishCreationButton, myInfoRouteLabel, myRemoveLastInsertedElement, myShiftLabel, myShowCandidateEdges, myUseLastRoute, NONCONSECUTIVE_EDGES, ONLY_FROMTO, REQUIRE_FIRSTELEMENT, ROUTE, SHOW_CANDIDATE_EDGES, SHOW_CANDIDATE_JUNCTIONS, START_EDGE, START_JUNCTION, STOP, SUMO_TAG_EDGEREL, SUMO_TAG_FLOW, SUMO_TAG_ROUTE, SUMO_TAG_TRIP, SUMO_TAG_VEHICLE, updateEdgeColors(), and updateJunctionColors().

Referenced by GNEContainerFrame::demandElementSelected(), GNEPersonFrame::demandElementSelected(), GNEVehicleFrame::demandElementSelected(), GNEGenericDataFrame::show(), GNEContainerFrame::tagSelected(), GNEContainerPlanFrame::tagSelected(), GNEPersonFrame::tagSelected(), GNEPersonPlanFrame::tagSelected(), GNEVehicleFrame::tagSelected(), and GNEGenericDataFrame::updateFrameAfterUndoRedo().

Here is the caller graph for this function:

◆ toggleSaveButton()

void MFXGroupBoxModule::toggleSaveButton ( const bool  value)
protectedinherited

enable or disable save buttons

Definition at line 233 of file MFXGroupBoxModule.cpp.

References MFXGroupBoxModule::mySaveButton.

◆ updateEdgeColors()

void GNEPathCreator::updateEdgeColors ( )

◆ updateInfoRouteLabel()

void GNEPathCreator::updateInfoRouteLabel ( )
protected

update InfoRouteLabel

Definition at line 925 of file GNEPathCreator.cpp.

References myInfoRouteLabel, myPath, mySelectedEdges, TL, and toString().

Referenced by abortPathCreation(), addEdge(), addJunction(), addRoute(), addStoppingPlace(), clearPath(), and removeLastElement().

Here is the caller graph for this function:

◆ updateJunctionColors()

void GNEPathCreator::updateJunctionColors ( )

update junction colors

Definition at line 629 of file GNEPathCreator.cpp.

References clearJunctionColors(), GNENet::getAttributeCarriers(), GNENetHelper::AttributeCarriers::getJunctions(), GNEViewNet::getNet(), GNEFrame::getViewNet(), myCreationMode, myFrameParent, mySelectedJunctions, SHOW_CANDIDATE_JUNCTIONS, and GNEViewNet::updateViewNet().

Referenced by abortPathCreation(), addJunction(), removeLastElement(), and showPathCreatorModule().

Here is the caller graph for this function:

Field Documentation

◆ myAbortCreationButton

FXButton* GNEPathCreator::myAbortCreationButton
protected

button for abort route creation

Definition at line 258 of file GNEPathCreator.h.

Referenced by abortPathCreation(), addEdge(), addJunction(), addStoppingPlace(), GNEPathCreator(), and showPathCreatorModule().

◆ myBackSpaceLabel

FXLabel* GNEPathCreator::myBackSpaceLabel
protected

label for backSpace information

Definition at line 273 of file GNEPathCreator.h.

Referenced by GNEPathCreator(), and showPathCreatorModule().

◆ myCollapsableFrame

FXVerticalFrame* MFXGroupBoxModule::myCollapsableFrame = nullptr
privateinherited

◆ myCollapseButton

FXButton* MFXGroupBoxModule::myCollapseButton = nullptr
privateinherited

button for collapse elements

Definition at line 108 of file MFXGroupBoxModule.h.

Referenced by MFXGroupBoxModule::MFXGroupBoxModule(), and MFXGroupBoxModule::onCmdCollapseButton().

◆ myCollapsed

bool MFXGroupBoxModule::myCollapsed
privateinherited

flag to check if this groupbox is collapsed

Definition at line 123 of file MFXGroupBoxModule.h.

Referenced by MFXGroupBoxModule::onCmdCollapseButton().

◆ myControlLabel

FXLabel* GNEPathCreator::myControlLabel
protected

label for control information

Definition at line 270 of file GNEPathCreator.h.

Referenced by GNEPathCreator(), onCmdShowCandidateEdges(), and showPathCreatorModule().

◆ myCreationMode

int GNEPathCreator::myCreationMode
protected

◆ myExtendButton

FXButton* MFXGroupBoxModule::myExtendButton = nullptr
privateinherited

button for extend elements

Definition at line 111 of file MFXGroupBoxModule.h.

◆ myFinishCreationButton

FXButton* GNEPathCreator::myFinishCreationButton
protected

button for finish route creation

Definition at line 255 of file GNEPathCreator.h.

Referenced by abortPathCreation(), addEdge(), addJunction(), addStoppingPlace(), GNEPathCreator(), and showPathCreatorModule().

◆ myFrameParent

◆ myInfoRouteLabel

FXLabel* GNEPathCreator::myInfoRouteLabel
protected

label with route info

Definition at line 249 of file GNEPathCreator.h.

Referenced by GNEPathCreator(), showPathCreatorModule(), and updateInfoRouteLabel().

◆ myLabel

FXLabel* MFXGroupBoxModule::myLabel = nullptr
privateinherited

label used in non collapsable MFXGroupBoxModule

Definition at line 105 of file MFXGroupBoxModule.h.

Referenced by MFXGroupBoxModule::MFXGroupBoxModule(), and MFXGroupBoxModule::setText().

◆ myLoadButton

FXButton* MFXGroupBoxModule::myLoadButton = nullptr
privateinherited

button for load elements

Definition at line 120 of file MFXGroupBoxModule.h.

Referenced by MFXGroupBoxModule::MFXGroupBoxModule().

◆ myOptions

const int MFXGroupBoxModule::myOptions
privateinherited

GroupBoxModule options.

Definition at line 96 of file MFXGroupBoxModule.h.

Referenced by MFXGroupBoxModule::MFXGroupBoxModule().

◆ myPath

std::vector<Path> GNEPathCreator::myPath
protected

vector with current path

Definition at line 246 of file GNEPathCreator.h.

Referenced by clearPath(), drawTemporalRoute(), getPath(), recalculatePath(), and updateInfoRouteLabel().

◆ myRemoveLastInsertedElement

FXButton* GNEPathCreator::myRemoveLastInsertedElement
protected

button for removing last inserted element

Definition at line 261 of file GNEPathCreator.h.

Referenced by abortPathCreation(), addEdge(), addJunction(), addStoppingPlace(), GNEPathCreator(), removeLastElement(), and showPathCreatorModule().

◆ myResetWidthButton

FXButton* MFXGroupBoxModule::myResetWidthButton = nullptr
privateinherited

button for reset frame width

Definition at line 114 of file MFXGroupBoxModule.h.

◆ myRoute

GNEDemandElement* GNEPathCreator::myRoute
protected

route (usually a busStop)

Definition at line 243 of file GNEPathCreator.h.

Referenced by abortPathCreation(), addRoute(), clearPath(), getRoute(), and recalculatePath().

◆ mySaveButton

FXButton* MFXGroupBoxModule::mySaveButton = nullptr
privateinherited

button for save elements

Definition at line 117 of file MFXGroupBoxModule.h.

Referenced by MFXGroupBoxModule::MFXGroupBoxModule(), and MFXGroupBoxModule::toggleSaveButton().

◆ mySelectedEdges

std::vector<GNEEdge*> GNEPathCreator::mySelectedEdges
protected

◆ mySelectedJunctions

std::vector<GNEJunction*> GNEPathCreator::mySelectedJunctions
protected

◆ myShiftLabel

FXLabel* GNEPathCreator::myShiftLabel
protected

label for shift information

Definition at line 267 of file GNEPathCreator.h.

Referenced by GNEPathCreator(), onCmdShowCandidateEdges(), and showPathCreatorModule().

◆ myShowCandidateEdges

FXCheckButton* GNEPathCreator::myShowCandidateEdges
protected

◆ myToStoppingPlace

GNEAdditional* GNEPathCreator::myToStoppingPlace
protected

to additional (usually a busStop)

Definition at line 240 of file GNEPathCreator.h.

Referenced by abortPathCreation(), addStoppingPlace(), clearPath(), getToStoppingPlace(), and recalculatePath().

◆ myUseLastRoute

FXButton* GNEPathCreator::myUseLastRoute
protected

button for use last inserted route

Definition at line 252 of file GNEPathCreator.h.

Referenced by GNEPathCreator(), and showPathCreatorModule().

◆ myVClass

SUMOVehicleClass GNEPathCreator::myVClass
protected

current vClass

Definition at line 228 of file GNEPathCreator.h.

Referenced by getVClass(), recalculatePath(), setVClass(), and updateEdgeColors().


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