339 void calculateConnectionShape();
void compute()
compute demand element
std::string getParentName() const
Returns the name of the parent object.
std::vector< std::pair< std::string, std::string > > getGenericParameters() const
return generic parameters as vector of pairs format
struct used for calculating routes
GUIGLObjectPopupMenu * getPopUpMenu(GUIMainWindow &app, GUISUMOAbstractView &parent)
Returns an own popup-menu.
SumoXMLTag
Numbers representing SUMO-XML - element names.
void setGenericParametersStr(const std::string &value)
set generic parameters in string format
SUMOVehicleClass getVClass() const
obtain VClass related with this demand element
A structure which describes a connection between edges or lanes.
void commitGeometryMoving(GNEUndoList *undoList)
commit geometry changes in the attributes of an element after use of moveGeometry(...)
GNEEdge * myFromEdge
from edge (used by flows and trips)
SUMOVehicleClass
Definition of vehicle classes to differ between different lane usage and authority types...
void startGeometryMoving()
void moveGeometry(const Position &offset)
change the position of the element geometry without saving in undoList
Stores the information about how to visualize structures.
void endGeometryMoving()
end geometry movement
void fixDemandElementProblem()
fix demand element problem (by default throw an exception, has to be reimplemented in children) ...
void writeDemandElement(OutputDevice &device) const
writte demand element element into a xml file
const RGBColor & getColor() const
get color
void setEnabledAttribute(const int enabledAttributes)
method for enabling the attribute and nothing else (used in GNEChange_EnableAttribute) ...
This lane is powered by an underlying GNEEdge and basically knows how to draw itself.
void setColor(const GUIVisualizationSettings &s) const
sets the color according to the currente settings
SumoXMLAttr
Numbers representing SUMO-XML - attributes.
std::string getDemandElementProblem() const
return a string with the current demand element problem (by default empty, can be reimplemented in ch...
GNEVehicle(SumoXMLTag tag, GNEViewNet *viewNet, const std::string &vehicleID, GNEDemandElement *vehicleType, GNEDemandElement *route)
default constructor for vehicles and routeFlows without embedded routes
A class that stores a 2D geometrical boundary.
GNEEdge * getToEdge() const
obtain to edge of this demand element
std::string getHierarchyName() const
get Hierarchy Name (Used in AC Hierarchy)
const GNELane * laneFrom
lane from
void setAttribute(SumoXMLAttr key, const std::string &value, GNEUndoList *undoList)
method for setting the attribute and letting the object perform demand element changes ...
const GNELane * laneTo
lane to
const NBEdge::Connection * con
Pointer to NBEdge::Connection.
A point in 2D or 3D with translation and scaling methods.
std::string getAttribute(SumoXMLAttr key) const
GNEEdge * getFromEdge() const
bool isAttributeEnabled(SumoXMLAttr key) const
std::string getPopUpID() const
get PopPup ID (Used in AC Hierarchy)
GNEVehicle & operator=(const GNEVehicle &)=delete
Invalidated assignment operator.
PositionVector connectionShape
calculated connection shape
void unselectAttributeCarrier(bool changeFlag=true)
unselect attribute carrier using GUIGlobalSelection
Boundary getCenteringBoundary() const
Returns the boundary to which the view shall be centered in order to show the object.
void selectAttributeCarrier(bool changeFlag=true)
inherited from GNEAttributeCarrier
A road/street connecting two junctions (netedit-version)
void enableAttribute(SumoXMLAttr key, GNEUndoList *undoList)
Structure representing possible vehicle parameter.
double getAttributeDouble(SumoXMLAttr key) const
void updateGeometry()
update pre-computed geometry information
SumoXMLTag tag
The vehicle tag.
std::string getBegin() const
get begin time of demand element
bool isDemandElementValid() const
check if current demand element is valid to be writed into XML (by default true, can be reimplemented...
GNEEdge * myToEdge
to edge (used by flows and trips)
std::string getGenericParametersStr() const
return generic parameters in string format
Static storage of an output device and its base (abstract) implementation.
Position getPositionInView() const
Returns position of demand element in view.
bool isValid(SumoXMLAttr key, const std::string &value)
method for checking if the key and their conrrespond attribute are valids
void drawGL(const GUIVisualizationSettings &s) const
Draws the object.
An Element which don't belongs to GNENet but has influency in the simulation.