![]() |
Eclipse SUMO - Simulation of Urban MObility
|
vTypes list More...
#include <GNECalibratorDialog.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 | |
| void | disableList (const std::string &reason) |
| disable list | |
| void | enableList () |
| enable list | |
| const std::vector< GNEDemandElement * > & | getEditedElements () const |
| get edited elements | |
| long | insertElement (GNEDemandElement *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 | |
| VTypesList (GNECalibratorDialog *rerouterDialog, FXVerticalFrame *contentFrame) | |
| constructor | |
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< GNEDemandElement * > | 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, GNEDemandElement * > | SortTuple |
| typedef used for sorting elements by attributes | |
Private Member Functions | |
| std::vector< SortTuple > | getSortTuples (const bool sort) const |
| get element sorted | |
| VTypesList & | operator= (const VTypesList &)=delete |
| Invalidated assignment operator. | |
| VTypesList (const VTypesList &)=delete | |
| Invalidated copy constructor. | |
Private Attributes | |
| FXButton * | myAddButton = nullptr |
| add button | |
| FXLabel * | myLabel = nullptr |
| label | |
| FXButton * | mySortButton = nullptr |
| sort button | |
vTypes list
Definition at line 81 of file GNECalibratorDialog.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.
| GNECalibratorDialog::VTypesList::VTypesList | ( | GNECalibratorDialog * | rerouterDialog, |
| FXVerticalFrame * | contentFrame ) |
constructor
Definition at line 140 of file GNECalibratorDialog.cpp.
References GNECalibratorDialog::GNECalibratorDialog(), GNEElementList::GNEElementList(), GNETemplateElementList< GNEAdditional, GNEDemandElement, GNEChange_DemandElement >::GNETemplateElementList(), and SUMO_TAG_VTYPE.
Referenced by operator=(), and VTypesList().
|
privatedelete |
Invalidated copy constructor.
References VTypesList().
|
virtual |
add new element
Implements GNETemplateElementList< GNEAdditional, GNEDemandElement, GNEChange_DemandElement >.
Definition at line 147 of file GNECalibratorDialog.cpp.
References GNEDialog::ACCEPT, GNETemplateElementList< GNEAdditional, GNEDemandElement, GNEChange_DemandElement >::insertElement(), GNETemplateElementList< GNEAdditional, GNEDemandElement, GNEChange_DemandElement >::myElementDialogParent, and GNETemplateElementList< GNEAdditional, GNEDemandElement, GNEChange_DemandElement >::removeElement().
|
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.
|
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::RoutesList::addNewElement(), and GNECalibratorDialog::VTypesList::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, GNEDemandElement, GNEChange_DemandElement >.
Definition at line 165 of file GNECalibratorDialog.cpp.
References GNETemplateElementList< GNEAdditional, GNEDemandElement, GNEChange_DemandElement >::myEditedElements.
|
privatedelete |
Invalidated assignment operator.
References VTypesList().
|
inlinevirtualinherited |
remove element (using index)
Implements GNEElementList.
Definition at line 103 of file GNETemplateElementList.h.
Referenced by GNECalibratorDialog::RoutesList::addNewElement(), and GNECalibratorDialog::VTypesList::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::RoutesList::openElementDialog(), and GNECalibratorDialog::VTypesList::openElementDialog().
|
protectedinherited |
element dialog parent
Definition at line 130 of file GNETemplateElementList.h.
Referenced by GNECalibratorDialog::RoutesList::addNewElement(), and GNECalibratorDialog::VTypesList::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().