41 GNEVType(
const std::string& vTypeID,
GNENet* net,
const std::string& filename);
SUMOVehicleClass
Definition of vehicle classes to differ between different lane usage and authority types.
SumoXMLTag
Numbers representing SUMO-XML - element names.
SumoXMLAttr
Numbers representing SUMO-XML - attributes.
A class that stores a 2D geometrical boundary.
Problem
enum class for demandElement problems
A NBNetBuilder extended by visualisation and editing capabilities.
const RGBColor & getColor() const override
get color
GNEMoveElement * getMoveElement() const override
methods to retrieve the elements linked to this vType
Position getPositionInView() const override
Returns position of additional in view.
bool isAttributeEnabled(SumoXMLAttr key) const override
GNELane * getFirstPathLane() const override
get first path lane
SUMOVehicleClass getVClass() const override
obtain VClass related with this demand element
void splitEdgeGeometry(const double splitPosition, const GNENetworkElement *originalElement, const GNENetworkElement *newElement, GNEUndoList *undoList) override
split geometry
std::string getAttribute(SumoXMLAttr key) const override
inherited from GNEAttributeCarrier
Parameterised * getParameters() override
get parameters associated with this vType
static bool overwriteVType(GNEDemandElement *vType, const SUMOVTypeParameter newVTypeParameter, GNEUndoList *undoList)
overwrite all values of GNEVType with a SUMOVTypeParameter
void fixDemandElementProblem() override
fix demand element problem
GNEVType * operator=(GNEVType *)=delete
Invalidated assignment operator.
double getAttributeDouble(SumoXMLAttr key) const override
GNEVType(GNEVType *)=delete
Invalidated copy constructor.
void writeDemandElement(OutputDevice &device) const override
write demand element element into a xml file
std::string getDemandElementProblem() const override
return a string with the current demand element problem
void updateDefaultVClassAttributes(const VClassDefaultValues &defaultValues)
function called after set new VClass
void drawLanePartialGL(const GUIVisualizationSettings &s, const GNESegment *segment, const double offsetFront) const override
Draws partial object over lane.
bool isValid(SumoXMLAttr key, const std::string &value) override
bool myDefaultVehicleType
flag to check if this GNEVType is a default vehicle Type (For Vehicles, Pedestrians....
GNELane * getLastPathLane() const override
get last path lane
Boundary getCenteringBoundary() const override
Returns the boundary to which the view shall be centered in order to show the object.
void updateGeometry() override
update pre-computed geometry information
void drawGL(const GUIVisualizationSettings &s) const override
Draws the object.
Problem isDemandElementValid() const override
check if current demand element is valid to be written into XML
std::string getPopUpID() const override
get PopPup ID (Used in AC Hierarchy)
Position getAttributePosition(SumoXMLAttr key) const override
std::string getParentName() const override
Returns the name of the parent object.
std::string getHierarchyName() const override
get Hierarchy Name (Used in AC Hierarchy)
void drawJunctionPartialGL(const GUIVisualizationSettings &s, const GNESegment *segment, const double offsetFront) const override
Draws partial object over junction.
void computePathElement() override
compute pathElement
void setAttribute(SumoXMLAttr key, const std::string &value, GNEUndoList *undoList) override
bool myDefaultVehicleTypeModified
flag to check if this default GNEVType was modified
Stores the information about how to visualize structures.
Static storage of an output device and its base (abstract) implementation.
An upper class for objects with additional parameters.
A point in 2D or 3D with translation and scaling methods.
Structure representing possible vehicle parameter.
struct for default values that depend of VClass