Eclipse SUMO - Simulation of Urban MObility
GNETAZRelDataFrame.h
Go to the documentation of this file.
1 /****************************************************************************/
2 // Eclipse SUMO, Simulation of Urban MObility; see https://eclipse.org/sumo
3 // Copyright (C) 2001-2022 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 /****************************************************************************/
18 // The Widget for add TAZRelationData elements
19 /****************************************************************************/
20 #pragma once
21 #include <config.h>
22 
23 #include "GNEGenericDataFrame.h"
24 
25 
26 // ===========================================================================
27 // class definitions
28 // ===========================================================================
34 
35 public:
36  // ===========================================================================
37  // class Legend
38  // ===========================================================================
39 
40  class Legend : public FXGroupBoxModule {
41 
42  public:
44  Legend(GNETAZRelDataFrame* TAZRelDataFrame);
45 
47  ~Legend();
48 
50  void setLabels(const GNETAZElement* fromTAZ, const GNETAZElement* toTAZ);
51 
52  private:
54  FXLabel* myFromTAZLabel;
55 
57  FXLabel* myToTAZLabel;
58  };
59 
64  GNETAZRelDataFrame(FXHorizontalFrame* horizontalFrameParent, GNEViewNet* viewNet);
65 
68 
70  bool setTAZ(const GNEViewNetHelper::ObjectsUnderCursor& objectsUnderCursor);
71 
73  void buildTAZRelationData();
74 
76  GNETAZElement* getFirstTAZ() const;
77 
79  GNETAZElement* getSecondTAZ() const;
80 
82  void clearTAZSelection();
83 
84 protected:
87 
90 
93 
94 private:
97 
100 };
101 
102 /****************************************************************************/
FXGroupBoxModule (based on FXGroupBox)
An Element which don't belongs to GNENet but has influency in the simulation.
Definition: GNETAZElement.h:45
FXLabel * myToTAZLabel
to TAZ Label
void setLabels(const GNETAZElement *fromTAZ, const GNETAZElement *toTAZ)
set labels
FXLabel * myFromTAZLabel
from TAZ label
Legend(GNETAZRelDataFrame *TAZRelDataFrame)
constructor
GNETAZRelDataFrame(const GNETAZRelDataFrame &)=delete
Invalidated copy constructor.
bool setTAZ(const GNEViewNetHelper::ObjectsUnderCursor &objectsUnderCursor)
set clicked TAZ
GNETAZElement * myFirstTAZ
first selected TAZ Element
GNETAZRelDataFrame(FXHorizontalFrame *horizontalFrameParent, GNEViewNet *viewNet)
Constructor.
void buildTAZRelationData()
build TAZRelation data
~GNETAZRelDataFrame()
Destructor.
GNETAZRelDataFrame::Legend * myLegend
TAZRel legend.
GNETAZElement * getSecondTAZ() const
get first selected TAZ Element
void clearTAZSelection()
clear TAZ selection
GNETAZElement * getFirstTAZ() const
get first selected TAZ Element
GNETAZRelDataFrame & operator=(const GNETAZRelDataFrame &)=delete
Invalidated assignment operator.
GNETAZElement * mySecondTAZ
first selected TAZ Element
class used to group all variables related with objects under cursor after a click over view