![]() |
SUMO - Simulation of Urban MObility
|
#include <GNEChange_Selection.h>
Public Member Functions | |
GNEChange_Selection (GNENet *net, const std::set< GUIGlID > &selected, const std::set< GUIGlID > &deselected, bool forward) | |
Constructor for modifying selection. More... | |
virtual FXuint | size () const |
return actual size More... | |
~GNEChange_Selection () | |
Destructor. More... | |
inherited from GNEChange | |
get undo Name | |
FXString | undoName () const |
return undoName More... | |
FXString | redoName () const |
get Redo name More... | |
void | undo () |
undo action More... | |
void | redo () |
redo action 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 49 of file GNEChange_Selection.h.
GNEChange_Selection::GNEChange_Selection | ( | GNENet * | net, |
const std::set< GUIGlID > & | selected, | ||
const std::set< GUIGlID > & | deselected, | ||
bool | forward | ||
) |
Constructor for modifying selection.
constructor for changing selection
[in] | net | net in which apply selection chagnes |
[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 48 of file GNEChange_Selection.cpp.
GNEChange_Selection::~GNEChange_Selection | ( | ) |
Destructor.
Definition at line 56 of file GNEChange_Selection.cpp.
|
virtual |
redo action
Reimplemented from GNEChange.
Definition at line 90 of file GNEChange_Selection.cpp.
References GUISelectedStorage::deselect(), GNENet::getViewNet(), GUIGlObjectStorage::gIDStorage, gSelected, myDeselectedIDs, GNEChange::myForward, GNEChange::myNet, mySelectedIDs, and GUISelectedStorage::select().
|
virtual |
get Redo name
Reimplemented from GNEChange.
Definition at line 129 of file GNEChange_Selection.cpp.
References GNEChange::myForward.
|
virtualinherited |
return actual size
Definition at line 53 of file GNEChange.cpp.
|
virtual |
undo action
Reimplemented from GNEChange.
Definition at line 61 of file GNEChange_Selection.cpp.
References GUISelectedStorage::deselect(), GNENet::getViewNet(), GUIGlObjectStorage::gIDStorage, gSelected, myDeselectedIDs, GNEChange::myForward, GNEChange::myNet, mySelectedIDs, and GUISelectedStorage::select().
|
virtual |
return undoName
Reimplemented from GNEChange.
Definition at line 119 of file GNEChange_Selection.cpp.
References GNEChange::myForward.
|
private |
all ids that were deselected in this change
Definition at line 85 of file GNEChange_Selection.h.
|
protectedinherited |
we group antagonistic commands (create junction/delete junction) and keep them apart by this flag
Definition at line 87 of file GNEChange.h.
Referenced by GNEChange_Junction::redo(), redo(), GNEChange_TLS::redo(), GNEChange_Connection::redo(), GNEChange_Lane::redo(), GNEChange_Additional::redo(), GNEChange_Edge::redo(), GNEChange_Crossing::redo(), GNEChange_Junction::redoName(), redoName(), GNEChange_TLS::redoName(), GNEChange_Connection::redoName(), GNEChange_Lane::redoName(), GNEChange_Additional::redoName(), GNEChange_Edge::redoName(), GNEChange_Crossing::redoName(), GNEChange_Junction::undo(), undo(), GNEChange_TLS::undo(), GNEChange_Connection::undo(), GNEChange_Lane::undo(), GNEChange_Additional::undo(), GNEChange_Edge::undo(), GNEChange_Crossing::undo(), GNEChange_Junction::undoName(), undoName(), GNEChange_TLS::undoName(), GNEChange_Connection::undoName(), GNEChange_Lane::undoName(), GNEChange_Additional::undoName(), GNEChange_Edge::undoName(), and GNEChange_Crossing::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 82 of file GNEChange.h.
Referenced by GNEChange_Junction::redo(), redo(), GNEChange_Lane::redo(), GNEChange_Additional::redo(), GNEChange_Edge::redo(), GNEChange_Crossing::redo(), GNEChange_Junction::undo(), undo(), GNEChange_Lane::undo(), GNEChange_Additional::undo(), GNEChange_Edge::undo(), GNEChange_Crossing::undo(), GNEChange_Additional::~GNEChange_Additional(), GNEChange_Lane::~GNEChange_Lane(), and GNEChange_TLS::~GNEChange_TLS().
|
private |
all ids that were selected in this change
Definition at line 82 of file GNEChange_Selection.h.