![]() |
SUMO - Simulation of Urban MObility
|
#include <GNEChange_Junction.h>
Public Member Functions | |
GNEChange_Junction (GNEJunction *junction, bool forward) | |
Constructor for creating/deleting a junction. More... | |
virtual FXuint | size () const |
return actual size More... | |
~GNEChange_Junction () | |
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 | |
GNEJunction * | myJunction |
full information regarding the junction that is to be created/deleted More... | |
A network change in which a single junction is created or deleted
Definition at line 49 of file GNEChange_Junction.h.
GNEChange_Junction::GNEChange_Junction | ( | GNEJunction * | junction, |
bool | forward | ||
) |
Constructor for creating/deleting a junction.
constructor for creating a junction
[in] | junction | The junction to be created/deleted |
[in] | forward | Whether to create/delete (true/false) |
Definition at line 48 of file GNEChange_Junction.cpp.
GNEChange_Junction::~GNEChange_Junction | ( | ) |
Destructor.
Definition at line 56 of file GNEChange_Junction.cpp.
References GNEReferenceCounter::decRef(), OptionsCont::getBool(), GNEAttributeCarrier::getID(), OptionsCont::getOptions(), GNEAttributeCarrier::getTag(), myJunction, toString(), GNEReferenceCounter::unreferenced(), and WRITE_WARNING.
|
virtual |
redo action
Reimplemented from GNEChange.
Definition at line 90 of file GNEChange_Junction.cpp.
References GNENet::deleteSingleJunction(), GNEAttributeCarrier::getID(), OptionsCont::getOptions(), GNEAttributeCarrier::getTag(), GNENet::insertJunction(), GNEChange::myForward, myJunction, GNEChange::myNet, SUMO_TAG_NET, toString(), and WRITE_WARNING.
|
virtual |
get Redo name
Reimplemented from GNEChange.
Definition at line 120 of file GNEChange_Junction.cpp.
References GNEChange::myForward, SUMO_TAG_JUNCTION, and toString().
|
virtualinherited |
return actual size
Definition at line 52 of file GNEChange.cpp.
|
virtual |
undo action
Reimplemented from GNEChange.
Definition at line 70 of file GNEChange_Junction.cpp.
References GNENet::deleteSingleJunction(), GNEAttributeCarrier::getID(), OptionsCont::getOptions(), GNEAttributeCarrier::getTag(), GNENet::insertJunction(), GNEChange::myForward, myJunction, GNEChange::myNet, SUMO_TAG_NET, toString(), and WRITE_WARNING.
|
virtual |
return undoName
Reimplemented from GNEChange.
Definition at line 110 of file GNEChange_Junction.cpp.
References GNEChange::myForward, SUMO_TAG_JUNCTION, and toString().
|
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_Shape::redo(), GNEChange_Selection::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(), redoName(), GNEChange_Selection::redoName(), GNEChange_TLS::redoName(), GNEChange_Additional::redoName(), GNEChange_Connection::redoName(), GNEChange_Lane::redoName(), GNEChange_Edge::redoName(), GNEChange_Crossing::redoName(), GNEChange_Shape::undo(), undo(), GNEChange_Selection::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(), undoName(), GNEChange_Selection::undoName(), GNEChange_TLS::undoName(), GNEChange_Additional::undoName(), GNEChange_Connection::undoName(), GNEChange_Lane::undoName(), GNEChange_Edge::undoName(), and GNEChange_Crossing::undoName().
|
private |
full information regarding the junction that is to be created/deleted
Definition at line 82 of file GNEChange_Junction.h.
Referenced by redo(), undo(), and ~GNEChange_Junction().
|
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 redo(), GNEChange_Shape::redo(), GNEChange_Selection::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(), undo(), GNEChange_Selection::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().