118 const double firstPosOverLane,
const double lastPosOverLane,
const GNEMoveOffset& offset);
122 const double firstPosOverLane,
const GNELane* lastLane,
const double lastPosOverLane,
SumoXMLAttr
Numbers representing SUMO-XML - attributes.
double myMovingLateralOffset
move element lateral offset
static PositionVector calculateExtrapolatedVector(const GNEMoveOperation *moveOperation, const GNEMoveResult &moveResult)
calculate width/height shape
virtual void setMoveShape(const GNEMoveResult &moveResult)=0
set move shape
virtual PositionVector getMovingAttributePositionVector(SumoXMLAttr key) const =0
get moving attribute positionVector
static void calculateLanePositions(double &starPos, double &endPos, const GNEViewNet *viewNet, const GNELane *lane, const double firstPosOverLane, const double lastPosOverLane, const GNEMoveOffset &offset)
calculate lane position over one lane with two positions (stoppingPlaces, E2 single lanes)
GNEAttributeCarrier * myMovedElement
pointer to element
virtual ~GNEMoveElement()
static void commitMove(const GNEViewNet *viewNet, GNEMoveOperation *moveOperation, const GNEMoveOffset &offset, GNEUndoList *undoList)
commit move element for the given offset
static void calculateLanePosition(double &starPos, const GNEViewNet *viewNet, const GNELane *lane, const double posOverLane, const GNEMoveOffset &offset)
calculate lane position over one lane with only one position (accesss, E1, star/end positions,...
virtual double getMovingAttributeDouble(SumoXMLAttr key) const =0
get moving attribute double
virtual void commitMoveShape(const GNEMoveResult &moveResult, GNEUndoList *undoList)=0
commit move shape
GNEMoveElement & operator=(const GNEMoveElement &)=delete
Invalidated assignment operator.
virtual std::string getMovingAttribute(SumoXMLAttr key) const =0
get moving attribute
static void calculateNewLaneChange(const GNEViewNet *viewNet, const GNELane *originalLane, const GNELane *&newLane, double &laneOffset)
calculate new lane change
virtual void setMovingAttribute(SumoXMLAttr key, const std::string &value, GNEUndoList *undoList)=0
set moving attribute (using undo-list)
GNEMoveElement(const GNEMoveElement &)=delete
Invalidated copy constructor.
GNEMoveElement()=delete
invalidate default constructor
GNEMoveOperation * getEditShapeOperation(const GUIGlObject *obj, const PositionVector originalShape, const bool maintainShapeClosed)
calculate move shape operation
virtual GNEMoveOperation * getMoveOperation()=0
get move operation
virtual bool isMovingAttributeValid(SumoXMLAttr key, const std::string &value) const =0
check if the given moving attribute is valid
static void moveElement(const GNEViewNet *viewNet, GNEMoveOperation *moveOperation, const GNEMoveOffset &offset)
move element the for given offset (note: offset can be X-Y-0, 0-0-Z or X-Y-Z)
static double calculateLaneOffset(const GNEViewNet *viewNet, const GNELane *lane, const double firstPosition, const double lastPosition, const GNEMoveOffset &offset)
calculate lane offset (used in calculateLanePosition)
virtual Position getMovingAttributePosition(SumoXMLAttr key) const =0
get moving attribute position
virtual void removeGeometryPoint(const Position clickedPosition, GNEUndoList *undoList)=0
remove geometry point in the clicked position
An upper class for objects with additional parameters.
A point in 2D or 3D with translation and scaling methods.