Eclipse SUMO - Simulation of Urban MObility
Loading...
Searching...
No Matches
GNEPlanCreator Class Reference

#include <GNEPlanCreator.h>

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

Data Structures

class  PlanPath
 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 (GNELane *lane)
 add edge (clicking over lanes)
bool addJunction (GNEJunction *junction)
 add junction
bool addRoute (GNEDemandElement *route)
 add route
bool addStoppingPlace (GNEAdditional *stoppingPlace)
 add from to stoppingPlace
bool addTAZ (GNEAdditional *taz)
 add TAZ
void drawTemporalRoute (const GUIVisualizationSettings &s) const
 draw temporal route
double getClickedPositionOverLane () const
 get clicked position over lane
FXVerticalFrame * getCollapsableFrame ()
 get collapsable frame (used by all elements that will be collapsed if button is toggled)
const std::vector< PlanPath > & getPath () const
 get path route
const CommonXMLStructure::PlanParametersgetPlanParameteres () const
 get plan parameters
 GNEPlanCreator (GNEFrame *frameParent, GNEPathManager *pathManager)
 default constructor
void hidePathCreatorModule ()
 show GNEPlanCreator
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
bool planCanBeCreated (const GNEDemandElement *planTemplate) const
 check if plan can be created
void removeLastElement ()
 remove path element
void setText (const std::string &text)
 set text
void showPlanCreatorModule (const GNEPlanSelector *planSelector, const GNEDemandElement *previousPlan)
 show plan creator for the given tag property
 ~GNEPlanCreator ()
 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".

Protected Types

enum  PlanParents {
  CONSECUTIVE_EDGES = 1 << 0 , ROUTE = 1 << 1 , EDGE = 1 << 2 , STOPPINGPLACE = 1 << 3 ,
  START_EDGE = 1 << 4 , START_TAZ = 1 << 5 , START_JUNCTION = 1 << 6 , START_STOPPINGPLACE = 1 << 7 ,
  END_EDGE = 1 << 8 , END_TAZ = 1 << 9 , END_JUNCTION = 1 << 10 , END_STOPPINGPLACE = 1 << 11
}
 FOX need this. More...

Protected Member Functions

void clearPath ()
 clear edges
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 toggleSaveButton (const bool value)
 enable or disable save buttons

Protected Attributes

FXButton * myAbortCreationButton
 button for abort route creation
double myClickedPositionOverLane = 0
 clicked position over lane
FXButton * myFinishCreationButton
 button for finish route creation
GNEFramemyFrameParent
 current frame parent
FXLabel * myInfoLabel
 info label
std::vector< PlanPathmyPath
 vector with current path
GNEPathManagermyPathManager
 path manager used in this plan creator
CommonXMLStructure::PlanParameters myPlanParameteres
 plan parameters
int myPlanParents
 allowed plan parents
const GNEDemandElementmyPreviousPlanElement = nullptr
 previous person plan element
FXButton * myRemoveLastInsertedElement
 button for removing last inserted element
FXButton * myUseLastRoute
 button for use last inserted route
SUMOVehicleClass myVClass
 current vClass

Private Member Functions

bool addConsecutiveEdge (GNEEdge *edge)
 add consecutive edge
bool addFromToEdge (GNEEdge *edge)
 add from to edge
bool addFromToJunction (GNEJunction *junction)
 add junction
bool addFromToStoppingPlace (GNEAdditional *stoppingPlace)
 add from to stoppingPlace
bool addFromToTAZ (GNEAdditional *taz)
 add TAZ
bool addSingleEdge (GNELane *lane)
 add edge
bool addSingleStoppingPlace (GNEAdditional *stoppingPlace)
 add stoppingPlace
int getNumberOfSelectedElements () const
 get number of selected elements
 GNEPlanCreator (GNEPlanCreator *)=delete
 Invalidated copy constructor.
void hideCreationButtons ()
 hide creation buttons
GNEPlanCreatoroperator= (GNEPlanCreator *)=delete
 Invalidated assignment operator.
void showCreationButtons ()
 show creation buttons
void updateInfoLabel ()
 update info label
void updateRemoveLastItemButton () const
 check if enable remove last item button

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 36 of file GNEPlanCreator.h.

Member Enumeration Documentation

◆ Options

GroupBoxModule options.

Enumerator
NOTHING 
COLLAPSIBLE 
EXTENSIBLE 
SAVE 
LOAD 

Definition at line 38 of file MFXGroupBoxModule.h.

◆ PlanParents

FOX need this.

Enumerator
CONSECUTIVE_EDGES 
ROUTE 
EDGE 
STOPPINGPLACE 
START_EDGE 
START_TAZ 
START_JUNCTION 
START_STOPPINGPLACE 
END_EDGE 
END_TAZ 
END_JUNCTION 
END_STOPPINGPLACE 

Definition at line 158 of file GNEPlanCreator.h.

Constructor & Destructor Documentation

◆ GNEPlanCreator() [1/2]

◆ ~GNEPlanCreator()

GNEPlanCreator::~GNEPlanCreator ( )

destructor

Definition at line 174 of file GNEPlanCreator.cpp.

◆ GNEPlanCreator() [2/2]

GNEPlanCreator::GNEPlanCreator ( GNEPlanCreator * )
privatedelete

Invalidated copy constructor.

References GNEPlanCreator().

Member Function Documentation

◆ abortPathCreation()

void GNEPlanCreator::abortPathCreation ( )

abort path creation

Definition at line 464 of file GNEPlanCreator.cpp.

References clearPath(), getNumberOfSelectedElements(), myAbortCreationButton, myFinishCreationButton, myFrameParent, and myRemoveLastInsertedElement.

Referenced by onCmdAbortPathCreation(), and showPlanCreatorModule().

Here is the caller graph for this function:

◆ addConsecutiveEdge()

bool GNEPlanCreator::addConsecutiveEdge ( GNEEdge * edge)
private

add consecutive edge

Definition at line 751 of file GNEPlanCreator.cpp.

References GNEAttributeCarrier::getID(), myAbortCreationButton, myFinishCreationButton, myPlanParameteres, recalculatePath(), TL, updateRemoveLastItemButton(), and WRITE_WARNING.

Referenced by addEdge().

Here is the caller graph for this function:

◆ addEdge()

bool GNEPlanCreator::addEdge ( GNELane * lane)

◆ addFromToEdge()

bool GNEPlanCreator::addFromToEdge ( GNEEdge * edge)
private

add from to edge

Definition at line 843 of file GNEPlanCreator.cpp.

References GNEAttributeCarrier::getID(), getNumberOfSelectedElements(), myAbortCreationButton, myFinishCreationButton, myPlanParameteres, recalculatePath(), TL, updateRemoveLastItemButton(), and WRITE_WARNING.

Referenced by addEdge(), and showPlanCreatorModule().

Here is the caller graph for this function:

◆ addFromToJunction()

bool GNEPlanCreator::addFromToJunction ( GNEJunction * junction)
private

add junction

Definition at line 775 of file GNEPlanCreator.cpp.

References GNEAttributeCarrier::getID(), getNumberOfSelectedElements(), myAbortCreationButton, myFinishCreationButton, myPlanParameteres, recalculatePath(), TL, updateRemoveLastItemButton(), and WRITE_WARNING.

Referenced by addJunction(), and showPlanCreatorModule().

Here is the caller graph for this function:

◆ addFromToStoppingPlace()

bool GNEPlanCreator::addFromToStoppingPlace ( GNEAdditional * stoppingPlace)
private

◆ addFromToTAZ()

bool GNEPlanCreator::addFromToTAZ ( GNEAdditional * taz)
private

add TAZ

Definition at line 809 of file GNEPlanCreator.cpp.

References getNumberOfSelectedElements(), myAbortCreationButton, myFinishCreationButton, myPlanParameteres, recalculatePath(), TAZ, TL, updateRemoveLastItemButton(), and WRITE_WARNING.

Referenced by addTAZ(), and showPlanCreatorModule().

Here is the caller graph for this function:

◆ addJunction()

bool GNEPlanCreator::addJunction ( GNEJunction * junction)

add junction

Definition at line 324 of file GNEPlanCreator.cpp.

References addFromToJunction(), END_JUNCTION, myPlanParents, and START_JUNCTION.

◆ addRoute()

bool GNEPlanCreator::addRoute ( GNEDemandElement * route)

add route

Definition at line 296 of file GNEPlanCreator.cpp.

References GNEAttributeCarrier::getID(), myFrameParent, myPlanParameteres, myPlanParents, and ROUTE.

◆ addSingleEdge()

bool GNEPlanCreator::addSingleEdge ( GNELane * lane)
private

add edge

Definition at line 711 of file GNEPlanCreator.cpp.

References GNEAttributeCarrier::getID(), GNELane::getLaneShape(), GNELane::getParentEdge(), myClickedPositionOverLane, myFrameParent, myPlanParameteres, and PositionVector::nearest_offset_to_point2D().

Referenced by addEdge().

Here is the caller graph for this function:

◆ addSingleStoppingPlace()

bool GNEPlanCreator::addSingleStoppingPlace ( GNEAdditional * stoppingPlace)
private

add stoppingPlace

Definition at line 723 of file GNEPlanCreator.cpp.

References GNEAttributeCarrier::getID(), GNETagProperties::getTag(), GNEAttributeCarrier::getTagProperty(), myFrameParent, myPlanParameteres, SUMO_TAG_BUS_STOP, SUMO_TAG_CHARGING_STATION, SUMO_TAG_CONTAINER_STOP, SUMO_TAG_PARKING_AREA, and SUMO_TAG_TRAIN_STOP.

Referenced by addStoppingPlace().

Here is the caller graph for this function:

◆ addStoppingPlace()

bool GNEPlanCreator::addStoppingPlace ( GNEAdditional * stoppingPlace)

◆ addTAZ()

bool GNEPlanCreator::addTAZ ( GNEAdditional * taz)

add TAZ

Definition at line 334 of file GNEPlanCreator.cpp.

References addFromToTAZ(), END_TAZ, myPlanParents, and START_TAZ.

◆ clearPath()

void GNEPlanCreator::clearPath ( )
protected

clear edges

Definition at line 567 of file GNEPlanCreator.cpp.

References myClickedPositionOverLane, myPath, and myPlanParameteres.

Referenced by abortPathCreation(), and hidePathCreatorModule().

Here is the caller graph for this function:

◆ drawTemporalRoute()

◆ getClickedPositionOverLane()

double GNEPlanCreator::getClickedPositionOverLane ( ) const

get clicked position over lane

Definition at line 362 of file GNEPlanCreator.cpp.

References myClickedPositionOverLane.

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

Here is the caller graph for this function:

◆ 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().

◆ getNumberOfSelectedElements()

int GNEPlanCreator::getNumberOfSelectedElements ( ) const
private

get number of selected elements

Definition at line 637 of file GNEPlanCreator.cpp.

References myPlanParameteres.

Referenced by abortPathCreation(), addFromToEdge(), addFromToJunction(), addFromToStoppingPlace(), addFromToTAZ(), and updateRemoveLastItemButton().

Here is the caller graph for this function:

◆ getPath()

const std::vector< GNEPlanCreator::PlanPath > & GNEPlanCreator::getPath ( ) const

get path route

Definition at line 368 of file GNEPlanCreator.cpp.

References myPath.

◆ getPlanParameteres()

const CommonXMLStructure::PlanParameters & GNEPlanCreator::getPlanParameteres ( ) const

get plan parameters

Definition at line 356 of file GNEPlanCreator.cpp.

References myPlanParameteres.

Referenced by GNERouteHandler::buildContainerPlan(), GNERouteHandler::buildPersonPlan(), GNEAdditional::checkDrawFromContour(), GNEEdge::checkDrawFromContour(), GNEJunction::checkDrawFromContour(), GNEAdditional::checkDrawToContour(), GNEEdge::checkDrawToContour(), and GNEJunction::checkDrawToContour().

Here is the caller graph for this function:

◆ hideCreationButtons()

void GNEPlanCreator::hideCreationButtons ( )
private

hide creation buttons

Definition at line 669 of file GNEPlanCreator.cpp.

References myAbortCreationButton, myFinishCreationButton, and myRemoveLastInsertedElement.

Referenced by showPlanCreatorModule().

Here is the caller graph for this function:

◆ hidePathCreatorModule()

void GNEPlanCreator::hidePathCreatorModule ( )

show GNEPlanCreator

Definition at line 287 of file GNEPlanCreator.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 GNEPlanCreator::onCmdAbortPathCreation ( FXObject * ,
FXSelector ,
void *  )

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

Definition at line 551 of file GNEPlanCreator.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 GNEPlanCreator::onCmdCreatePath ( FXObject * ,
FXSelector ,
void *  )

Definition at line 528 of file GNEPlanCreator.cpp.

References myFrameParent.

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 GNEPlanCreator::onCmdRemoveLastElement ( FXObject * ,
FXSelector ,
void *  )

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

Definition at line 559 of file GNEPlanCreator.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:

◆ onCmdUseLastRoute()

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

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

Definition at line 535 of file GNEPlanCreator.cpp.

References myFrameParent.

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 GNEPlanCreator::onUpdUseLastRoute ( FXObject * sender,
FXSelector ,
void *  )

Called when update button "Use last route".

Definition at line 542 of file GNEPlanCreator.cpp.

References myFrameParent, myPlanParents, and ROUTE.

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ operator=()

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

Invalidated assignment operator.

References GNEPlanCreator().

◆ planCanBeCreated()

◆ recalculatePath()

void GNEPlanCreator::recalculatePath ( )
protected

recalculate path

Definition at line 577 of file GNEPlanCreator.cpp.

References GNEHierarchicalElement::getParentLanes(), myFrameParent, myPath, myPathManager, myPlanParameteres, myVClass, SUMO_TAG_BUS_STOP, SUMO_TAG_CHARGING_STATION, SUMO_TAG_CONTAINER_STOP, SUMO_TAG_PARKING_AREA, and SUMO_TAG_TRAIN_STOP.

Referenced by addConsecutiveEdge(), addFromToEdge(), addFromToJunction(), addFromToStoppingPlace(), addFromToTAZ(), and removeLastElement().

Here is the caller graph for this function:

◆ removeLastElement()

void GNEPlanCreator::removeLastElement ( )

remove path element

Definition at line 482 of file GNEPlanCreator.cpp.

References myPlanParameteres, myRemoveLastInsertedElement, recalculatePath(), and updateRemoveLastItemButton().

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:

◆ 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:

◆ showCreationButtons()

void GNEPlanCreator::showCreationButtons ( )
private

show creation buttons

Definition at line 661 of file GNEPlanCreator.cpp.

References myAbortCreationButton, myFinishCreationButton, and myRemoveLastInsertedElement.

Referenced by showPlanCreatorModule().

Here is the caller graph for this function:

◆ showPlanCreatorModule()

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

◆ updateInfoLabel()

void GNEPlanCreator::updateInfoLabel ( )
private

update info label

Definition at line 677 of file GNEPlanCreator.cpp.

References CONSECUTIVE_EDGES, EDGE, END_EDGE, END_JUNCTION, END_STOPPINGPLACE, END_TAZ, myInfoLabel, myPlanParents, ROUTE, START_EDGE, START_JUNCTION, START_STOPPINGPLACE, START_TAZ, STOPPINGPLACE, and TL.

Referenced by showPlanCreatorModule().

Here is the caller graph for this function:

◆ updateRemoveLastItemButton()

void GNEPlanCreator::updateRemoveLastItemButton ( ) const
private

check if enable remove last item button

Definition at line 643 of file GNEPlanCreator.cpp.

References getNumberOfSelectedElements(), myPreviousPlanElement, and myRemoveLastInsertedElement.

Referenced by addConsecutiveEdge(), addFromToEdge(), addFromToJunction(), addFromToStoppingPlace(), addFromToTAZ(), and removeLastElement().

Here is the caller graph for this function:

Field Documentation

◆ myAbortCreationButton

FXButton* GNEPlanCreator::myAbortCreationButton
protected

◆ myClickedPositionOverLane

double GNEPlanCreator::myClickedPositionOverLane = 0
protected

clicked position over lane

Definition at line 198 of file GNEPlanCreator.h.

Referenced by addSingleEdge(), clearPath(), and getClickedPositionOverLane().

◆ 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().

◆ myExtendButton

MFXButtonTooltip* MFXGroupBoxModule::myExtendButton = nullptr
privateinherited

button for extend elements

Definition at line 112 of file MFXGroupBoxModule.h.

Referenced by MFXGroupBoxModule().

◆ myFinishCreationButton

FXButton* GNEPlanCreator::myFinishCreationButton
protected

◆ myFrameParent

◆ myInfoLabel

FXLabel* GNEPlanCreator::myInfoLabel
protected

info label

Definition at line 216 of file GNEPlanCreator.h.

Referenced by GNEPlanCreator(), and updateInfoLabel().

◆ 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<PlanPath> GNEPlanCreator::myPath
protected

vector with current path

Definition at line 201 of file GNEPlanCreator.h.

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

◆ myPathManager

GNEPathManager* GNEPlanCreator::myPathManager
protected

path manager used in this plan creator

Definition at line 183 of file GNEPlanCreator.h.

Referenced by GNEPlanCreator(), and recalculatePath().

◆ myPlanParameteres

◆ myPlanParents

int GNEPlanCreator::myPlanParents
protected

◆ myPreviousPlanElement

const GNEDemandElement* GNEPlanCreator::myPreviousPlanElement = nullptr
protected

previous person plan element

Definition at line 192 of file GNEPlanCreator.h.

Referenced by showPlanCreatorModule(), and updateRemoveLastItemButton().

◆ myRemoveLastInsertedElement

FXButton* GNEPlanCreator::myRemoveLastInsertedElement
protected

button for removing last inserted element

Definition at line 213 of file GNEPlanCreator.h.

Referenced by abortPathCreation(), GNEPlanCreator(), hideCreationButtons(), removeLastElement(), showCreationButtons(), and updateRemoveLastItemButton().

◆ myResetWidthButton

FXButton* MFXGroupBoxModule::myResetWidthButton = nullptr
privateinherited

button for reset frame width

Definition at line 115 of file MFXGroupBoxModule.h.

Referenced by MFXGroupBoxModule().

◆ mySaveButton

FXButton* MFXGroupBoxModule::mySaveButton = nullptr
privateinherited

button for save elements

Definition at line 118 of file MFXGroupBoxModule.h.

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

◆ myUseLastRoute

FXButton* GNEPlanCreator::myUseLastRoute
protected

button for use last inserted route

Definition at line 204 of file GNEPlanCreator.h.

Referenced by GNEPlanCreator(), and showPlanCreatorModule().

◆ myVClass

SUMOVehicleClass GNEPlanCreator::myVClass
protected

current vClass

Definition at line 186 of file GNEPlanCreator.h.

Referenced by GNEPlanCreator(), recalculatePath(), and showPlanCreatorModule().


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