![]() |
Eclipse SUMO - Simulation of Urban MObility
|
dest prob reroutes list More...
#include <GNERerouterIntervalDialog.h>
Public Types | |
| enum class | Options : int { NONE = 1 << 0 , SORTELEMENTS = 1 << 1 , DIALOG_ELEMENT = 1 << 2 , DIALOG_VCLASS = 1 << 3 , FIXED_HEIGHT = 1 << 4 } |
| FOX-declaration. More... | |
Public Member Functions | |
| long | addNewElement () |
| add new element | |
| bool | checkSort () const |
| check if the elements are sorted | |
| DestProbReroutesList (GNERerouterIntervalDialog *rerouterIntervalDialog, FXVerticalFrame *contentFrame) | |
| constructor | |
| void | disableList (const std::string &reason) |
| disable list | |
| void | enableList () |
| enable list | |
| const std::vector< GNEAdditional * > & | getEditedElements () const |
| get edited elements | |
| long | insertElement (GNEAdditional *element) |
| insert element | |
| bool | isListValid () const |
| check if the current list is valid | |
| long | openElementDialog (const size_t rowIndex) |
| open element dialog | |
| long | removeElement (const size_t rowIndex) |
| remove element (using index) | |
| long | sortRows () |
| open dialog | |
| long | updateList () |
| update element list | |
FOX callbacks | |
| long | onCmdAddRow (FXObject *sender, FXSelector, void *) |
| called when user press add button | |
| long | onCmdSort (FXObject *sender, FXSelector, void *) |
| called when user press sort button | |
Protected Member Functions | |
| void | removeElementRecursively (GNEAdditional *additionalElement) const |
| delete additional element recursively | |
| void | removeElementRecursively (GNEDemandElement *demandElement) const |
| delete demand element recursively | |
Protected Attributes | |
| std::vector< GNEAdditional * > | myEditedElements |
| edited elements | |
| GNETemplateElementDialog< GNEAdditional > * | myElementDialogParent |
| element dialog parent | |
| GNEElementTable * | myElementTable = nullptr |
| element table | |
| const GNETagProperties * | myTagProperty = nullptr |
| FOX needs this. | |
Private Types | |
| typedef std::tuple< double, double, double, double, double, double, GNEAdditional * > | SortTuple |
| typedef used for sorting elements by attributes | |
Private Member Functions | |
| DestProbReroutesList (const DestProbReroutesList &)=delete | |
| Invalidated copy constructor. | |
| std::vector< SortTuple > | getSortTuples (const bool sort) const |
| get element sorted | |
| DestProbReroutesList & | operator= (const DestProbReroutesList &)=delete |
| Invalidated assignment operator. | |
Private Attributes | |
| FXButton * | myAddButton = nullptr |
| add button | |
| FXLabel * | myLabel = nullptr |
| label | |
| FXButton * | mySortButton = nullptr |
| sort button | |
dest prob reroutes list
Definition at line 100 of file GNERerouterIntervalDialog.h.
|
privateinherited |
typedef used for sorting elements by attributes
Definition at line 137 of file GNETemplateElementList.h.
|
stronginherited |
FOX-declaration.
enum class for element list options
| Enumerator | |
|---|---|
| NONE | |
| SORTELEMENTS | |
| DIALOG_ELEMENT | |
| DIALOG_VCLASS | |
| FIXED_HEIGHT | |
Definition at line 41 of file GNEElementList.h.
| GNERerouterIntervalDialog::DestProbReroutesList::DestProbReroutesList | ( | GNERerouterIntervalDialog * | rerouterIntervalDialog, |
| FXVerticalFrame * | contentFrame ) |
constructor
Definition at line 185 of file GNERerouterIntervalDialog.cpp.
References GNENet::getAttributeCarriers(), GNENetHelper::AttributeCarriers::getEdges(), GNETemplateElementDialog< T >::getElement(), GNEAttributeCarrier::getNet(), GNEElementList::GNEElementList(), GNERerouterIntervalDialog::GNERerouterIntervalDialog(), GNETemplateElementList< GNEAdditional, GNEAdditional, GNEChange_Additional >::GNETemplateElementList(), and SUMO_TAG_DEST_PROB_REROUTE.
Referenced by DestProbReroutesList(), and operator=().
|
privatedelete |
Invalidated copy constructor.
References DestProbReroutesList().
|
virtual |
add new element
Implements GNETemplateElementList< GNEAdditional, GNEAdditional, GNEChange_Additional >.
Definition at line 197 of file GNERerouterIntervalDialog.cpp.
References GNETemplateElementList< GNEAdditional, GNEAdditional, GNEChange_Additional >::insertElement(), and GNETemplateElementList< GNEAdditional, GNEAdditional, GNEChange_Additional >::myElementDialogParent.
|
inlineinherited |
check if the elements are sorted
Definition at line 77 of file GNETemplateElementList.h.
|
inherited |
disable list
Definition at line 86 of file GNEElementList.cpp.
References myAddButton, myElementTable, myLabel, and mySortButton.
|
inherited |
enable list
Definition at line 74 of file GNEElementList.cpp.
References myAddButton, myElementTable, myLabel, mySortButton, myTagProperty, and TLF.
|
inlineinherited |
get edited elements
Definition at line 46 of file GNETemplateElementList.h.
Referenced by GNERerouterDialog::RerouterIntervalsList::addNewElement(), GNEVariableSpeedSignDialog::VariableSpeedSignStepsList::addNewElement(), GNERerouterDialog::RerouterIntervalsList::isOverlapping(), GNEVariableSpeedSignDialog::VariableSpeedSignStepsList::isSorted(), and GNERerouterDialog::RerouterIntervalsList::openElementDialog().
|
inlineprivateinherited |
get element sorted
Definition at line 140 of file GNETemplateElementList.h.
|
inlineinherited |
insert element
Definition at line 51 of file GNETemplateElementList.h.
Referenced by GNECalibratorDialog::CalibratorFlowsList::addNewElement(), GNERerouterDialog::RerouterIntervalsList::addNewElement(), GNERerouterIntervalDialog::ClosingLaneReroutesList::addNewElement(), GNERerouterIntervalDialog::ClosingReroutesList::addNewElement(), GNERerouterIntervalDialog::DestProbReroutesList::addNewElement(), GNERerouterIntervalDialog::ParkingAreaReroutesList::addNewElement(), GNERerouterIntervalDialog::RouteProbReroutesList::addNewElement(), and GNEVariableSpeedSignDialog::VariableSpeedSignStepsList::addNewElement().
|
inherited |
check if the current list is valid
Definition at line 98 of file GNEElementList.cpp.
References myElementTable.
|
inherited |
called when user press add button
Definition at line 104 of file GNEElementList.cpp.
References addNewElement().
Referenced by FXDEFMAP().
|
inherited |
called when user press sort button
Definition at line 110 of file GNEElementList.cpp.
References sortRows().
Referenced by FXDEFMAP().
|
virtual |
open element dialog
Implements GNETemplateElementList< GNEAdditional, GNEAdditional, GNEChange_Additional >.
Definition at line 206 of file GNERerouterIntervalDialog.cpp.
References GNETemplateElementList< GNEAdditional, GNEAdditional, GNEChange_Additional >::myEditedElements.
|
privatedelete |
Invalidated assignment operator.
References DestProbReroutesList().
|
inlinevirtualinherited |
remove element (using index)
Implements GNEElementList.
Definition at line 103 of file GNETemplateElementList.h.
Referenced by GNECalibratorDialog::CalibratorFlowsList::addNewElement().
|
protectedinherited |
delete additional element recursively
Definition at line 116 of file GNEElementList.cpp.
References GNEUndoList::add(), GNEHierarchicalElement::getChildAdditionals(), GNEHierarchicalElement::getChildDemandElements(), GNEAttributeCarrier::getNet(), GNEViewNet::getUndoList(), GNENet::getViewNet(), and removeElementRecursively().
Referenced by GNETemplateElementList< elementDialogType, elementType, GNEChange_Type >::removeElement(), removeElementRecursively(), and removeElementRecursively().
|
protectedinherited |
delete demand element recursively
Definition at line 132 of file GNEElementList.cpp.
References GNEUndoList::add(), GNEHierarchicalElement::getChildAdditionals(), GNEHierarchicalElement::getChildDemandElements(), GNEAttributeCarrier::getNet(), GNEViewNet::getUndoList(), GNENet::getViewNet(), and removeElementRecursively().
|
inlinevirtualinherited |
|
inlinevirtualinherited |
update element list
Implements GNEElementList.
Definition at line 59 of file GNETemplateElementList.h.
|
privateinherited |
add button
Definition at line 108 of file GNEElementList.h.
Referenced by disableList(), and enableList().
|
protectedinherited |
edited elements
Definition at line 133 of file GNETemplateElementList.h.
Referenced by GNECalibratorDialog::CalibratorFlowsList::openElementDialog(), GNERerouterIntervalDialog::ClosingLaneReroutesList::openElementDialog(), GNERerouterIntervalDialog::ClosingReroutesList::openElementDialog(), GNERerouterIntervalDialog::DestProbReroutesList::openElementDialog(), GNERerouterIntervalDialog::ParkingAreaReroutesList::openElementDialog(), and GNERerouterIntervalDialog::RouteProbReroutesList::openElementDialog().
|
protectedinherited |
element dialog parent
Definition at line 130 of file GNETemplateElementList.h.
Referenced by GNECalibratorDialog::CalibratorFlowsList::addNewElement(), GNERerouterDialog::RerouterIntervalsList::addNewElement(), GNERerouterIntervalDialog::ClosingLaneReroutesList::addNewElement(), GNERerouterIntervalDialog::ClosingReroutesList::addNewElement(), GNERerouterIntervalDialog::DestProbReroutesList::addNewElement(), GNERerouterIntervalDialog::ParkingAreaReroutesList::addNewElement(), GNERerouterIntervalDialog::RouteProbReroutesList::addNewElement(), and GNEVariableSpeedSignDialog::VariableSpeedSignStepsList::addNewElement().
|
protectedinherited |
element table
Definition at line 98 of file GNEElementList.h.
Referenced by disableList(), enableList(), GNETemplateElementList< elementDialogType, elementType, GNEChange_Type >::getSortTuples(), isListValid(), and GNETemplateElementList< elementDialogType, elementType, GNEChange_Type >::updateList().
|
privateinherited |
label
Definition at line 114 of file GNEElementList.h.
Referenced by disableList(), and enableList().
|
privateinherited |
sort button
Definition at line 111 of file GNEElementList.h.
Referenced by disableList(), and enableList().
|
protectedinherited |
FOX needs this.
pointer to tag property
Definition at line 95 of file GNEElementList.h.
Referenced by enableList(), GNEElementList(), and GNETemplateElementList< elementDialogType, elementType, GNEChange_Type >::updateList().