Eclipse SUMO - Simulation of Urban MObility
Loading...
Searching...
No Matches
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
bool addEdge (GNEEdge *edge, const bool shiftKeyPressed, const bool controlKeyPressed)
 add edge
bool addJunction (GNEJunction *junction)
 add junction
bool addRoute (GNEDemandElement *route)
 add route
bool addTAZ (GNETAZ *taz)
 add TAZ
void clearEdgeColors ()
 clear edge colors
void clearJunctionColors ()
 clear junction colors
bool createPath (const bool useLastRoute)
 create path
bool drawCandidateEdgesWithSpecialColor () const
 draw candidate edges with special color (Only for candidates, special and conflicted)
void drawTemporalRoute (const GUIVisualizationSettings &s) const
 draw temporal route
FXVerticalFrame * getCollapsableFrame ()
 get collapsable frame (used by all elements that will be collapsed if button is toggled)
const std::vector< Path > & getPath () const
 get path route
GNEDemandElementgetRoute () const
 get route
const std::vector< GNEEdge * > & getSelectedEdges () const
 get current selected edges
const std::vector< GNEJunction * > & getSelectedJunctions () const
 get current selected junctions
const std::vector< GNETAZ * > & getSelectedTAZs () const
 get current selected TAZs
SUMOVehicleClass getVClass () const
 get vClass
 GNEPathCreator (GNEFrame *frameParent, GNEPathManager *pathManager)
 default constructor
void hidePathCreatorModule ()
 show GNEPathCreator
long onCmdCollapseButton (FXObject *, FXSelector, void *)
 collapse GroupBoxModule
long onCmdExtendButton (FXObject *, FXSelector, void *)
 extends GroupBoxModule
long onCmdLoadButton (FXObject *, FXSelector, void *)
 load contents
long onCmdResetButton (FXObject *, FXSelector, void *)
 reset GroupBoxModule
long onCmdSaveButton (FXObject *, FXSelector, void *)
 save contents
long onPaint (FXObject *, FXSelector, void *)
 draw MFXGroupBoxModule
long onUpdResetButton (FXObject *, FXSelector, void *)
 update reset GroupBoxModule
void removeLastElement ()
 remove path element
void setText (const std::string &text)
 set text
void setVClass (SUMOVehicleClass vClass)
 set vClass
void showPathCreatorModule (const GNETagProperties *tagProperty, const bool consecutives)
 show GNEPathCreator for the given tag
void updateEdgeColors ()
 update edge colors
void updateJunctionColors ()
 update junction colors
 ~GNEPathCreator ()
 destructor
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".
long onUpdUseLastRoute (FXObject *, FXSelector, void *)
 Called when update button "Use last route".
long onCmdAbortPathCreation (FXObject *, FXSelector, void *)
 Called when the user click over button "Abort route creation".
long onCmdRemoveLastElement (FXObject *, FXSelector, void *)
 Called when the user click over button "Remove las inserted edge".
long onCmdShowCandidateEdges (FXObject *, FXSelector, void *)
 Called when the user click over check button "show candidate edges".

Protected Types

enum  Mode {
  ONLY_FROMTO = 1 << 0 , CONSECUTIVE_EDGES = 1 << 1 , NONCONSECUTIVE_EDGES = 1 << 2 , START_EDGE = 1 << 3 ,
  END_EDGE = 1 << 4 , START_JUNCTION = 1 << 5 , END_JUNCTION = 1 << 6 , START_TAZ = 1 << 7 ,
  END_TAZ = 1 << 8 , ROUTE = 1 << 9 , SHOW_CANDIDATE_EDGES = 1 << 10 , SHOW_CANDIDATE_JUNCTIONS = 1 << 11
}

Protected Member Functions

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

Protected Attributes

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

Private Member Functions

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

Private Attributes

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

Detailed Description

Definition at line 43 of file GNEPathCreator.h.

Member Enumeration Documentation

◆ Mode

enum GNEPathCreator::Mode
protected
Enumerator
ONLY_FROMTO 
CONSECUTIVE_EDGES 
NONCONSECUTIVE_EDGES 
START_EDGE 
END_EDGE 
START_JUNCTION 
END_JUNCTION 
START_TAZ 
END_TAZ 
ROUTE 
SHOW_CANDIDATE_EDGES 
SHOW_CANDIDATE_JUNCTIONS 

Definition at line 188 of file GNEPathCreator.h.

◆ Options

GroupBoxModule options.

Enumerator
NOTHING 
COLLAPSIBLE 
EXTENSIBLE 
SAVE 
LOAD 

Definition at line 38 of file MFXGroupBoxModule.h.

Constructor & Destructor Documentation

◆ GNEPathCreator() [1/2]

◆ ~GNEPathCreator()

GNEPathCreator::~GNEPathCreator ( )

destructor

Definition at line 164 of file GNEPathCreator.cpp.

◆ GNEPathCreator() [2/2]

GNEPathCreator::GNEPathCreator ( GNEPathCreator * )
privatedelete

Invalidated copy constructor.

References GNEPathCreator().

Member Function Documentation

◆ abortPathCreation()

void GNEPathCreator::abortPathCreation ( )

abort path creation

Definition at line 689 of file GNEPathCreator.cpp.

References clearPath(), myAbortCreationButton, myFinishCreationButton, myFrameParent, myRemoveLastInsertedElement, myRoute, mySelectedEdges, mySelectedJunctions, mySelectedTAZs, updateEdgeColors(), updateInfoRouteLabel(), and updateJunctionColors().

Referenced by onCmdAbortPathCreation(), and showPathCreatorModule().

Here is the caller graph for this function:

◆ addEdge()

◆ addJunction()

◆ addRoute()

bool GNEPathCreator::addRoute ( GNEDemandElement * route)

◆ addTAZ()

◆ clearEdgeColors()

void GNEPathCreator::clearEdgeColors ( )

clear edge colors

Definition at line 576 of file GNEPathCreator.cpp.

References myFrameParent.

Referenced by clearPath(), and updateEdgeColors().

Here is the caller graph for this function:

◆ clearJunctionColors()

void GNEPathCreator::clearJunctionColors ( )

clear junction colors

Definition at line 567 of file GNEPathCreator.cpp.

References myFrameParent.

Referenced by clearPath(), 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 830 of file GNEPathCreator.cpp.

References clearEdgeColors(), clearJunctionColors(), myPath, myRoute, mySelectedEdges, mySelectedJunctions, mySelectedTAZs, 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 682 of file GNEPathCreator.cpp.

References myFrameParent.

Referenced by addRoute(), 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 486 of file GNEPathCreator.cpp.

References myShowCandidateEdges.

◆ drawTemporalRoute()

◆ getCollapsableFrame()

FXVerticalFrame * MFXGroupBoxModule::getCollapsableFrame ( )
inherited

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

Definition at line 126 of file MFXGroupBoxModule.cpp.

References myCollapsableFrame.

Referenced by GNEGenericDataFrame::AttributeSelector::AttributeSelector(), GNEMoveFrame::ChangeZInSelection::ChangeZInSelection(), GNEMoveFrame::CommonMoveOptions::CommonMoveOptions(), GNETAZRelDataFrame::ConfirmTAZRelation::ConfirmTAZRelation(), GNEConnectorFrame::ConnectionModifications::ConnectionModifications(), GNEConnectorFrame::ConnectionOperations::ConnectionOperations(), GNEConnectorFrame::ConnectionSelection::ConnectionSelection(), GNECrossingFrame::CreateCrossing::CreateCrossing(), GNECrossingFrame::CrossingParameters::CrossingParameters(), GNEConnectorFrame::CurrentLane::CurrentLane(), GNETAZFrame::CurrentTAZ::CurrentTAZ(), GNEGenericDataFrame::DataSetSelector::DataSetSelector(), GNEDeleteFrame::DeleteOptions::DeleteOptions(), GNEMoveFrame::DemandMoveOptions::DemandMoveOptions(), GNEDistributionFrame::DistributionEditor::DistributionEditor(), GNEDistributionFrame::DistributionSelector::DistributionSelector(), GNEDistributionFrame::DistributionValuesEditor::DistributionValuesEditor(), GNEAdditionalFrame::E2MultilaneLegendModule::E2MultilaneLegendModule(), GNECrossingFrame::EdgesSelector::EdgesSelector(), GNECreateEdgeFrame::EdgeTypeSelector::EdgeTypeSelector(), GNEFixElementsDialog< T >::FixOptions::FixOptions(), GNEShapeFrame::GEOPOICreator::GEOPOICreator(), GNEAttributesEditorType::GNEAttributesEditorType(), GNEConsecutiveSelector::GNEConsecutiveSelector(), GNEDemandElementSelector::GNEDemandElementSelector(), GNEDrawingShape::GNEDrawingShape(), GNEElementTree::GNEElementTree(), GNEMatchAttribute::GNEMatchAttribute(), GNEOptionsEditor::GNEOptionsEditor(), GNEOverlappedInspection::GNEOverlappedInspection(), GNEPathCreator::GNEPathCreator(), GNEPathLegendModule::GNEPathLegendModule(), GNEPlanCreator::GNEPlanCreator(), GNEPlanCreatorLegend::GNEPlanCreatorLegend(), GNEPlanSelector::GNEPlanSelector(), GNESelectorParent::GNESelectorParent(), GNETagSelector::GNETagSelector(), GNEViewObjectSelector::GNEViewObjectSelector(), GNEStopFrame::HelpCreation::HelpCreation(), GNEVehicleFrame::HelpCreation::HelpCreation(), GNEAdditionalFrame::HelpCreationModule::HelpCreationModule(), GNECrossingFrame::Information::Information(), GNEMoveFrame::Information::Information(), GNESelectorFrame::Information::Information(), GNEGenericDataFrame::IntervalSelector::IntervalSelector(), GNECrossingFrame::JunctionInformation::JunctionInformation(), GNECreateEdgeFrame::LaneTypeSelector::LaneTypeSelector(), GNEConnectorFrame::Legend::Legend(), GNECreateEdgeFrame::Legend::Legend(), GNEProhibitionFrame::Legend::Legend(), GNETAZRelDataFrame::Legend::Legend(), GNEMeanDataFrame::MeanDataEditor::MeanDataEditor(), GNEMeanDataFrame::MeanDataSelector::MeanDataSelector(), GNEMeanDataFrame::MeanDataTypeSelector::MeanDataTypeSelector(), GNESelectorFrame::ModificationMode::ModificationMode(), GNEMoveFrame::NetworkMoveOptions::NetworkMoveOptions(), GNESelectorFrame::SelectionOperation::onCmdLoad(), GNETLSEditorFrame::TLSFile::onCmdLoadTLSProgram(), GNETLSEditorFrame::TLSJunction::onCmdToggleJoinTLS(), GNEDeleteFrame::ProtectElements::ProtectElements(), GNEDistributionFrame::DistributionValuesEditor::refreshRows(), GNEProhibitionFrame::RelativeToConnection::RelativeToConnection(), GNERouteFrame::RouteModeSelector::RouteModeSelector(), GNEProhibitionFrame::Selection::Selection(), GNESelectorFrame::SelectionHierarchy::SelectionHierarchy(), GNESelectorFrame::SelectionInformation::SelectionInformation(), GNESelectorFrame::SelectionOperation::SelectionOperation(), GNEMoveFrame::ShiftEdgeSelectedGeometry::ShiftEdgeSelectedGeometry(), GNEMoveFrame::ShiftShapeGeometry::ShiftShapeGeometry(), GNETAZFrame::TAZChildDefaultParameters::TAZChildDefaultParameters(), GNETAZFrame::TAZCommonStatistics::TAZCommonStatistics(), GNETAZFrame::TAZEdgesGraphic::TAZEdgesGraphic(), GNETAZFrame::TAZSaveChanges::TAZSaveChanges(), GNETAZFrame::TAZSelectionStatistics::TAZSelectionStatistics(), GNEInspectorFrame::TemplateEditor::TemplateEditor(), GNETLSEditorFrame::TLSAttributes::TLSAttributes(), GNETLSEditorFrame::TLSFile::TLSFile(), GNETLSEditorFrame::TLSJunction::TLSJunction(), GNETLSEditorFrame::TLSPhases::TLSPhases(), GNETLSEditorFrame::TLSPrograms::TLSPrograms(), GNETypeFrame::TypeEditor::TypeEditor(), GNETypeFrame::TypeSelector::TypeSelector(), and GNESelectorFrame::VisualScaling::VisualScaling().

◆ getPath()

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

get path route

Definition at line 480 of file GNEPathCreator.cpp.

References myPath.

◆ getRoute()

GNEDemandElement * GNEPathCreator::getRoute ( ) const

get route

Definition at line 474 of file GNEPathCreator.cpp.

References myRoute.

◆ getSelectedEdges()

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

get current selected edges

Definition at line 434 of file GNEPathCreator.cpp.

References mySelectedEdges.

◆ getSelectedJunctions()

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

get current selected junctions

Definition at line 440 of file GNEPathCreator.cpp.

References mySelectedJunctions.

◆ getSelectedTAZs()

const std::vector< GNETAZ * > & GNEPathCreator::getSelectedTAZs ( ) const

get current selected TAZs

Definition at line 446 of file GNEPathCreator.cpp.

References mySelectedTAZs.

◆ getVClass()

SUMOVehicleClass GNEPathCreator::getVClass ( ) const

get vClass

Definition at line 253 of file GNEPathCreator.cpp.

References myVClass.

◆ hidePathCreatorModule()

void GNEPathCreator::hidePathCreatorModule ( )

show GNEPathCreator

Definition at line 244 of file GNEPathCreator.cpp.

References clearPath().

◆ loadContents()

bool MFXGroupBoxModule::loadContents ( ) const
protectedvirtualinherited

load contents (can be reimplemented in children)

Definition at line 234 of file MFXGroupBoxModule.cpp.

Referenced by 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 767 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 145 of file MFXGroupBoxModule.cpp.

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

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onCmdCreatePath()

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

Definition at line 745 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 161 of file MFXGroupBoxModule.cpp.

References myCollapsableFrame, and myFrameParent.

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onCmdLoadButton()

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

load contents

Definition at line 215 of file MFXGroupBoxModule.cpp.

References 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 775 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 187 of file MFXGroupBoxModule.cpp.

References myFrameParent.

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onCmdSaveButton()

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

save contents

Definition at line 209 of file MFXGroupBoxModule.cpp.

References 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 783 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 752 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 132 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 196 of file MFXGroupBoxModule.cpp.

References 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 758 of file GNEPathCreator.cpp.

References myCreationMode, myFrameParent, and ROUTE.

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ operator=()

GNEPathCreator & GNEPathCreator::operator= ( GNEPathCreator * )
privatedelete

Invalidated assignment operator.

References GNEPathCreator().

◆ recalculatePath()

void GNEPathCreator::recalculatePath ( )
protected

recalculate path

Definition at line 847 of file GNEPathCreator.cpp.

References myPath, myPathManager, myRoute, mySelectedEdges, mySelectedJunctions, and myVClass.

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

Here is the caller graph for this function:

◆ removeLastElement()

void GNEPathCreator::removeLastElement ( )

remove path element

Definition at line 713 of file GNEPathCreator.cpp.

References myFrameParent, myRemoveLastInsertedElement, mySelectedEdges, recalculatePath(), updateEdgeColors(), updateInfoRouteLabel(), and updateJunctionColors().

Referenced by onCmdRemoveLastElement().

Here is the caller graph for this function:

◆ saveContents()

bool MFXGroupBoxModule::saveContents ( ) const
protectedvirtualinherited

save contents (can be reimplemented in children)

Reimplemented in GNEFixElementsDialog< T >::FixOptions.

Definition at line 227 of file MFXGroupBoxModule.cpp.

Referenced by 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 892 of file GNEPathCreator.cpp.

References myFrameParent, and myPathManager.

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 877 of file GNEPathCreator.cpp.

References myFrameParent, myPathManager, 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 120 of file MFXGroupBoxModule.cpp.

References myLabel.

Referenced by GNEViewObjectSelector::showNetworkElementsSelector(), and GNETagSelector::updateTagTypes().

Here is the caller graph for this function:

◆ setVClass()

void GNEPathCreator::setVClass ( SUMOVehicleClass vClass)

set vClass

Definition at line 259 of file GNEPathCreator.cpp.

References myVClass, and updateEdgeColors().

◆ showPathCreatorModule()

◆ toggleSaveButton()

void MFXGroupBoxModule::toggleSaveButton ( const bool value)
protectedinherited

enable or disable save buttons

Definition at line 241 of file MFXGroupBoxModule.cpp.

References invalid_return< std::string >::value, and mySaveButton.

◆ updateEdgeColors()

void GNEPathCreator::updateEdgeColors ( )

update edge colors

Definition at line 520 of file GNEPathCreator.cpp.

References clearEdgeColors(), myCreationMode, myFrameParent, mySelectedEdges, myShowCandidateEdges, myVClass, setPossibleCandidates(), setSpecialCandidates(), and SHOW_CANDIDATE_EDGES.

Referenced by abortPathCreation(), addEdge(), addRoute(), onCmdShowCandidateEdges(), removeLastElement(), setVClass(), and showPathCreatorModule().

Here is the caller graph for this function:

◆ updateInfoRouteLabel()

void GNEPathCreator::updateInfoRouteLabel ( )
protected

update InfoRouteLabel

Definition at line 801 of file GNEPathCreator.cpp.

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

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

Here is the caller graph for this function:

◆ updateJunctionColors()

void GNEPathCreator::updateJunctionColors ( )

update junction colors

Definition at line 492 of file GNEPathCreator.cpp.

References clearJunctionColors(), myCreationMode, myFrameParent, mySelectedJunctions, and SHOW_CANDIDATE_JUNCTIONS.

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 255 of file GNEPathCreator.h.

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

◆ myBackSpaceLabel

FXLabel* GNEPathCreator::myBackSpaceLabel
protected

label for backSpace information

Definition at line 270 of file GNEPathCreator.h.

Referenced by GNEPathCreator(), and showPathCreatorModule().

◆ myCollapsableFrame

FXVerticalFrame* MFXGroupBoxModule::myCollapsableFrame = nullptr
privateinherited

vertical collapsable frame

Definition at line 103 of file MFXGroupBoxModule.h.

Referenced by getCollapsableFrame(), MFXGroupBoxModule(), MFXGroupBoxModule(), onCmdCollapseButton(), and onCmdExtendButton().

◆ myCollapseButton

FXButton* MFXGroupBoxModule::myCollapseButton = nullptr
privateinherited

button for collapse elements

Definition at line 109 of file MFXGroupBoxModule.h.

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

◆ myCollapsed

bool MFXGroupBoxModule::myCollapsed
privateinherited

flag to check if this groupbox is collapsed

Definition at line 124 of file MFXGroupBoxModule.h.

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

◆ myControlLabel

FXLabel* GNEPathCreator::myControlLabel
protected

label for control information

Definition at line 267 of file GNEPathCreator.h.

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

◆ myCreationMode

int GNEPathCreator::myCreationMode
protected

◆ myExtendButton

MFXButtonTooltip* MFXGroupBoxModule::myExtendButton = nullptr
privateinherited

button for extend elements

Definition at line 112 of file MFXGroupBoxModule.h.

Referenced by MFXGroupBoxModule().

◆ myFinishCreationButton

FXButton* GNEPathCreator::myFinishCreationButton
protected

button for finish route creation

Definition at line 252 of file GNEPathCreator.h.

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

◆ myFrameParent

◆ myInfoRouteLabel

FXLabel* GNEPathCreator::myInfoRouteLabel
protected

label with route info

Definition at line 246 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 106 of file MFXGroupBoxModule.h.

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

◆ myLoadButton

FXButton* MFXGroupBoxModule::myLoadButton = nullptr
privateinherited

button for load elements

Definition at line 121 of file MFXGroupBoxModule.h.

Referenced by MFXGroupBoxModule(), and MFXGroupBoxModule().

◆ myOptions

const int MFXGroupBoxModule::myOptions
privateinherited

GroupBoxModule options.

Definition at line 97 of file MFXGroupBoxModule.h.

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

◆ myPath

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

vector with current path

Definition at line 243 of file GNEPathCreator.h.

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

◆ myPathManager

GNEPathManager* GNEPathCreator::myPathManager
protected

path manager

Definition at line 222 of file GNEPathCreator.h.

Referenced by GNEPathCreator(), recalculatePath(), setPossibleCandidates(), and setSpecialCandidates().

◆ myRemoveLastInsertedElement

FXButton* GNEPathCreator::myRemoveLastInsertedElement
protected

button for removing last inserted element

Definition at line 258 of file GNEPathCreator.h.

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

◆ myResetWidthButton

FXButton* MFXGroupBoxModule::myResetWidthButton = nullptr
privateinherited

button for reset frame width

Definition at line 115 of file MFXGroupBoxModule.h.

Referenced by MFXGroupBoxModule().

◆ myRoute

GNEDemandElement* GNEPathCreator::myRoute
protected

route (usually a busStop)

Definition at line 240 of file GNEPathCreator.h.

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

◆ mySaveButton

FXButton* MFXGroupBoxModule::mySaveButton = nullptr
privateinherited

button for save elements

Definition at line 118 of file MFXGroupBoxModule.h.

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

◆ mySelectedEdges

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

◆ mySelectedJunctions

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

◆ mySelectedTAZs

std::vector<GNETAZ*> GNEPathCreator::mySelectedTAZs
protected

vector with selected TAZs

Definition at line 234 of file GNEPathCreator.h.

Referenced by abortPathCreation(), addTAZ(), clearPath(), drawTemporalRoute(), and getSelectedTAZs().

◆ myShiftLabel

FXLabel* GNEPathCreator::myShiftLabel
protected

label for shift information

Definition at line 264 of file GNEPathCreator.h.

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

◆ myShowCandidateEdges

FXCheckButton* GNEPathCreator::myShowCandidateEdges
protected

◆ myUseLastRoute

FXButton* GNEPathCreator::myUseLastRoute
protected

button for use last inserted route

Definition at line 249 of file GNEPathCreator.h.

Referenced by GNEPathCreator(), and showPathCreatorModule().

◆ myVClass

SUMOVehicleClass GNEPathCreator::myVClass
protected

current vClass

Definition at line 225 of file GNEPathCreator.h.

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


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