![]() |
SUMO - Simulation of Urban MObility
|
#include <GNEChange_Selection.h>
Public Member Functions | |
GNEChange_Selection (const std::set< GUIGlID > &selected, const std::set< GUIGlID > &deselected, bool forward) | |
Constructor for modifying selection. More... | |
void | redo () |
FXString | redoName () const |
virtual FXuint | size () const |
void | undo () |
FXString | undoName () const |
~GNEChange_Selection () | |
Destructor. More... | |
Protected Attributes | |
bool | myForward |
we group antagonistic commands (create junction/delete junction) and keep them apart by this flag More... | |
GNENet * | myNet |
the net to which operations shall be applied or which shall be informed about gui updates (we are not responsible for the pointer) More... | |
Private Attributes | |
std::set< GUIGlID > | myDeselectedIDs |
all ids that were deselected in this change More... | |
std::set< GUIGlID > | mySelectedIDs |
all ids that were selected in this change More... | |
A change to the network selection
Definition at line 48 of file GNEChange_Selection.h.
GNEChange_Selection::GNEChange_Selection | ( | const std::set< GUIGlID > & | selected, |
const std::set< GUIGlID > & | deselected, | ||
bool | forward | ||
) |
Constructor for modifying selection.
[in] | selected | The ids to select |
[in] | deselected | The ids to deselect |
[in] | forward | Whether to select or deselect the selected ids |
Definition at line 49 of file GNEChange_Selection.cpp.
GNEChange_Selection::~GNEChange_Selection | ( | ) |
Destructor.
Definition at line 56 of file GNEChange_Selection.cpp.
|
virtual |
Reimplemented from GNEChange.
Definition at line 79 of file GNEChange_Selection.cpp.
References GUISelectedStorage::deselect(), gSelected, myDeselectedIDs, GNEChange::myForward, mySelectedIDs, and GUISelectedStorage::select().
|
virtual |
Reimplemented from GNEChange.
Definition at line 107 of file GNEChange_Selection.cpp.
References GNEChange::myForward.
|
inlinevirtualinherited |
Definition at line 62 of file GNEChange.h.
|
virtual |
Reimplemented from GNEChange.
Definition at line 60 of file GNEChange_Selection.cpp.
References GUISelectedStorage::deselect(), gSelected, myDeselectedIDs, GNEChange::myForward, mySelectedIDs, and GUISelectedStorage::select().
|
virtual |
Reimplemented from GNEChange.
Definition at line 98 of file GNEChange_Selection.cpp.
References GNEChange::myForward.
|
private |
all ids that were deselected in this change
Definition at line 72 of file GNEChange_Selection.h.
|
protectedinherited |
we group antagonistic commands (create junction/delete junction) and keep them apart by this flag
Definition at line 86 of file GNEChange.h.
Referenced by redo(), GNEChange_Edge::redo(), GNEChange_Junction::redo(), GNEChange_TLS::redo(), GNEChange_Lane::redo(), GNEChange_Connection::redo(), redoName(), GNEChange_Edge::redoName(), GNEChange_Junction::redoName(), GNEChange_TLS::redoName(), GNEChange_Lane::redoName(), GNEChange_Connection::redoName(), undo(), GNEChange_Junction::undo(), GNEChange_Edge::undo(), GNEChange_TLS::undo(), GNEChange_Lane::undo(), GNEChange_Connection::undo(), undoName(), GNEChange_Edge::undoName(), GNEChange_Junction::undoName(), GNEChange_TLS::undoName(), GNEChange_Lane::undoName(), and GNEChange_Connection::undoName().
|
protectedinherited |
the net to which operations shall be applied or which shall be informed about gui updates (we are not responsible for the pointer)
Definition at line 73 of file GNEChange.h.
Referenced by GNEChange_Edge::redo(), GNEChange_Junction::redo(), GNEChange::redo(), GNEChange_Junction::undo(), and GNEChange_Edge::undo().
|
private |
all ids that were selected in this change
Definition at line 70 of file GNEChange_Selection.h.