![]() |
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 48 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 50 of file GNEChange_Selection.cpp.
GNEChange_Selection::~GNEChange_Selection | ( | ) |
Destructor.
Definition at line 58 of file GNEChange_Selection.cpp.
|
virtual |
redo action
Reimplemented from GNEChange.
Definition at line 116 of file GNEChange_Selection.cpp.
References GUISelectedStorage::deselect(), OptionsCont::getOptions(), GNENet::getViewNet(), GUIGlObjectStorage::gIDStorage, gSelected, myDeselectedIDs, GNEChange::myForward, GNEChange::myNet, mySelectedIDs, GUISelectedStorage::select(), toString(), and WRITE_WARNING.
|
virtual |
get Redo name
Reimplemented from GNEChange.
Definition at line 179 of file GNEChange_Selection.cpp.
References GNEChange::myForward.
|
virtualinherited |
return actual size
Definition at line 52 of file GNEChange.cpp.
|
virtual |
undo action
Reimplemented from GNEChange.
Definition at line 63 of file GNEChange_Selection.cpp.
References GUISelectedStorage::deselect(), OptionsCont::getOptions(), GNENet::getViewNet(), GUIGlObjectStorage::gIDStorage, gSelected, myDeselectedIDs, GNEChange::myForward, GNEChange::myNet, mySelectedIDs, GUISelectedStorage::select(), toString(), and WRITE_WARNING.
|
virtual |
return undoName
Reimplemented from GNEChange.
Definition at line 169 of file GNEChange_Selection.cpp.
References GNEChange::myForward.
|
private |
all ids that were deselected in this change
Definition at line 84 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 GNEChange_Junction::redo(), GNEChange_Shape::redo(), redo(), GNEChange_TLS::redo(), GNEChange_VariableSpeedSignItem::redo(), GNEChange_Lane::redo(), GNEChange_Additional::redo(), GNEChange_Connection::redo(), GNEChange_Edge::redo(), GNEChange_Crossing::redo(), GNEChange_CalibratorItem::redo(), GNEChange_RerouterItem::redo(), GNEChange_Shape::redoName(), GNEChange_Junction::redoName(), redoName(), GNEChange_TLS::redoName(), GNEChange_Additional::redoName(), GNEChange_Connection::redoName(), GNEChange_Lane::redoName(), GNEChange_Edge::redoName(), GNEChange_Crossing::redoName(), GNEChange_Shape::undo(), GNEChange_Junction::undo(), undo(), GNEChange_TLS::undo(), GNEChange_VariableSpeedSignItem::undo(), GNEChange_Connection::undo(), GNEChange_Lane::undo(), GNEChange_Additional::undo(), GNEChange_Edge::undo(), GNEChange_Crossing::undo(), GNEChange_CalibratorItem::undo(), GNEChange_RerouterItem::undo(), GNEChange_Shape::undoName(), GNEChange_Junction::undoName(), undoName(), GNEChange_TLS::undoName(), GNEChange_Additional::undoName(), GNEChange_Connection::undoName(), GNEChange_Lane::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 81 of file GNEChange.h.
Referenced by GNEChange_Junction::redo(), GNEChange_Shape::redo(), redo(), GNEChange_VariableSpeedSignItem::redo(), GNEChange_Additional::redo(), GNEChange_Lane::redo(), GNEChange_Edge::redo(), GNEChange_Crossing::redo(), GNEChange_CalibratorItem::redo(), GNEChange_RerouterItem::redo(), GNEChange_Shape::undo(), GNEChange_Junction::undo(), undo(), GNEChange_VariableSpeedSignItem::undo(), GNEChange_Additional::undo(), GNEChange_Lane::undo(), GNEChange_Edge::undo(), GNEChange_Crossing::undo(), GNEChange_CalibratorItem::undo(), GNEChange_RerouterItem::undo(), GNEChange_Additional::~GNEChange_Additional(), GNEChange_CalibratorItem::~GNEChange_CalibratorItem(), GNEChange_Crossing::~GNEChange_Crossing(), and GNEChange_Shape::~GNEChange_Shape().
|
private |
all ids that were selected in this change
Definition at line 81 of file GNEChange_Selection.h.