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