![]() |
Eclipse SUMO - Simulation of Urban MObility
|
the function-object for an editing operation (abstract base) More...
#include <GNEChange_EnableAttribute.h>
Public Member Functions | |
GNEChange_EnableAttribute (GNEAttributeCarrier *ac, GNENet *net, const int originalAttributes, const int newAttributes) | |
Constructor. More... | |
virtual FXuint | size () const |
return actual size More... | |
~GNEChange_EnableAttribute () | |
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 | |
GNEAttributeCarrier * | myAC |
the net to which all operations shall be applied More... | |
const int | myNewAttributes |
original attributes More... | |
const int | myOriginalAttributes |
original attributes More... | |
the function-object for an editing operation (abstract base)
Definition at line 45 of file GNEChange_EnableAttribute.h.
GNEChange_EnableAttribute::GNEChange_EnableAttribute | ( | GNEAttributeCarrier * | ac, |
GNENet * | net, | ||
const int | originalAttributes, | ||
const int | newAttributes | ||
) |
Constructor.
[in] | ac | The attribute-carrier to be modified |
[in] | net | Net in which AC is saved |
[in] | originalAttributes | original set of attributes |
[in] | newAttributes | new set of attributes |
Definition at line 37 of file GNEChange_EnableAttribute.cpp.
GNEChange_EnableAttribute::~GNEChange_EnableAttribute | ( | ) |
Destructor.
Definition at line 46 of file GNEChange_EnableAttribute.cpp.
References GNEReferenceCounter::decRef(), GNEAttributeCarrier::getID(), GNEAttributeCarrier::TagProperties::getTag(), GNEAttributeCarrier::getTagProperty(), GNEAttributeCarrier::TagProperties::getTagStr(), GNEAttributeCarrier::getTagStr(), GNEAttributeCarrier::TagProperties::isShape(), myAC, GNEChange::myNet, ShapeContainer::removePOI(), ShapeContainer::removePolygon(), SUMO_TAG_POI, SUMO_TAG_POILANE, SUMO_TAG_POLY, GNEReferenceCounter::unreferenced(), and WRITE_DEBUG.
|
virtual |
redo action
Reimplemented from GNEChange.
Definition at line 86 of file GNEChange_EnableAttribute.cpp.
References GNEAttributeCarrier::getID(), GNEAttributeCarrier::getTagProperty(), GNEAttributeCarrier::getTagStr(), GNEAttributeCarrier::TagProperties::isAdditional(), GNEAttributeCarrier::TagProperties::isDemandElement(), GNEAttributeCarrier::TagProperties::isNetElement(), GNEAttributeCarrier::TagProperties::isShape(), myAC, GNEChange::myNet, myNewAttributes, GNENet::requiereSaveAdditionals(), GNENet::requiereSaveDemandElements(), GNENet::requiereSaveNet(), GNEAttributeCarrier::setEnabledAttribute(), and WRITE_DEBUG.
|
virtual |
get Redo name
Reimplemented from GNEChange.
Definition at line 109 of file GNEChange_EnableAttribute.cpp.
References GNEAttributeCarrier::getTagStr(), and myAC.
|
virtualinherited |
return actual size
Definition at line 45 of file GNEChange.cpp.
|
virtual |
undo action
Reimplemented from GNEChange.
Definition at line 69 of file GNEChange_EnableAttribute.cpp.
References GNEAttributeCarrier::getID(), GNEAttributeCarrier::getTagProperty(), GNEAttributeCarrier::getTagStr(), GNEAttributeCarrier::TagProperties::isAdditional(), GNEAttributeCarrier::TagProperties::isDemandElement(), GNEAttributeCarrier::TagProperties::isNetElement(), GNEAttributeCarrier::TagProperties::isShape(), myAC, GNEChange::myNet, myOriginalAttributes, GNENet::requiereSaveAdditionals(), GNENet::requiereSaveDemandElements(), GNENet::requiereSaveNet(), GNEAttributeCarrier::setEnabledAttribute(), and WRITE_DEBUG.
|
virtual |
return undoName
Reimplemented from GNEChange.
Definition at line 103 of file GNEChange_EnableAttribute.cpp.
References GNEAttributeCarrier::getTagStr(), and myAC.
|
private |
the net to which all operations shall be applied
Definition at line 79 of file GNEChange_EnableAttribute.h.
Referenced by redo(), redoName(), undo(), undoName(), and ~GNEChange_EnableAttribute().
|
protectedinherited |
we group antagonistic commands (create junction/delete junction) and keep them apart by this flag
Definition at line 81 of file GNEChange.h.
Referenced by GNEChange_Junction::redo(), GNEChange_Shape::redo(), GNEChange_TLS::redo(), GNEChange_Additional::redo(), GNEChange_DemandElement::redo(), GNEChange_Children::redo(), GNEChange_Connection::redo(), GNEChange_Edge::redo(), GNEChange_Lane::redo(), GNEChange_Crossing::redo(), GNEChange_Shape::redoName(), GNEChange_Junction::redoName(), GNEChange_TLS::redoName(), GNEChange_Additional::redoName(), GNEChange_DemandElement::redoName(), GNEChange_Children::redoName(), GNEChange_Connection::redoName(), GNEChange_Edge::redoName(), GNEChange_Lane::redoName(), GNEChange_Crossing::redoName(), GNEChange_Junction::undo(), GNEChange_Shape::undo(), GNEChange_TLS::undo(), GNEChange_Additional::undo(), GNEChange_DemandElement::undo(), GNEChange_Children::undo(), GNEChange_Connection::undo(), GNEChange_Edge::undo(), GNEChange_Lane::undo(), GNEChange_Crossing::undo(), GNEChange_Junction::undoName(), GNEChange_Shape::undoName(), GNEChange_TLS::undoName(), GNEChange_Additional::undoName(), GNEChange_DemandElement::undoName(), GNEChange_Children::undoName(), GNEChange_Connection::undoName(), GNEChange_Edge::undoName(), GNEChange_Lane::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 76 of file GNEChange.h.
Referenced by GNEChange_Crossing::GNEChange_Crossing(), GNEChange_Junction::redo(), GNEChange_Shape::redo(), GNEChange_Additional::redo(), GNEChange_TLS::redo(), GNEChange_DemandElement::redo(), GNEChange_Children::redo(), redo(), GNEChange_Connection::redo(), GNEChange_Edge::redo(), GNEChange_Lane::redo(), GNEChange_Crossing::redo(), GNEChange_Attribute::redo(), GNEChange_Junction::undo(), GNEChange_Shape::undo(), GNEChange_Additional::undo(), GNEChange_TLS::undo(), GNEChange_DemandElement::undo(), undo(), GNEChange_Children::undo(), GNEChange_Connection::undo(), GNEChange_Edge::undo(), GNEChange_Lane::undo(), GNEChange_Crossing::undo(), GNEChange_Attribute::undo(), GNEChange_Additional::~GNEChange_Additional(), GNEChange_Attribute::~GNEChange_Attribute(), GNEChange_Crossing::~GNEChange_Crossing(), GNEChange_DemandElement::~GNEChange_DemandElement(), ~GNEChange_EnableAttribute(), and GNEChange_Shape::~GNEChange_Shape().
|
private |
original attributes
Definition at line 85 of file GNEChange_EnableAttribute.h.
Referenced by redo().
|
private |
original attributes
Definition at line 82 of file GNEChange_EnableAttribute.h.
Referenced by undo().