 |
Eclipse SUMO - Simulation of Urban MObility
|
Go to the documentation of this file.
16 #ifndef GNECalibratorVehicleType_h
17 #define GNECalibratorVehicleType_h
void setAttribute(SumoXMLAttr key, const std::string &value, GNEUndoList *undoList)
method for setting the attribute and letting the object perform demand element changes
void writeDemandElement(OutputDevice &device) const
writte demand element element into a xml file
SUMOVehicleClass
Definition of vehicle classes to differ between different lane usage and authority types.
An Element which don't belongs to GNENet but has influency in the simulation.
void disableAttribute(SumoXMLAttr key, GNEUndoList *undoList)
GNEEdge * getToEdge() const
obtain to edge of this demand element
void unselectAttributeCarrier(bool changeFlag=true)
unselect attribute carrier using GUIGlobalSelection
SUMOVehicleClass getVClass() const
obtain VClass related with this demand element
Static storage of an output device and its base (abstract) implementation.
void setEnabledAttribute(const int enabledAttributes)
method for enabling the attribute and nothing else (used in GNEChange_EnableAttribute)
std::string getParentName() const
Returns the name of the parent object.
~GNEVehicleType()
destructor
void updateGeometry()
update pre-computed geometry information
bool myDefaultVehicleType
flag to check if this GNEVehicleType is a default vehicle Type (For Vehicles, Pedestrians....
void splitEdgeGeometry(const double splitPosition, const GNENetElement *originalElement, const GNENetElement *newElement, GNEUndoList *undoList)
split geometry
void computePath()
compute path
SumoXMLTag
Numbers representing SUMO-XML - element names.
A road/street connecting two junctions (netedit-version)
void endGeometryMoving()
end geometry movement
Structure representing possible vehicle parameter.
Boundary getCenteringBoundary() const
Returns the boundary to which the view shall be centered in order to show the object.
GNEEdge * getFromEdge() const
void startGeometryMoving()
GNEVehicleType(GNEViewNet *viewNet, const std::string &vTypeID, const SUMOVehicleClass &defaultVClass, SumoXMLTag tag)
constructor for default VTypes
A class that stores a 2D geometrical boundary.
void selectAttributeCarrier(bool changeFlag=true)
inherited from GNEAttributeCarrier
A point in 2D or 3D with translation and scaling methods.
void commitGeometryMoving(GNEUndoList *undoList)
commit geometry changes in the attributes of an element after use of moveGeometry(....
void updatePartialGeometry(const GNEEdge *edge)
partial update pre-computed geometry information
void invalidatePath()
invalidate path
std::string getPopUpID() const
get PopPup ID (Used in AC Hierarchy)
void enableAttribute(SumoXMLAttr key, GNEUndoList *undoList)
std::string getHierarchyName() const
get Hierarchy Name (Used in AC Hierarchy)
const RGBColor & getColor() const
get color
double getAttributeDouble(SumoXMLAttr key) const
struct for default values that depend of VClass
bool isValid(SumoXMLAttr key, const std::string &value)
method for checking if the key and their conrrespond attribute are valids
void initRailVisualizationParameters()
init Rail Visualization Parameters
static void overwriteVType(GNEDemandElement *vType, SUMOVTypeParameter *newVTypeParameter, GNEUndoList *undoList)
overwrite all values of GNEVehicleType with a SUMOVTypeParameter
void moveGeometry(const Position &offset)
change the position of the element geometry without saving in undoList
void updateDefaultVClassAttributes(const VClassDefaultValues &defaultValues)
function called after set new VClass
bool isAttributeEnabled(SumoXMLAttr key) const
Position getPositionInView() const
Returns position of additional in view.
bool myDefaultVehicleTypeModified
flag to check if this default GNEVehicleType was modified
Stores the information about how to visualize structures.
SumoXMLAttr
Numbers representing SUMO-XML - attributes.
void drawGL(const GUIVisualizationSettings &s) const
Draws the object.
std::string getAttribute(SumoXMLAttr key) const
GNEVehicleType * operator=(GNEVehicleType *)=delete
Invalidated assignment operator.