 |
Eclipse SUMO - Simulation of Urban MObility
|
Go to the documentation of this file.
39 bool customOrigValue, const std::
string& origValue) :
44 myOrigValue(customOrigValue ? origValue : ac->getAttribute(key)),
46 myAC->incRef(
"GNEChange_Attribute " +
toString(myKey));
51 bool forceChange,
SumoXMLAttr key,
const std::string& value) :
55 myForceChange(forceChange),
56 myOrigValue(ac->getAttribute(key)),
145 return (
"Undo change " +
myAC->
getTagStr() +
" attribute").c_str();
151 return (
"Redo change " +
myAC->
getTagStr() +
" attribute").c_str();
const std::string myOrigValue
the original value
bool unreferenced()
check if object ins't referenced
const std::string getID() const
function to support debugging
virtual void updateGeometry()=0
update pre-computed geometry information
bool isAdditional() const
return true if tag correspond to an additional
begin/end of the description of a polygon
void requiereSaveNet(bool value)
inform that net has to be saved
A NBNetBuilder extended by visualisation and editing capabilities.
bool isNetElement() const
return true if tag correspond to a netElement
~GNEChange_Attribute()
Destructor.
begin/end of the description of a Point of interest
bool isShape() const
return true if tag correspond to a shape
SumoXMLTag getTag() const
get Tag vinculated with this attribute Property
bool hasAttribute(SumoXMLAttr attr) const
check if current TagProperties owns the attribute attr
const TagProperties & getTagProperty() const
get Tag Property assigned to this object
void requiereSaveAdditionals(bool value)
inform that additionals has to be saved
begin/end of the description of a Point of interest over Lane (used by Netedit)
bool trueChange()
wether original and new value differ
bool isDemandElement() const
return true if tag correspond to a demand element
void requiereSaveDemandElements(bool value)
inform that demand elements has to be saved
bool myForceChange
flag used to force set attributes
const std::string myNewValue
the original value
GNEChange_Attribute(GNEAttributeCarrier *ac, GNENet *net, const SumoXMLAttr key, const std::string &value, bool customOrigValue=false, const std::string &origValue="")
Constructor.
GNENet * myNet
the net to which operations shall be applied or which shall be informed about gui updates (we are not...
void decRef(const std::string &debugMsg="")
Decrease reference.
const SumoXMLAttr myKey
The attribute name (or the original attribute if we're editing a disjoint attribute)
std::string toString(const T &t, std::streamsize accuracy=gPrecision)
FXString undoName() const
return undoName
void incRef(const std::string &debugMsg="")
Increarse reference.
bool requiereUpdateGeometry() const
return true if atribute requieres a update geometry in setAttribute(...)
FXString redoName() const
get Redo name
GNEAttributeCarrier * myAC
the net to which all operations shall be applied
virtual bool removePolygon(const std::string &id, bool useLock=true)
Removes a polygon from the container.
const AttributeProperties & getAttributeProperties(SumoXMLAttr attr) const
get attribute (throw error if doesn't exist)
virtual void setAttribute(SumoXMLAttr key, const std::string &value, GNEUndoList *undoList)=0
virtual bool removePOI(const std::string &id)
Removes a PoI from the container.
the function-object for an editing operation (abstract base)
const std::string & getTagStr() const
get tag assigned to this object in string format
SumoXMLAttr
Numbers representing SUMO-XML - attributes.
the function-object for an editing operation (abstract base)