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 178 of file GNEPlanCreator.cpp.

◆ GNEPlanCreator() [2/2]

GNEPlanCreator::GNEPlanCreator ( GNEPlanCreator )
privatedelete

Invalidated copy constructor.

Member Function Documentation

◆ abortPathCreation()

◆ addConsecutiveEdge()

bool GNEPlanCreator::addConsecutiveEdge ( GNEEdge edge)
private

add consecutive edge

Definition at line 755 of file GNEPlanCreator.cpp.

References CommonXMLStructure::PlanParameters::consecutiveEdges, 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)

add edge (clicking over lanes)

Definition at line 313 of file GNEPlanCreator.cpp.

References addConsecutiveEdge(), addFromToEdge(), addSingleEdge(), CONSECUTIVE_EDGES, EDGE, END_EDGE, GNELane::getParentEdge(), myPlanParents, and START_EDGE.

Referenced by GNEContainerFrame::addContainer(), GNEContainerPlanFrame::addContainerPlanElement(), GNEPersonFrame::addPerson(), and GNEPersonPlanFrame::addPersonPlanElement().

Here is the caller graph for this function:

◆ addFromToEdge()

bool GNEPlanCreator::addFromToEdge ( GNEEdge edge)
private

add from to edge

Definition at line 847 of file GNEPlanCreator.cpp.

References CommonXMLStructure::PlanParameters::fromEdge, GNEAttributeCarrier::getID(), getNumberOfSelectedElements(), myAbortCreationButton, myFinishCreationButton, myPlanParameteres, recalculatePath(), TL, CommonXMLStructure::PlanParameters::toEdge, 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 779 of file GNEPlanCreator.cpp.

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

Referenced by addJunction(), and showPlanCreatorModule().

Here is the caller graph for this function:

◆ addFromToStoppingPlace()

◆ addFromToTAZ()

bool GNEPlanCreator::addFromToTAZ ( GNEAdditional taz)
private

add TAZ

Definition at line 813 of file GNEPlanCreator.cpp.

References CommonXMLStructure::PlanParameters::fromTAZ, getNumberOfSelectedElements(), myAbortCreationButton, myFinishCreationButton, myPlanParameteres, recalculatePath(), TAZ, TL, CommonXMLStructure::PlanParameters::toTAZ, 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 328 of file GNEPlanCreator.cpp.

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

Referenced by GNEContainerFrame::addContainer(), GNEContainerPlanFrame::addContainerPlanElement(), GNEPersonFrame::addPerson(), and GNEPersonPlanFrame::addPersonPlanElement().

Here is the caller graph for this function:

◆ addRoute()

bool GNEPlanCreator::addRoute ( GNEDemandElement route)

add route

Definition at line 300 of file GNEPlanCreator.cpp.

References GNEFrame::createPath(), GNEAttributeCarrier::getID(), myFrameParent, myPlanParameteres, myPlanParents, ROUTE, and CommonXMLStructure::PlanParameters::toRoute.

Referenced by GNEContainerFrame::addContainer(), GNEContainerPlanFrame::addContainerPlanElement(), GNEPersonFrame::addPerson(), and GNEPersonPlanFrame::addPersonPlanElement().

Here is the caller graph for this function:

◆ addSingleEdge()

bool GNEPlanCreator::addSingleEdge ( GNELane lane)
private

add edge

Definition at line 715 of file GNEPlanCreator.cpp.

References GNEFrame::createPath(), GNEAttributeCarrier::getID(), GNELane::getLaneShape(), GNELane::getParentEdge(), GUISUMOAbstractView::getPositionInformation(), GNEFrame::getViewNet(), myClickedPositionOverLane, myFrameParent, myPlanParameteres, PositionVector::nearest_offset_to_point2D(), and CommonXMLStructure::PlanParameters::toEdge.

Referenced by addEdge().

Here is the caller graph for this function:

◆ addSingleStoppingPlace()

◆ addStoppingPlace()

bool GNEPlanCreator::addStoppingPlace ( GNEAdditional stoppingPlace)

add from to stoppingPlace

Definition at line 348 of file GNEPlanCreator.cpp.

References addFromToStoppingPlace(), addSingleStoppingPlace(), END_STOPPINGPLACE, myPlanParents, START_STOPPINGPLACE, and STOPPINGPLACE.

Referenced by GNEContainerFrame::addContainer(), GNEContainerPlanFrame::addContainerPlanElement(), GNEPersonFrame::addPerson(), and GNEPersonPlanFrame::addPersonPlanElement().

Here is the caller graph for this function:

◆ addTAZ()

bool GNEPlanCreator::addTAZ ( GNEAdditional taz)

add TAZ

Definition at line 338 of file GNEPlanCreator.cpp.

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

Referenced by GNEContainerFrame::addContainer(), GNEContainerPlanFrame::addContainerPlanElement(), GNEPersonFrame::addPerson(), and GNEPersonPlanFrame::addPersonPlanElement().

Here is the caller graph for this function:

◆ clearPath()

void GNEPlanCreator::clearPath ( )
protected

clear edges

Definition at line 571 of file GNEPlanCreator.cpp.

References CommonXMLStructure::PlanParameters::clear(), 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 366 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 123 of file MFXGroupBoxModule.cpp.

References MFXGroupBoxModule::myCollapsableFrame.

Referenced by GNEGenericDataFrame::AttributeSelector::AttributeSelector(), GNEMoveFrame::ChangeZInSelection::ChangeZInSelection(), GNEConnectorFrame::ConnectionModifications::ConnectionModifications(), GNEConnectorFrame::ConnectionOperations::ConnectionOperations(), GNEConnectorFrame::ConnectionSelection::ConnectionSelection(), GNECrossingFrame::CreateCrossing::CreateCrossing(), GNECrossingFrame::CrossingParameters::CrossingParameters(), GNETAZFrame::CurrentTAZ::CurrentTAZ(), GNEMoveFrame::DemandModeOptions::DemandModeOptions(), GNEDistributionFrame::DistributionSelector::DistributionSelector(), GNEDistributionFrame::DistributionValuesEditor::DistributionValuesEditor(), GNEAdditionalFrame::E2MultilaneLegendModule::E2MultilaneLegendModule(), GNECrossingFrame::EdgesSelector::EdgesSelector(), GNEDemandElementSelector::GNEDemandElementSelector(), GNEOptionsDialog::GNEOptionsDialog(), GNEPathCreator::GNEPathCreator(), GNEPathLegendModule::GNEPathLegendModule(), GNEPlanCreator(), GNEPlanCreatorLegend::GNEPlanCreatorLegend(), GNESelectorParent::GNESelectorParent(), GNEStopFrame::HelpCreation::HelpCreation(), GNEVehicleFrame::HelpCreation::HelpCreation(), GNEAdditionalFrame::HelpCreationModule::HelpCreationModule(), GNECrossingFrame::Information::Information(), GNEMoveFrame::Information::Information(), GNESelectorFrame::Information::Information(), GNEGenericDataFrame::IntervalSelector::IntervalSelector(), GNECreateEdgeFrame::LaneTypeSelector::LaneTypeSelector(), GNEConnectorFrame::Legend::Legend(), GNECreateEdgeFrame::Legend::Legend(), GNEProhibitionFrame::Legend::Legend(), GNETAZRelDataFrame::Legend::Legend(), GNEMeanDataFrame::MeanDataEditor::MeanDataEditor(), GNEMeanDataFrame::MeanDataSelector::MeanDataSelector(), GNESelectorFrame::ModificationMode::ModificationMode(), GNEMoveFrame::NetworkModeOptions::NetworkModeOptions(), GNEMatchAttribute::onCmdHelp(), GNEMatchGenericDataAttribute::onCmdHelp(), GNENeteditAttributes::onCmdHelp(), GNEOverlappedInspection::onCmdOverlappingHelp(), GNEFrameAttributeModules::ParametersEditor::ParametersEditor(), GNEFrameAttributeModules::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(), GNETLSEditorFrame::TLSAttributes::TLSAttributes(), GNETLSEditorFrame::TLSDefinition::TLSDefinition(), GNETLSEditorFrame::TLSFile::TLSFile(), GNETLSEditorFrame::TLSJunction::TLSJunction(), GNETLSEditorFrame::TLSPhases::TLSPhases(), GNETypeFrame::TypeEditor::TypeEditor(), and GNESelectorFrame::VisualScaling::VisualScaling().

◆ getNumberOfSelectedElements()

int GNEPlanCreator::getNumberOfSelectedElements ( ) const
private

get number of selected elements

Definition at line 641 of file GNEPlanCreator.cpp.

References CommonXMLStructure::PlanParameters::getNumberOfDefinedParameters(), and 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 372 of file GNEPlanCreator.cpp.

References myPath.

◆ getPlanParameteres()

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

get plan parameters

Definition at line 360 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 673 of file GNEPlanCreator.cpp.

References myAbortCreationButton, myFinishCreationButton, and myRemoveLastInsertedElement.

Referenced by showPlanCreatorModule().

Here is the caller graph for this function:

◆ hidePathCreatorModule()

void GNEPlanCreator::hidePathCreatorModule ( )

◆ loadContents()

bool MFXGroupBoxModule::loadContents ( ) const
protectedvirtualinherited

load contents (can be reimplemented in children)

Definition at line 231 of file MFXGroupBoxModule.cpp.

Referenced by MFXGroupBoxModule::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 555 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 142 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 GNEPlanCreator::onCmdCreatePath ( FXObject *  ,
FXSelector  ,
void *   
)

Definition at line 532 of file GNEPlanCreator.cpp.

References GNEFrame::createPath(), and myFrameParent.

Referenced by FXDEFMAP(), and GNEViewNet::hotkeyEnter().

Here is the caller graph for this function:

◆ onCmdExtendButton()

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

extends GroupBoxModule

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

References MFXGroupBoxModule::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 563 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 184 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 206 of file MFXGroupBoxModule.cpp.

References MFXGroupBoxModule::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 539 of file GNEPlanCreator.cpp.

References GNEFrame::createPath(), and 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 129 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 193 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 GNEPlanCreator::onUpdUseLastRoute ( FXObject *  sender,
FXSelector  ,
void *   
)

Called when update button "Use last route".

Definition at line 546 of file GNEPlanCreator.cpp.

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

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ operator=()

GNEPlanCreator & GNEPlanCreator::operator= ( GNEPlanCreator )
privatedelete

Invalidated assignment operator.

◆ planCanBeCreated()

◆ recalculatePath()

◆ removeLastElement()

◆ saveContents()

bool MFXGroupBoxModule::saveContents ( ) const
protectedvirtualinherited

save contents (can be reimplemented in children)

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

Definition at line 224 of file MFXGroupBoxModule.cpp.

Referenced by MFXGroupBoxModule::onCmdSaveButton().

Here is the caller graph for this function:

◆ setText()

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

set text

Definition at line 117 of file MFXGroupBoxModule.cpp.

References MFXGroupBoxModule::myLabel.

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

Here is the caller graph for this function:

◆ showCreationButtons()

void GNEPlanCreator::showCreationButtons ( )
private

show creation buttons

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

References MFXGroupBoxModule::mySaveButton.

◆ updateInfoLabel()

void GNEPlanCreator::updateInfoLabel ( )
private

update info label

Definition at line 681 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 647 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

◆ myCollapseButton

FXButton* MFXGroupBoxModule::myCollapseButton = nullptr
privateinherited

button for collapse elements

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

Referenced by MFXGroupBoxModule::onCmdCollapseButton().

◆ myExtendButton

MFXButtonTooltip* MFXGroupBoxModule::myExtendButton = nullptr
privateinherited

button for extend elements

Definition at line 112 of file MFXGroupBoxModule.h.

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

◆ myLoadButton

FXButton* MFXGroupBoxModule::myLoadButton = nullptr
privateinherited

button for load elements

Definition at line 121 of file MFXGroupBoxModule.h.

Referenced by MFXGroupBoxModule::MFXGroupBoxModule().

◆ myOptions

const int MFXGroupBoxModule::myOptions
privateinherited

GroupBoxModule options.

Definition at line 97 of file MFXGroupBoxModule.h.

Referenced by MFXGroupBoxModule::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 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.

◆ mySaveButton

FXButton* MFXGroupBoxModule::mySaveButton = nullptr
privateinherited

button for save elements

Definition at line 118 of file MFXGroupBoxModule.h.

Referenced by MFXGroupBoxModule::MFXGroupBoxModule(), and MFXGroupBoxModule::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 recalculatePath(), and showPlanCreatorModule().


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