Eclipse SUMO - Simulation of Urban MObility
Loading...
Searching...
No Matches
GNEMoveResult.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 define move results
19/****************************************************************************/
20#pragma once
21#include <config.h>
22
23#include "GNEMoveOperation.h"
24
25// ===========================================================================
26// class definitions
27// ===========================================================================
28
30
31public:
33 GNEMoveResult(const GNEMoveOperation* moveOperation);
34
37
40
42 std::vector<int> geometryPointsToMove;
43
46
48 double firstLaneOffset = 0;
49
51 const GNELane* newFirstLane = nullptr;
52
55
57 double lastLaneOffset = 0;
58
60 const GNELane* newLastLane = nullptr;
61
64
65private:
67 GNEMoveResult(const GNEMoveResult&) = delete;
68
71};
const double INVALID_DOUBLE
invalid double
Definition StdDefs.h:68
const GNELane * newFirstLane
new first Lane
double newFirstPos
new first position
double lastLaneOffset
lane offset
const GNELane * newLastLane
new last Lane
GNEMoveResult(const GNEMoveResult &)=delete
Invalidated copy constructor.
~GNEMoveResult()
destructor
const GNEMoveOperation::OperationType operationType
move operation
double firstLaneOffset
lane offset
std::vector< int > geometryPointsToMove
shape points to move (of shapeToMove)
double newLastPos
new last position
PositionVector shapeToUpdate
shape to update (edited in moveElement)
GNEMoveResult & operator=(const GNEMoveResult &)=delete
Invalidated assignment operator.
A list of positions.