Eclipse SUMO - Simulation of Urban MObility
Loading...
Searching...
No Matches
GNEMoveElementPlan.h
Go to the documentation of this file.
1/****************************************************************************/
2// Eclipse SUMO, Simulation of Urban MObility; see https://eclipse.dev/sumo
3// Copyright (C) 2001-2025 German Aerospace Center (DLR) and others.
4// This program and the accompanying materials are made available under the
5// terms of the Eclipse Public License 2.0 which is available at
6// https://www.eclipse.org/legal/epl-2.0/
7// This Source Code may also be made available under the following Secondary
8// Licenses when the conditions for such availability set forth in the Eclipse
9// Public License 2.0 are satisfied: GNU General Public License, version 2
10// or later which is available at
11// https://www.gnu.org/licenses/old-licenses/gpl-2.0-standalone.html
12// SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-or-later
13/****************************************************************************/
18// Class used for elements that can be moved over a edge with two positions
19/****************************************************************************/
20#pragma once
21#include <config.h>
22
25
26#include "GNEMoveElement.h"
27
28// ===========================================================================
29// class declaration
30// ===========================================================================
31
33
34// ===========================================================================
35// class definitions
36// ===========================================================================
37
39
40public:
45 GNEMoveElementPlan(GNEDemandElement* planElement, double& departPos);
46
49
54
57
59 std::string getMovingAttribute(SumoXMLAttr key) const override;
60
62 double getMovingAttributeDouble(SumoXMLAttr key) const override;
63
66
69
71 void setMovingAttribute(SumoXMLAttr key, const std::string& value, GNEUndoList* undoList) override;
72
74 bool isMovingAttributeValid(SumoXMLAttr key, const std::string& value) const override;
75
77 void setMovingAttribute(SumoXMLAttr key, const std::string& value) override;
78
80
82 void removeGeometryPoint(const Position clickedPosition, GNEUndoList* undoList) override;
83
84private:
87
90
92 void setMoveShape(const GNEMoveResult& moveResult) override;
93
95 void commitMoveShape(const GNEMoveResult& moveResult, GNEUndoList* undoList) override;
96
99
102};
SumoXMLAttr
Numbers representing SUMO-XML - attributes.
GNEMoveOperation * getMoveOperation()
get edge movable move operation for elements with
bool isMovingAttributeValid(SumoXMLAttr key, const std::string &value) const override
check if the given moving attribute is valid
GNEMoveElementPlan(const GNEMoveElementPlan &)=delete
Invalidated copy constructor.
Position getMovingAttributePosition(SumoXMLAttr key) const override
get moving attribute position
PositionVector getMovingAttributePositionVector(SumoXMLAttr key) const override
get moving attribute positionVector
GNEMoveElementPlan & operator=(const GNEMoveElementPlan &src)=delete
Invalidated assignment operator.
void commitMoveShape(const GNEMoveResult &moveResult, GNEUndoList *undoList) override
commit move shape
double getMovingAttributeDouble(SumoXMLAttr key) const override
get moving attribute double
void removeGeometryPoint(const Position clickedPosition, GNEUndoList *undoList) override
remove geometry point in the clicked position
void setMovingAttribute(SumoXMLAttr key, const std::string &value, GNEUndoList *undoList) override
set moving attribute (using undo-list)
GNEDemandElement * myPlanElement
planElement
~GNEMoveElementPlan()
Destructor.
void setMoveShape(const GNEMoveResult &moveResult) override
set move shape
double & myArrivalPosition
departPos
std::string getMovingAttribute(SumoXMLAttr key) const override
get moving attribute
A point in 2D or 3D with translation and scaling methods.
Definition Position.h:37
A list of positions.