 |
Eclipse SUMO - Simulation of Urban MObility
|
Go to the documentation of this file.
16 #ifndef GNEPersonTrip_h
17 #define GNEPersonTrip_h
50 const std::vector<GNEEdge*>& via,
double arrivalPosition,
const std::vector<std::string>& types,
51 const std::vector<std::string>& modes);
62 const std::vector<GNEEdge*>& via,
const std::vector<std::string>& types,
const std::vector<std::string>& modes);
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.
An Element which don't belongs to GNENet but has influency in the simulation.
void selectAttributeCarrier(bool changeFlag=true)
inherited from GNEAttributeCarrier
An upper class for objects with additional parameters.
Static storage of an output device and its base (abstract) implementation.
Boundary getCenteringBoundary() const
Returns the boundary to which the view shall be centered in order to show the object.
Position getPositionInView() const
Returns position of additional in view.
void setAttribute(SumoXMLAttr key, const std::string &value, GNEUndoList *undoList)
method for setting the attribute and letting the object perform demand element changes
DemandElementMove myPersonTripMove
variable for move person trips
GNEPersonTrip(GNEViewNet *viewNet, GNEDemandElement *personParent, GNEEdge *fromEdge, GNEEdge *toEdge, const std::vector< GNEEdge * > &via, double arrivalPosition, const std::vector< std::string > &types, const std::vector< std::string > &modes)
parameter constructor for person tripEdges
void fixDemandElementProblem()
fix demand element problem (by default throw an exception, has to be reimplemented in children)
void unselectAttributeCarrier(bool changeFlag=true)
unselect attribute carrier using GUIGlobalSelection
void commitGeometryMoving(GNEUndoList *undoList)
commit geometry changes in the attributes of an element after use of moveGeometry(....
void moveGeometry(const Position &offset)
change the position of the element geometry without saving in undoList
A road/street connecting two junctions (netedit-version)
void setEnabledAttribute(const int enabledAttributes)
method for enabling the attribute and nothing else (used in GNEChange_EnableAttribute)
std::string getPopUpID() const
get PopPup ID (Used in AC Hierarchy)
GUIGLObjectPopupMenu * getPopUpMenu(GUIMainWindow &app, GUISUMOAbstractView &parent)
Returns an own popup-menu.
GNEEdge * getFromEdge() const
bool isValid(SumoXMLAttr key, const std::string &value)
method for checking if the key and their conrrespond attribute are valids
bool isDemandElementValid() const
check if current demand element is valid to be writed into XML (by default true, can be reimplemented...
A class that stores a 2D geometrical boundary.
std::vector< std::string > myVTypes
valid line or vehicle types
void updatePartialGeometry(const GNEEdge *edge)
partial update pre-computed geometry information
A point in 2D or 3D with translation and scaling methods.
void startGeometryMoving()
void splitEdgeGeometry(const double splitPosition, const GNENetElement *originalElement, const GNENetElement *newElement, GNEUndoList *undoList)
split geometry
~GNEPersonTrip()
destructor
std::string getAttribute(SumoXMLAttr key) const
void drawGL(const GUIVisualizationSettings &s) const
Draws the object.
void endGeometryMoving()
end geometry movement
void invalidatePath()
invalidate path
void disableAttribute(SumoXMLAttr key, GNEUndoList *undoList)
GNEPersonTrip(GNEPersonTrip *)=delete
Invalidated copy constructor.
void writeDemandElement(OutputDevice &device) const
writte demand element element into a xml file
GNEPersonTrip & operator=(GNEPersonTrip *)=delete
Invalidated assignment operator.
void enableAttribute(SumoXMLAttr key, GNEUndoList *undoList)
std::string getParentName() const
Returns the name of the parent object.
void computePath()
compute path
std::string getHierarchyName() const
get Hierarchy Name (Used in AC Hierarchy)
bool isAttributeEnabled(SumoXMLAttr key) const
std::vector< std::string > myModes
valid line or modes
SUMOVehicleClass getVClass() const
obtain VClass related with this demand element
Stores the information about how to visualize structures.
const RGBColor & getColor() const
get color
GNEEdge * getToEdge() const
obtain to edge of this demand element
SumoXMLAttr
Numbers representing SUMO-XML - attributes.
void updateGeometry()
update pre-computed geometry information
double getAttributeDouble(SumoXMLAttr key) const
std::string getDemandElementProblem() const
return a string with the current demand element problem (by default empty, can be reimplemented in ch...
double myArrivalPosition
arrival position