Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
eclipse
GitHub Repository: eclipse/sumo
Path: blob/main/src/netedit/frames/demand/GNERouteDistributionFrame.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 GNERouteDistributionFrame.h
15
/// @author Pablo Alvarez Lopez
16
/// @date Jun 2023
17
///
18
// The Widget for edit route distribution elements
19
/****************************************************************************/
20
#pragma once
21
#include <config.h>
22
23
#include "GNEDistributionFrame.h"
24
25
// ===========================================================================
26
// class definitions
27
// ===========================================================================
28
29
class GNERouteDistributionFrame : public GNEFrame {
30
31
public:
32
/**@brief Constructor
33
* @brief viewParent GNEViewParent in which this GNEFrame is placed
34
* @brief viewNet viewNet that uses this GNEFrame
35
*/
36
GNERouteDistributionFrame(GNEViewParent* viewParent, GNEViewNet* viewNet);
37
38
/// @brief Destructor
39
~GNERouteDistributionFrame();
40
41
/// @brief show Frame
42
void show();
43
44
/// @brief get route distribution selector
45
GNEDistributionFrame::DistributionSelector* getDistributionSelector() const;
46
47
protected:
48
/// @brief function called after set a valid attribute in AttributeCreator/AttributeEditor/ParametersEditor/...
49
void attributeUpdated(SumoXMLAttr attribute);
50
51
private:
52
/// @brief route editor
53
GNEDistributionFrame::DistributionEditor* myDistributionEditor = nullptr;
54
55
/// @brief route distribution selector
56
GNEDistributionFrame::DistributionSelector* myDistributionSelector = nullptr;
57
58
/// @brief distribution attributes editor
59
GNEAttributesEditor* myAttributesEditor = nullptr;
60
61
/// @brief editor for distribution values
62
GNEDistributionFrame::DistributionValuesEditor* myDistributionValuesEditor = nullptr;
63
};
64
65