62 const auto firstContainerPlan =
myPlanParent->getChildDemandElements().front();
64 if (firstContainerPlan->getTagProperty()->isPlanStopPerson()) {
66 }
else if (firstContainerPlan->getParentEdges().size() > 0) {
70 double posOverLane = 0;
const std::string invalid_return< std::string >::value
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)
static T parse(const std::string &string)
parses a value of type T from string (used for basic types: int, double, bool, etc....
static bool canParse(const std::string &string)
true if a value of type T can be parsed from string
const GNEHierarchicalContainerParents< GNEEdge * > & getParentEdges() const
get parent edges
GNEAttributeCarrier * myMovedElement
pointer to element
GNEMoveElement(GNEAttributeCarrier *movedElement)
constructor
double & myDepartPos
departPos
Position getMovingAttributePosition(SumoXMLAttr key) const override
get moving attribute position
GNEMoveElementPlanParent(GNEDemandElement *planParent, double &departPos, DepartPosDefinition &departPosProcedure)
Constructor.
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
GNEMoveOperation * getMoveOperation() override
get edge movable move operation for elements with
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.