50 myPlanParent(planParent),
51 myDepartPos(departPos),
52 myDepartPosProcedure(departPosProcedure) {
63 if (firstContainerPlan->getTagProperty()->isPlanStopPerson()) {
65 }
else if (firstContainerPlan->getParentEdges().size() > 0) {
69 double posOverLane = 0;
DepartPosDefinition
Possible ways to choose the departure position.
@ GIVEN
The position is given.
SumoXMLAttr
Numbers representing SUMO-XML - attributes.
std::string toString(const T &t, std::streamsize accuracy=gPrecision)
double getCommonAttributeDouble(SumoXMLAttr key) const
PositionVector getCommonAttributePositionVector(SumoXMLAttr key) const
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
bool isCommonAttributeValid(SumoXMLAttr key, const std::string &value) const
virtual void updateGeometry()=0
update pre-computed geometry information
virtual void setAttribute(SumoXMLAttr key, const std::string &value, GNEUndoList *undoList)=0
virtual std::string getAttribute(SumoXMLAttr key) const =0
std::string getCommonAttribute(SumoXMLAttr key) const
virtual SUMOVehicleClass getVClass() const =0
obtain VClass related with this demand element
const GNEHierarchicalContainerParents< GNEEdge * > & getParentEdges() const
get parent edges
const GNEHierarchicalContainerChildren< GNEDemandElement * > & getChildDemandElements() const
return child demand elements
GNEAttributeCarrier * myMovedElement
pointer to element
double & myDepartPos
departPos
Position getMovingAttributePosition(SumoXMLAttr key) const override
get moving attribute position
GNEMoveElementPlanParent(GNEDemandElement *planParent, double &departPos, DepartPosDefinition &departPosProcedure)
Constructor.
GNEMoveOperation * getMoveOperation()
get edge movable move operation for elements with
double getMovingAttributeDouble(SumoXMLAttr key) const override
get moving attribute double
void setMoveShape(const GNEMoveResult &moveResult) override
set move shape
PositionVector getMovingAttributePositionVector(SumoXMLAttr key) const override
get moving attribute positionVector
void setMovingAttribute(SumoXMLAttr key, const std::string &value, GNEUndoList *undoList) override
set moving attribute (using undo-list)
void commitMoveShape(const GNEMoveResult &moveResult, GNEUndoList *undoList) override
commit move shape
GNEDemandElement * myPlanParent
planParent
void removeGeometryPoint(const Position clickedPosition, GNEUndoList *undoList) override
remove geometry point in the clicked position
std::string getMovingAttribute(SumoXMLAttr key) const override
get moving attribute
DepartPosDefinition & myDepartPosProcedure
arrivalPos
~GNEMoveElementPlanParent()
Destructor.
bool isMovingAttributeValid(SumoXMLAttr key, const std::string &value) const override
check if the given moving attribute is valid
double newFirstPos
new first position
void end()
End undo command sub-group. If the sub-group is still empty, it will be deleted; otherwise,...
void begin(GUIIcon icon, const std::string &description)
Begin undo command sub-group with current supermode. This begins a new group of commands that are tre...
A point in 2D or 3D with translation and scaling methods.