 |
Eclipse SUMO - Simulation of Urban MObility
|
Go to the documentation of this file.
38 bool customOrigValue, const std::
string& origValue) :
43 myOrigValue(customOrigValue ? origValue : ac->getAttribute(key)),
45 myAC->incRef(
"GNEChange_Attribute " +
toString(myKey));
50 bool forceChange,
SumoXMLAttr key,
const std::string& value) :
54 myForceChange(forceChange),
55 myOrigValue(ac->getAttribute(key)),
144 return (
"Undo change " +
myAC->
getTagStr() +
" attribute").c_str();
150 return (
"Redo change " +
myAC->
getTagStr() +
" attribute").c_str();
const std::string myOrigValue
the original value
void requireSaveNet(bool value)
inform that net has to be saved
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
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
bool requireUpdateGeometry() const
return true if atribute requires a update geometry in setAttribute(...)
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 requireSaveAdditionals(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
void requireSaveDemandElements(bool value)
inform that demand elements has to be saved
bool isDemandElement() const
return true if tag correspond to a demand element
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.
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)