50 const std::vector<GNEEdge*>&
140 return canParse<RGBColor>(value);
174 myColor = parse<RGBColor>(value);
void setGenericParametersStr(const std::string &value)
set generic parameters in string format
const std::string & getAdditionalID() const
returns Additional ID
std::string getPopUpID() const
get PopPup ID (Used in AC Hierarchy)
Stores the information about how to visualize structures.
void moveGeometry(const Position &offset)
change the position of the element geometry without saving in undoList
static std::string parseIDs(const std::vector< T > &ACs)
parses a list of specific Attribute Carriers into a string of IDs
std::string getParentName() const
Returns the name of the parent object.
const std::vector< GNEEdge * > & getGNEEdges() const
get GNEEdges of Calibrator ROute
GNECalibratorRoute(GNEViewNet *viewNet)
default constructor (used only in GNECalibratorDialog)
SumoXMLAttr
Numbers representing SUMO-XML - attributes.
void setDefaultValues()
change all attributes of additional with their default values (note: this cannot be undo) ...
std::vector< GNEEdge * > myEdges
edges of route
void changeAdditionalID(const std::string &newID)
change ID of additional
begin/end of the description of a route
GNEViewNet * myViewNet
The GNEViewNet this additional element belongs.
void p_add(GNEChange_Attribute *cmd)
special method, avoid empty changes, always execute
void setAttribute(SumoXMLAttr key, const std::string &value, GNEUndoList *undoList)
method for setting the attribute and letting the object perform additional changes ...
std::string toString(const T &t, std::streamsize accuracy=gPrecision)
A point in 2D or 3D with translation and scaling methods.
static bool isGenericParametersValid(const std::string &value)
check if given string can be parsed to a map/list of generic parameters
friend class GNEChange_Attribute
declare friend class
RGBColor myColor
color of ROute
~GNECalibratorRoute()
destructor
void updateGeometry(bool updateGrid)
update pre-computed geometry information
virtual const std::string & getMicrosimID() const
Returns the id of the object as known to microsim.
std::string getHierarchyName() const
get Hierarchy Name (Used in AC Hierarchy)
const std::string getID() const
function to support debugging
void drawGL(const GUIVisualizationSettings &s) const
Draws the object.
std::string getAttribute(SumoXMLAttr key) const
inherited from GNEAttributeCarrier
static bool canParse(const std::string &string)
true if a value of type T can be parsed from string
bool isValid(SumoXMLAttr key, const std::string &value)
method for checking if the key and their conrrespond attribute are valids
Position getPositionInView() const
Returns position of additional in view.
An Element which don't belongs to GNENet but has influency in the simulation.
const std::string & getTagStr() const
get tag assigned to this object in string format
std::string getGenericParametersStr() const
return generic parameters in string format
GNENet * getNet() const
get the net object
static bool isRouteValid(const std::vector< GNEEdge *> &edges, bool report)
check if a route is valid
void commitGeometryMoving(GNEUndoList *undoList)
commit geometry changes in the attributes of an element after use of moveGeometry(...)
bool isValidAdditionalID(const std::string &newID) const
check if a new additional ID is valid
static T parse(const std::string &string)
parses a value of type T from string (used for basic types: int, double, bool, etc.)