70 if (refChild->getTagProperty()->isDistributionReference()) {
71 if (refChild->getTagProperty()->isDistributionReference() &&
72 (refChild->getParentDemandElements().front() ==
this)) {
73 refChild->writeDemandElement(device);
124 if (vehicle->getTagProperty()->isVehicle()) {
125 vehicle->updateGeometry();
152 return Boundary(-0.1, -0.1, 0.1, 0.1);
167 if (vehicle->getTagProperty()->isVehicle()) {
SUMOVehicleClass
Definition of vehicle classes to differ between different lane usage and authority types.
@ SVC_IGNORING
vehicles ignoring classes
@ SUMO_TAG_ROUTE_DISTRIBUTION
distribution of a route
SumoXMLAttr
Numbers representing SUMO-XML - attributes.
A class that stores a 2D geometrical boundary.
double getCommonAttributeDouble(SumoXMLAttr key) const
const std::string getID() const override
get ID (all Attribute Carriers have one)
void setCommonAttribute(SumoXMLAttr key, const std::string &value, GNEUndoList *undoList)
const std::string & getTagStr() const
get tag assigned to this object in string format
Position getCommonAttributePosition(SumoXMLAttr key) const
const GNETagProperties * getTagProperty() const
get tagProperty associated with this Attribute Carrier
GNENet * myNet
pointer to net
bool isCommonAttributeValid(SumoXMLAttr key, const std::string &value) const
std::string getCommonAttribute(SumoXMLAttr key) const
static void changeAttribute(GNEAttributeCarrier *AC, SumoXMLAttr key, const std::string &value, GNEUndoList *undoList, const bool force=false)
change attribute
bool isValidDemandElementID(const std::string &value) const
check if a new demand element ID is valid
void setDemandElementID(const std::string &newID)
set demand element id
Problem
enum class for demandElement problems
const GNEHierarchicalContainerChildren< GNEDemandElement * > & getChildDemandElements() const
return child demand elements
A NBNetBuilder extended by visualisation and editing capabilities.
GNEMoveElement * getMoveElement() const override
methods to retrieve the elements linked to this routeDistribution
void computePathElement() override
compute pathElement
Problem isDemandElementValid() const override
check if current demand element is valid to be written into XML
SUMOVehicleClass getVClass() const override
obtain VClass related with this demand element
bool isValid(SumoXMLAttr key, const std::string &value) override
Boundary getCenteringBoundary() const override
Returns the boundary to which the view shall be centered in order to show the object.
Parameterised * getParameters() override
get parameters associated with this routeDistribution
void splitEdgeGeometry(const double splitPosition, const GNENetworkElement *originalElement, const GNENetworkElement *newElement, GNEUndoList *undoList) override
split geometry
GNELane * getFirstPathLane() const override
get first path lane
void fixDemandElementProblem() override
fix demand element problem
std::string getAttribute(SumoXMLAttr key) const override
inherited from GNEAttributeCarrier
void writeDemandElement(OutputDevice &device) const override
write demand element element into a xml file
std::string getParentName() const override
Returns the name of the parent object.
double getAttributeDouble(SumoXMLAttr key) const override
~GNERouteDistribution()
destructor
Position getAttributePosition(SumoXMLAttr key) const override
const RGBColor & getColor() const override
get color
void drawJunctionPartialGL(const GUIVisualizationSettings &s, const GNESegment *segment, const double offsetFront) const override
Draws partial object over junction.
void setAttribute(SumoXMLAttr key, const std::string &value, GNEUndoList *undoList) override
Position getPositionInView() const override
Returns position of additional in view.
void updateGeometry() override
update pre-computed geometry information
GNELane * getLastPathLane() const override
get last path lane
void drawGL(const GUIVisualizationSettings &s) const override
Draws the object.
std::string getHierarchyName() const override
get Hierarchy Name (Used in AC Hierarchy)
std::string getPopUpID() const override
get PopPup ID (Used in AC Hierarchy)
GNERouteDistribution(GNENet *net)
default constructor
std::string getDemandElementProblem() const override
return a string with the current demand element problem
void drawLanePartialGL(const GUIVisualizationSettings &s, const GNESegment *segment, const double offsetFront) const override
Draws partial object over lane.
const std::string & getMicrosimID() const
Returns the id of the object as known to microsim.
Stores the information about how to visualize structures.
static const std::vector< SumoXMLTag > routes
route namespace
Static storage of an output device and its base (abstract) implementation.
OutputDevice & writeAttr(const SumoXMLAttr attr, const T &val)
writes a named attribute
OutputDevice & openTag(const std::string &xmlElement)
Opens an XML tag.
bool closeTag(const std::string &comment="")
Closes the most recently opened tag and optionally adds a comment.
An upper class for objects with additional parameters.
A point in 2D or 3D with translation and scaling methods.
static const RGBColor INVISIBLE