![]() |
Eclipse SUMO - Simulation of Urban MObility
|
#include <GNEAdditionalFrame.h>
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... | |
| GNEAdditionalFrame * | myAdditionalFrameParent |
| 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... | |
Definition at line 42 of file GNEAdditionalFrame.h.
|
inherited |
GroupBoxModule options.
| Enumerator | |
|---|---|
| NOTHING | |
| COLLAPSIBLE | |
| SAVE | |
| LOAD | |
Definition at line 32 of file FXGroupBoxModule.h.
| 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.
| GNEAdditionalFrame::SelectorParentLanes::~SelectorParentLanes | ( | ) |
destructor
Definition at line 93 of file GNEAdditionalFrame.cpp.
| void GNEAdditionalFrame::SelectorParentLanes::abortConsecutiveLaneSelector | ( | ) |
abort selection of consecutive lanes
Definition at line 183 of file GNEAdditionalFrame.cpp.
Referenced by GNEViewNet::abortOperation().
| bool GNEAdditionalFrame::SelectorParentLanes::addSelectedLane | ( | GNELane * | lane, |
| const Position & | clickedPosition | ||
| ) |
return true if lane can be selected as consecutive lane
Definition at line 205 of file GNEAdditionalFrame.cpp.
References GNEEdge::getGNEConnections(), GNELane::getLaneShape(), GNELane::getLengthGeometryFactor(), GNELane::getParentEdge(), PositionVector::nearest_offset_to_point2D(), GNECandidateElement::setTargetCandidate(), and WRITE_WARNING.
Referenced by GNEViewNet::processLeftButtonPressNetwork().
|
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().
| 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().
| void GNEAdditionalFrame::SelectorParentLanes::hideSelectorParentLanesModule | ( | ) |
hide SelectorParentLanes
Definition at line 106 of file GNEAdditionalFrame.cpp.
Referenced by GNEAdditionalFrame::tagSelected().
|
private |
check if certain lane is selected
Definition at line 295 of file GNEAdditionalFrame.cpp.
| 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().
| bool GNEAdditionalFrame::SelectorParentLanes::isShown | ( | ) | const |
return true if modul is shown
Definition at line 269 of file GNEAdditionalFrame.cpp.
Referenced by GNEViewNet::processLeftButtonPressNetwork().
|
protectedvirtualinherited |
load contents (can be reimplemented in children)
Definition at line 142 of file FXGroupBoxModule.cpp.
Referenced by FXGroupBoxModule::onCmdLoadButton().
| 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().
|
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().
|
inherited |
load contents
Definition at line 123 of file FXGroupBoxModule.cpp.
References FXGroupBoxModule::loadContents().
Referenced by FXDEFMAP().
|
inherited |
save contents
Definition at line 117 of file FXGroupBoxModule.cpp.
References FXGroupBoxModule::saveContents().
Referenced by FXDEFMAP().
| long GNEAdditionalFrame::SelectorParentLanes::onCmdStopSelection | ( | FXObject * | , |
| FXSelector | , | ||
| void * | |||
| ) |
Definition at line 281 of file GNEAdditionalFrame.cpp.
Referenced by FXDEFMAP().
|
inherited |
draw FXGroupBoxModule
Definition at line 88 of file FXGroupBoxModule.cpp.
Referenced by FXDEFMAP().
| void GNEAdditionalFrame::SelectorParentLanes::removeLastSelectedLane | ( | ) |
remove last added point
Definition at line 253 of file GNEAdditionalFrame.cpp.
References WRITE_WARNING.
|
protectedvirtualinherited |
save contents (can be reimplemented in children)
Reimplemented in GNEFixDemandElements::FixOptions.
Definition at line 135 of file FXGroupBoxModule.cpp.
Referenced by FXGroupBoxModule::onCmdSaveButton().
|
inherited |
set text
Definition at line 76 of file FXGroupBoxModule.cpp.
References FXGroupBoxModule::myLabel.
Referenced by GNESelectorFrame::SelectionInformation::updateInformationLabel().
| void GNEAdditionalFrame::SelectorParentLanes::showSelectorParentLanesModule | ( | ) |
show SelectorParentLanes modul
Definition at line 97 of file GNEAdditionalFrame.cpp.
Referenced by GNEAdditionalFrame::tagSelected().
| 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().
| 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().
|
protectedinherited |
enable or disable save buttons
Definition at line 149 of file FXGroupBoxModule.cpp.
References FXGroupBoxModule::mySaveButton.
|
private |
button for abort selecting
Definition at line 102 of file GNEAdditionalFrame.h.
|
private |
pointer to additionalFrameParent
Definition at line 96 of file GNEAdditionalFrame.h.
|
private |
Vector with the colored lanes.
Definition at line 108 of file GNEAdditionalFrame.h.
|
privateinherited |
vertical collapsable frame
Definition at line 81 of file FXGroupBoxModule.h.
Referenced by FXGroupBoxModule::getCollapsableFrame(), and FXGroupBoxModule::onCmdCollapseButton().
|
privateinherited |
button for collapse elements
Definition at line 87 of file FXGroupBoxModule.h.
Referenced by FXGroupBoxModule::onCmdCollapseButton().
|
privateinherited |
flag to check if this groupbox is collapsed
Definition at line 96 of file FXGroupBoxModule.h.
Referenced by FXGroupBoxModule::onCmdCollapseButton().
|
privateinherited |
label used in non collapsable FXGroupBoxModule
Definition at line 84 of file FXGroupBoxModule.h.
Referenced by FXGroupBoxModule::setText().
|
privateinherited |
button for load elements
Definition at line 93 of file FXGroupBoxModule.h.
|
privateinherited |
GroupBoxModule options.
Definition at line 78 of file FXGroupBoxModule.h.
|
privateinherited |
button for save elements
Definition at line 90 of file FXGroupBoxModule.h.
Referenced by FXGroupBoxModule::toogleSaveButton().
|
private |
Vector with the selected lanes and the clicked position.
Definition at line 105 of file GNEAdditionalFrame.h.
|
private |
button for stop selecting
Definition at line 99 of file GNEAdditionalFrame.h.