Eclipse SUMO - Simulation of Urban MObility
GNEAdditionalFrame::SelectorParentLanes Class Reference

#include <GNEAdditionalFrame.h>

Inheritance diagram for GNEAdditionalFrame::SelectorParentLanes:
Collaboration diagram for GNEAdditionalFrame::SelectorParentLanes:

Public Types

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

Public Member Functions

void abortConsecutiveLaneSelector ()
 abort selection of consecutive lanes More...
 
bool addSelectedLane (GNELane *lane, const Position &clickedPosition)
 return true if lane can be selected as consecutive lane More...
 
FXVerticalFrame * getCollapsableFrame ()
 get collapsable frame (used by all elements that will be collapsed if button is toogled) More...
 
const std::vector< std::pair< GNELane *, double > > & getSelectedLanes () const
 get current selected lanes More...
 
void hideSelectorParentLanesModule ()
 hide SelectorParentLanes More...
 
bool isSelectingLanes () const
 return true if modul is selecting lane More...
 
bool isShown () const
 return true if modul is shown More...
 
long onCmdCollapseButton (FXObject *, FXSelector, void *)
 collapse GroupBoxModule More...
 
long onCmdLoadButton (FXObject *, FXSelector, void *)
 load contents More...
 
long onCmdSaveButton (FXObject *, FXSelector, void *)
 save contents More...
 
long onPaint (FXObject *, FXSelector, void *)
 draw FXGroupBoxModule More...
 
void removeLastSelectedLane ()
 remove last added point More...
 
 SelectorParentLanes (GNEAdditionalFrame *additionalFrameParent)
 FOX-declaration. More...
 
void setText (const std::string &text)
 set text More...
 
void showSelectorParentLanesModule ()
 show SelectorParentLanes modul More...
 
void startConsecutiveLaneSelector (GNELane *lane, const Position &clickedPosition)
 start selection of consecutive lanes More...
 
bool stopConsecutiveLaneSelector ()
 stop selection of consecutive lanes More...
 
 ~SelectorParentLanes ()
 destructor More...
 
FOX-callbacks

Called when the user press stop selection button

long onCmdStopSelection (FXObject *, FXSelector, void *)
 
long onCmdAbortSelection (FXObject *, FXSelector, void *)
 Called when the user press abort selection button. More...
 

Protected Member Functions

virtual bool loadContents () const
 load contents (can be reimplemented in children) More...
 
virtual bool saveContents () const
 save contents (can be reimplemented in children) More...
 
void toogleSaveButton (const bool value)
 enable or disable save buttons More...
 

Private Member Functions

bool isLaneSelected (GNELane *lane) const
 check if certain lane is selected More...
 

Private Attributes

FXButton * myAbortSelectingButton
 button for abort selecting More...
 
GNEAdditionalFramemyAdditionalFrameParent
 pointer to additionalFrameParent More...
 
std::vector< GNELane * > myCandidateLanes
 Vector with the colored lanes. More...
 
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...
 
FXLabel * myLabel = nullptr
 label used in non collapsable FXGroupBoxModule More...
 
FXButton * myLoadButton = nullptr
 button for load elements More...
 
const int myOptions
 GroupBoxModule options. More...
 
FXButton * mySaveButton = nullptr
 button for save elements More...
 
std::vector< std::pair< GNELane *, double > > mySelectedLanes
 Vector with the selected lanes and the clicked position. More...
 
FXButton * myStopSelectingButton
 button for stop selecting More...
 

Detailed Description

Definition at line 42 of file GNEAdditionalFrame.h.

Member Enumeration Documentation

◆ Options

enum FXGroupBoxModule::Options
inherited

GroupBoxModule options.

Enumerator
NOTHING 
COLLAPSIBLE 
SAVE 
LOAD 

Definition at line 32 of file FXGroupBoxModule.h.

Constructor & Destructor Documentation

◆ SelectorParentLanes()

GNEAdditionalFrame::SelectorParentLanes::SelectorParentLanes ( GNEAdditionalFrame additionalFrameParent)

FOX-declaration.

constructor

Definition at line 81 of file GNEAdditionalFrame.cpp.

References GUIDesignButton, MID_GNE_ADDITIONALFRAME_ABORTSELECTION, and MID_GNE_ADDITIONALFRAME_STOPSELECTION.

◆ ~SelectorParentLanes()

GNEAdditionalFrame::SelectorParentLanes::~SelectorParentLanes ( )

destructor

Definition at line 93 of file GNEAdditionalFrame.cpp.

Member Function Documentation

◆ abortConsecutiveLaneSelector()

void GNEAdditionalFrame::SelectorParentLanes::abortConsecutiveLaneSelector ( )

abort selection of consecutive lanes

Definition at line 183 of file GNEAdditionalFrame.cpp.

Referenced by GNEViewNet::abortOperation().

Here is the caller graph for this function:

◆ addSelectedLane()

bool GNEAdditionalFrame::SelectorParentLanes::addSelectedLane ( GNELane lane,
const Position clickedPosition 
)

◆ getCollapsableFrame()

FXVerticalFrame * FXGroupBoxModule::getCollapsableFrame ( )
inherited

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

Definition at line 82 of file FXGroupBoxModule.cpp.

References FXGroupBoxModule::myCollapsableFrame.

Referenced by GNEInspectorFrame::AdditionalDialog::AdditionalDialog(), GNEFrameAttributeModules::AttributesCreator::AttributesCreator(), GNEFrameAttributeModules::AttributesCreatorFlow::AttributesCreatorFlow(), GNEFrameAttributeModules::AttributesEditor::AttributesEditor(), GNEFrameAttributeModules::AttributesEditorExtended::AttributesEditorExtended(), GNEFrameAttributeModules::AttributesEditorFlow::AttributesEditorFlow(), GNEGenericDataFrame::AttributeSelector::AttributeSelector(), GNEMoveFrame::ChangeZInSelection::ChangeZInSelection(), GNEConnectorFrame::ConnectionModifications::ConnectionModifications(), GNEConnectorFrame::ConnectionOperations::ConnectionOperations(), GNEConnectorFrame::ConnectionSelection::ConnectionSelection(), GNECrossingFrame::CreateCrossing::CreateCrossing(), GNECrossingFrame::CrossingParameters::CrossingParameters(), GNETAZFrame::CurrentTAZ::CurrentTAZ(), GNEFrameModules::DemandElementSelector::DemandElementSelector(), GNEMoveFrame::DemandModeOptions::DemandModeOptions(), GNEFrameAttributeModules::DrawingShape::DrawingShape(), GNEFrameModules::DrawingShape::DrawingShape(), GNEAdditionalFrame::E2MultilaneLaneSelector::E2MultilaneLaneSelector(), GNECrossingFrame::EdgesSelector::EdgesSelector(), GNEFrameAttributeModules::GenericDataAttributes::GenericDataAttributes(), GNEInspectorFrame::GEOAttributesEditor::GEOAttributesEditor(), GNEStopFrame::HelpCreation::HelpCreation(), GNEVehicleFrame::HelpCreation::HelpCreation(), GNEFrameModules::HierarchicalElementTree::HierarchicalElementTree(), 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(), GNEProhibitionFrame::Modifications::Modifications(), GNEFrameAttributeModules::NeteditAttributes::NeteditAttributes(), GNEMoveFrame::NetworkModeOptions::NetworkModeOptions(), GNEMatchAttribute::onCmdHelp(), GNEMatchGenericDataAttribute::onCmdHelp(), GNEInspectorFrame::ParametersEditor::ParametersEditor(), GNEFrameModules::PathCreator::PathCreator(), GNEFrameModules::PathLegend::PathLegend(), GNEDeleteFrame::ProtectElements::ProtectElements(), GNESelectorFrame::SelectionHierarchy::SelectionHierarchy(), GNESelectorFrame::SelectionOperation::SelectionOperation(), GNEAdditionalFrame::SelectorChildEdges::SelectorChildEdges(), GNEAdditionalFrame::SelectorChildLanes::SelectorChildLanes(), GNEFrameModules::SelectorParent::SelectorParent(), 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::TLSModifications::TLSModifications(), GNETLSEditorFrame::TLSPhases::TLSPhases(), GNETypeFrame::TypeEditor::TypeEditor(), and GNESelectorFrame::VisualScaling::VisualScaling().

◆ getSelectedLanes()

const std::vector< std::pair< GNELane *, double > > & GNEAdditionalFrame::SelectorParentLanes::getSelectedLanes ( ) const

get current selected lanes

Definition at line 275 of file GNEAdditionalFrame.cpp.

Referenced by GNEViewNet::drawLaneCandidates().

Here is the caller graph for this function:

◆ hideSelectorParentLanesModule()

void GNEAdditionalFrame::SelectorParentLanes::hideSelectorParentLanesModule ( )

hide SelectorParentLanes

Definition at line 106 of file GNEAdditionalFrame.cpp.

Referenced by GNEAdditionalFrame::tagSelected().

Here is the caller graph for this function:

◆ isLaneSelected()

bool GNEAdditionalFrame::SelectorParentLanes::isLaneSelected ( GNELane lane) const
private

check if certain lane is selected

Definition at line 295 of file GNEAdditionalFrame.cpp.

◆ isSelectingLanes()

bool GNEAdditionalFrame::SelectorParentLanes::isSelectingLanes ( ) const

return true if modul is selecting lane

Definition at line 263 of file GNEAdditionalFrame.cpp.

Referenced by GNEViewNet::drawLaneCandidates(), GNEViewNet::hotkeyEnter(), and GNEViewNet::processLeftButtonPressNetwork().

Here is the caller graph for this function:

◆ isShown()

bool GNEAdditionalFrame::SelectorParentLanes::isShown ( ) const

return true if modul is shown

Definition at line 269 of file GNEAdditionalFrame.cpp.

Referenced by GNEViewNet::processLeftButtonPressNetwork().

Here is the caller graph for this function:

◆ loadContents()

bool FXGroupBoxModule::loadContents ( ) const
protectedvirtualinherited

load contents (can be reimplemented in children)

Definition at line 142 of file FXGroupBoxModule.cpp.

Referenced by FXGroupBoxModule::onCmdLoadButton().

Here is the caller graph for this function:

◆ onCmdAbortSelection()

long GNEAdditionalFrame::SelectorParentLanes::onCmdAbortSelection ( FXObject *  ,
FXSelector  ,
void *   
)

Called when the user press abort selection button.

Definition at line 288 of file GNEAdditionalFrame.cpp.

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onCmdCollapseButton()

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

collapse GroupBoxModule

Definition at line 101 of file FXGroupBoxModule.cpp.

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

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onCmdLoadButton()

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

load contents

Definition at line 123 of file FXGroupBoxModule.cpp.

References FXGroupBoxModule::loadContents().

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onCmdSaveButton()

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

save contents

Definition at line 117 of file FXGroupBoxModule.cpp.

References FXGroupBoxModule::saveContents().

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onCmdStopSelection()

long GNEAdditionalFrame::SelectorParentLanes::onCmdStopSelection ( FXObject *  ,
FXSelector  ,
void *   
)

Definition at line 281 of file GNEAdditionalFrame.cpp.

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onPaint()

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

draw FXGroupBoxModule

Definition at line 88 of file FXGroupBoxModule.cpp.

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ removeLastSelectedLane()

void GNEAdditionalFrame::SelectorParentLanes::removeLastSelectedLane ( )

remove last added point

Definition at line 253 of file GNEAdditionalFrame.cpp.

References WRITE_WARNING.

◆ saveContents()

bool FXGroupBoxModule::saveContents ( ) const
protectedvirtualinherited

save contents (can be reimplemented in children)

Reimplemented in GNEFixDemandElements::FixOptions.

Definition at line 135 of file FXGroupBoxModule.cpp.

Referenced by FXGroupBoxModule::onCmdSaveButton().

Here is the caller graph for this function:

◆ setText()

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

set text

Definition at line 76 of file FXGroupBoxModule.cpp.

References FXGroupBoxModule::myLabel.

Referenced by GNESelectorFrame::SelectionInformation::updateInformationLabel().

Here is the caller graph for this function:

◆ showSelectorParentLanesModule()

void GNEAdditionalFrame::SelectorParentLanes::showSelectorParentLanesModule ( )

show SelectorParentLanes modul

Definition at line 97 of file GNEAdditionalFrame.cpp.

Referenced by GNEAdditionalFrame::tagSelected().

Here is the caller graph for this function:

◆ startConsecutiveLaneSelector()

void GNEAdditionalFrame::SelectorParentLanes::startConsecutiveLaneSelector ( GNELane lane,
const Position clickedPosition 
)

start selection of consecutive lanes

Definition at line 115 of file GNEAdditionalFrame.cpp.

Referenced by GNEViewNet::processLeftButtonPressNetwork().

Here is the caller graph for this function:

◆ stopConsecutiveLaneSelector()

bool GNEAdditionalFrame::SelectorParentLanes::stopConsecutiveLaneSelector ( )

stop selection of consecutive lanes

Definition at line 128 of file GNEAdditionalFrame.cpp.

References AdditionalHandler::parseSumoBaseObject(), SUMO_ATTR_ENDPOS, SUMO_ATTR_ID, SUMO_ATTR_LANES, SUMO_ATTR_POSITION, and WRITE_WARNING.

Referenced by GNEViewNet::hotkeyEnter().

Here is the caller graph for this function:

◆ toogleSaveButton()

void FXGroupBoxModule::toogleSaveButton ( const bool  value)
protectedinherited

enable or disable save buttons

Definition at line 149 of file FXGroupBoxModule.cpp.

References FXGroupBoxModule::mySaveButton.

Field Documentation

◆ myAbortSelectingButton

FXButton* GNEAdditionalFrame::SelectorParentLanes::myAbortSelectingButton
private

button for abort selecting

Definition at line 102 of file GNEAdditionalFrame.h.

◆ myAdditionalFrameParent

GNEAdditionalFrame* GNEAdditionalFrame::SelectorParentLanes::myAdditionalFrameParent
private

pointer to additionalFrameParent

Definition at line 96 of file GNEAdditionalFrame.h.

◆ myCandidateLanes

std::vector<GNELane*> GNEAdditionalFrame::SelectorParentLanes::myCandidateLanes
private

Vector with the colored lanes.

Definition at line 108 of file GNEAdditionalFrame.h.

◆ myCollapsableFrame

FXVerticalFrame* FXGroupBoxModule::myCollapsableFrame = nullptr
privateinherited

vertical collapsable frame

Definition at line 81 of file FXGroupBoxModule.h.

Referenced by FXGroupBoxModule::getCollapsableFrame(), and FXGroupBoxModule::onCmdCollapseButton().

◆ myCollapseButton

FXButton* FXGroupBoxModule::myCollapseButton = nullptr
privateinherited

button for collapse elements

Definition at line 87 of file FXGroupBoxModule.h.

Referenced by FXGroupBoxModule::onCmdCollapseButton().

◆ myCollapsed

bool FXGroupBoxModule::myCollapsed
privateinherited

flag to check if this groupbox is collapsed

Definition at line 96 of file FXGroupBoxModule.h.

Referenced by FXGroupBoxModule::onCmdCollapseButton().

◆ myLabel

FXLabel* FXGroupBoxModule::myLabel = nullptr
privateinherited

label used in non collapsable FXGroupBoxModule

Definition at line 84 of file FXGroupBoxModule.h.

Referenced by FXGroupBoxModule::setText().

◆ myLoadButton

FXButton* FXGroupBoxModule::myLoadButton = nullptr
privateinherited

button for load elements

Definition at line 93 of file FXGroupBoxModule.h.

◆ myOptions

const int FXGroupBoxModule::myOptions
privateinherited

GroupBoxModule options.

Definition at line 78 of file FXGroupBoxModule.h.

◆ mySaveButton

FXButton* FXGroupBoxModule::mySaveButton = nullptr
privateinherited

button for save elements

Definition at line 90 of file FXGroupBoxModule.h.

Referenced by FXGroupBoxModule::toogleSaveButton().

◆ mySelectedLanes

std::vector<std::pair<GNELane*, double> > GNEAdditionalFrame::SelectorParentLanes::mySelectedLanes
private

Vector with the selected lanes and the clicked position.

Definition at line 105 of file GNEAdditionalFrame.h.

◆ myStopSelectingButton

FXButton* GNEAdditionalFrame::SelectorParentLanes::myStopSelectingButton
private

button for stop selecting

Definition at line 99 of file GNEAdditionalFrame.h.


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