Eclipse SUMO - Simulation of Urban MObility
Loading...
Searching...
No Matches
GNERerouterDialog::RerouterIntervalsList Class Reference

rerouter interval list More...

#include <GNERerouterDialog.h>

Inheritance diagram for GNERerouterDialog::RerouterIntervalsList:
[legend]
Collaboration diagram for GNERerouterDialog::RerouterIntervalsList:
[legend]

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< GNEAdditional * > & getEditedElements () const
 get edited elements
long insertElement (GNEAdditional *element)
 insert element
bool isListValid () const
 check if the current list is valid
bool isOverlapping () const
 @briec check if there is overlapping between intervals
long openElementDialog (const size_t rowIndex)
 open element dialog
long removeElement (const size_t rowIndex)
 remove element (using index)
 RerouterIntervalsList (GNERerouterDialog *rerouterDialog)
 constructor
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
GNEElementTablemyElementTable = nullptr
 element table
const GNETagPropertiesmyTagProperty = 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

std::vector< SortTuplegetSortTuples (const bool sort) const
 get element sorted
RerouterIntervalsListoperator= (const RerouterIntervalsList &)=delete
 Invalidated assignment operator.
 RerouterIntervalsList (const RerouterIntervalsList &)=delete
 Invalidated copy constructor.

Private Attributes

FXButton * myAddButton = nullptr
 add button
FXLabel * myLabel = nullptr
 label
FXButton * mySortButton = nullptr
 sort button

Detailed Description

rerouter interval list

Definition at line 58 of file GNERerouterDialog.h.

Member Typedef Documentation

◆ SortTuple

typedef std::tuple<double, double, double, double, double, double, GNEAdditional*> GNETemplateElementList< GNEAdditional, GNEAdditional, GNEChange_Additional >::SortTuple
privateinherited

typedef used for sorting elements by attributes

Definition at line 137 of file GNETemplateElementList.h.

Member Enumeration Documentation

◆ Options

enum class GNEElementList::Options : int
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.

Constructor & Destructor Documentation

◆ RerouterIntervalsList() [1/2]

GNERerouterDialog::RerouterIntervalsList::RerouterIntervalsList ( GNERerouterDialog * rerouterDialog)

constructor

Definition at line 81 of file GNERerouterDialog.cpp.

References GNETemplateElementDialog< GNEAdditional >::getContentFrame(), GNEElementList::GNEElementList(), GNERerouterDialog::GNERerouterDialog(), GNETemplateElementList< GNEAdditional, GNEAdditional, GNEChange_Additional >::GNETemplateElementList(), and SUMO_TAG_INTERVAL.

Referenced by operator=(), and RerouterIntervalsList().

Here is the caller graph for this function:

◆ RerouterIntervalsList() [2/2]

GNERerouterDialog::RerouterIntervalsList::RerouterIntervalsList ( const RerouterIntervalsList & )
privatedelete

Invalidated copy constructor.

References RerouterIntervalsList().

Member Function Documentation

◆ addNewElement()

◆ checkSort()

bool GNETemplateElementList< GNEAdditional, GNEAdditional, GNEChange_Additional >::checkSort ( ) const
inlineinherited

check if the elements are sorted

Definition at line 77 of file GNETemplateElementList.h.

◆ disableList()

void GNEElementList::disableList ( const std::string & reason)
inherited

disable list

Definition at line 86 of file GNEElementList.cpp.

References myAddButton, myElementTable, myLabel, and mySortButton.

◆ enableList()

void GNEElementList::enableList ( )
inherited

enable list

Definition at line 74 of file GNEElementList.cpp.

References myAddButton, myElementTable, myLabel, mySortButton, myTagProperty, and TLF.

◆ getEditedElements()

const std::vector< GNEAdditional * > & GNETemplateElementList< GNEAdditional, GNEAdditional, GNEChange_Additional >::getEditedElements ( ) const
inlineinherited

◆ getSortTuples()

std::vector< SortTuple > GNETemplateElementList< GNEAdditional, GNEAdditional, GNEChange_Additional >::getSortTuples ( const bool sort) const
inlineprivateinherited

get element sorted

Definition at line 140 of file GNETemplateElementList.h.

◆ insertElement()

◆ isListValid()

bool GNEElementList::isListValid ( ) const
inherited

check if the current list is valid

Definition at line 98 of file GNEElementList.cpp.

References myElementTable.

◆ isOverlapping()

bool GNERerouterDialog::RerouterIntervalsList::isOverlapping ( ) const

@briec check if there is overlapping between intervals

Definition at line 111 of file GNERerouterDialog.cpp.

References GNETemplateElementList< GNEAdditional, GNEAdditional, GNEChange_Additional >::getEditedElements(), SUMO_ATTR_BEGIN, and SUMO_ATTR_END.

◆ onCmdAddRow()

long GNEElementList::onCmdAddRow ( FXObject * sender,
FXSelector ,
void *  )
inherited

called when user press add button

Definition at line 104 of file GNEElementList.cpp.

References addNewElement().

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onCmdSort()

long GNEElementList::onCmdSort ( FXObject * sender,
FXSelector ,
void *  )
inherited

called when user press sort button

Definition at line 110 of file GNEElementList.cpp.

References sortRows().

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ openElementDialog()

long GNERerouterDialog::RerouterIntervalsList::openElementDialog ( const size_t rowIndex)
virtual

◆ operator=()

RerouterIntervalsList & GNERerouterDialog::RerouterIntervalsList::operator= ( const RerouterIntervalsList & )
privatedelete

Invalidated assignment operator.

References RerouterIntervalsList().

◆ removeElement()

long GNETemplateElementList< GNEAdditional, GNEAdditional, GNEChange_Additional >::removeElement ( const size_t rowIndex)
inlinevirtualinherited

remove element (using index)

Implements GNEElementList.

Definition at line 103 of file GNETemplateElementList.h.

Referenced by GNECalibratorDialog::CalibratorFlowsList::addNewElement().

Here is the caller graph for this function:

◆ removeElementRecursively() [1/2]

void GNEElementList::removeElementRecursively ( GNEAdditional * additionalElement) const
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().

Here is the caller graph for this function:

◆ removeElementRecursively() [2/2]

void GNEElementList::removeElementRecursively ( GNEDemandElement * demandElement) const
protectedinherited

◆ sortRows()

long GNETemplateElementList< GNEAdditional, GNEAdditional, GNEChange_Additional >::sortRows ( )
inlinevirtualinherited

open dialog

Implements GNEElementList.

Definition at line 90 of file GNETemplateElementList.h.

◆ updateList()

long GNETemplateElementList< GNEAdditional, GNEAdditional, GNEChange_Additional >::updateList ( )
inlinevirtualinherited

update element list

Implements GNEElementList.

Definition at line 59 of file GNETemplateElementList.h.

Field Documentation

◆ myAddButton

FXButton* GNEElementList::myAddButton = nullptr
privateinherited

add button

Definition at line 108 of file GNEElementList.h.

Referenced by disableList(), and enableList().

◆ myEditedElements

◆ myElementDialogParent

◆ myElementTable

◆ myLabel

FXLabel* GNEElementList::myLabel = nullptr
privateinherited

label

Definition at line 114 of file GNEElementList.h.

Referenced by disableList(), and enableList().

◆ mySortButton

FXButton* GNEElementList::mySortButton = nullptr
privateinherited

sort button

Definition at line 111 of file GNEElementList.h.

Referenced by disableList(), and enableList().

◆ myTagProperty

const GNETagProperties* GNEElementList::myTagProperty = nullptr
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().


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