Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
eclipse
GitHub Repository: eclipse/sumo
Path: blob/main/src/netedit/frames/data/GNEEdgeRelDataFrame.h
169684 views
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
/****************************************************************************/
14
/// @file GNEEdgeRelDataFrame.h
15
/// @author Pablo Alvarez Lopez
16
/// @date Mar 2020
17
///
18
// The Widget for add EdgeRelationData elements
19
/****************************************************************************/
20
#pragma once
21
#include <config.h>
22
23
#include "GNEGenericDataFrame.h"
24
25
26
// ===========================================================================
27
// class definitions
28
// ===========================================================================
29
/**
30
* @class GNEEdgeRelDataFrame
31
* The Widget for setting internal attributes of additional elements
32
*/
33
class GNEEdgeRelDataFrame : public GNEGenericDataFrame {
34
35
public:
36
/**@brief Constructor
37
* @brief viewParent GNEViewParent in which this GNEFrame is placed
38
* @brief viewNet viewNet that uses this GNEEdgeRelDataFrame
39
*/
40
GNEEdgeRelDataFrame(GNEViewParent* viewParent, GNEViewNet* viewNet);
41
42
/// @brief Destructor
43
~GNEEdgeRelDataFrame();
44
45
/**@brief add additional element
46
* @param viewObjects collection of objects under cursor after click over view
47
* @return true if additional was successfully added
48
*/
49
bool addEdgeRelationData(const GNEViewNetHelper::ViewObjectsSelector& viewObjects, const GNEViewNetHelper::MouseButtonKeyPressed& mouseButtonKeyPressed);
50
51
protected:
52
/// @brief create path
53
bool createPath(const bool useLastRoute);
54
55
private:
56
/// @brief Invalidated copy constructor.
57
GNEEdgeRelDataFrame(const GNEEdgeRelDataFrame&) = delete;
58
59
/// @brief Invalidated assignment operator.
60
GNEEdgeRelDataFrame& operator=(const GNEEdgeRelDataFrame&) = delete;
61
};
62
63
/****************************************************************************/
64
65