Path: blob/main/src/netedit/elements/moving/GNEMoveResult.h
185790 views
/****************************************************************************/1// Eclipse SUMO, Simulation of Urban MObility; see https://eclipse.dev/sumo2// Copyright (C) 2001-2025 German Aerospace Center (DLR) and others.3// This program and the accompanying materials are made available under the4// terms of the Eclipse Public License 2.0 which is available at5// https://www.eclipse.org/legal/epl-2.0/6// This Source Code may also be made available under the following Secondary7// Licenses when the conditions for such availability set forth in the Eclipse8// Public License 2.0 are satisfied: GNU General Public License, version 29// or later which is available at10// https://www.gnu.org/licenses/old-licenses/gpl-2.0-standalone.html11// SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-or-later12/****************************************************************************/13/// @file GNEMoveResult.h14/// @author Pablo Alvarez Lopez15/// @date Mar 202016///17// Class used for define move results18/****************************************************************************/19#pragma once20#include <config.h>2122#include "GNEMoveOperation.h"2324// ===========================================================================25// class definitions26// ===========================================================================2728class GNEMoveResult {2930public:31/// @brief constructor32GNEMoveResult(const GNEMoveOperation* moveOperation);3334/// @brief destructor35~GNEMoveResult();3637/// @brief shape to update (edited in moveElement)38PositionVector shapeToUpdate;3940/// @brief shape points to move (of shapeToMove)41std::vector<int> geometryPointsToMove;4243/// @brief move operation44const GNEMoveOperation::OperationType operationType;4546/// @brief lane offset47double firstLaneOffset = 0;4849/// @brief new first Lane50const GNELane* newFirstLane = nullptr;5152/// @brief new first position53double newFirstPos = INVALID_DOUBLE;5455/// @brief lane offset56double lastLaneOffset = 0;5758/// @brief new last Lane59const GNELane* newLastLane = nullptr;6061/// @brief new last position62double newLastPos = INVALID_DOUBLE;6364private:65/// @brief Invalidated copy constructor.66GNEMoveResult(const GNEMoveResult&) = delete;6768/// @brief Invalidated assignment operator.69GNEMoveResult& operator=(const GNEMoveResult&) = delete;70};717273