Path: blob/main/src/netedit/frames/data/GNEEdgeRelDataFrame.h
169684 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 GNEEdgeRelDataFrame.h14/// @author Pablo Alvarez Lopez15/// @date Mar 202016///17// The Widget for add EdgeRelationData elements18/****************************************************************************/19#pragma once20#include <config.h>2122#include "GNEGenericDataFrame.h"232425// ===========================================================================26// class definitions27// ===========================================================================28/**29* @class GNEEdgeRelDataFrame30* The Widget for setting internal attributes of additional elements31*/32class GNEEdgeRelDataFrame : public GNEGenericDataFrame {3334public:35/**@brief Constructor36* @brief viewParent GNEViewParent in which this GNEFrame is placed37* @brief viewNet viewNet that uses this GNEEdgeRelDataFrame38*/39GNEEdgeRelDataFrame(GNEViewParent* viewParent, GNEViewNet* viewNet);4041/// @brief Destructor42~GNEEdgeRelDataFrame();4344/**@brief add additional element45* @param viewObjects collection of objects under cursor after click over view46* @return true if additional was successfully added47*/48bool addEdgeRelationData(const GNEViewNetHelper::ViewObjectsSelector& viewObjects, const GNEViewNetHelper::MouseButtonKeyPressed& mouseButtonKeyPressed);4950protected:51/// @brief create path52bool createPath(const bool useLastRoute);5354private:55/// @brief Invalidated copy constructor.56GNEEdgeRelDataFrame(const GNEEdgeRelDataFrame&) = delete;5758/// @brief Invalidated assignment operator.59GNEEdgeRelDataFrame& operator=(const GNEEdgeRelDataFrame&) = delete;60};6162/****************************************************************************/636465