Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
eclipse
GitHub Repository: eclipse/sumo
Path: blob/main/src/netedit/frames/data/GNEEdgeDataFrame.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 GNEEdgeDataFrame.h
15
/// @author Pablo Alvarez Lopez
16
/// @date Jan 2020
17
///
18
// The Widget for add edgeData elements
19
/****************************************************************************/
20
#pragma once
21
#include <config.h>
22
23
#include "GNEGenericDataFrame.h"
24
25
26
// ===========================================================================
27
// class definitions
28
// ===========================================================================
29
/**
30
* @class GNEEdgeDataFrame
31
* The Widget for setting internal attributes of additional elements
32
*/
33
class GNEEdgeDataFrame : 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 GNEEdgeDataFrame
39
*/
40
GNEEdgeDataFrame(GNEViewParent* viewParent, GNEViewNet* viewNet);
41
42
/// @brief Destructor
43
~GNEEdgeDataFrame();
44
45
/**@brief add additional element
46
* @param viewObjects collection of objects under cursor after click over view
47
* @param mouseButtonKeyPressed key pressed during click
48
* @return true if additional was successfully added
49
*/
50
bool addEdgeData(const GNEViewNetHelper::ViewObjectsSelector& viewObjects, const GNEViewNetHelper::MouseButtonKeyPressed& mouseButtonKeyPressed);
51
52
private:
53
/// @brief Invalidated copy constructor.
54
GNEEdgeDataFrame(const GNEEdgeDataFrame&) = delete;
55
56
/// @brief Invalidated assignment operator.
57
GNEEdgeDataFrame& operator=(const GNEEdgeDataFrame&) = delete;
58
};
59
60
/****************************************************************************/
61
62