VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
environmentAtLocationWidget.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2020 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
9 #pragma once
10 
11 #if !defined(Q_MOC_RUN)
12 
14 #include <boost/signals2.hpp>
15 #include <vrvCore/DtEntityState.h>
16 
18 #include <QtCore/QTimer>
19 
20 #endif
21 
22 class DtSimMessage;
23 
24 namespace makVrf
25 {
26  struct DtVrlinkSimulatedEnvironmentProcess;
27  struct DtVrlinkSimulatedWeatherState;
28  struct DtVrlinkSimulatedSoilState;
29 
30  namespace makVrfGuiObjectInformationQt
31  {
32  class DtInformationDialogWidgetSection;
33  class DtInformationSectionDisplayHandler;
34 
36  //
42  {
43  Q_OBJECT
44 
45  public:
47  DtEnvironmentAtLocationWidget(makVrv::DtDe& de, QWidget* parent = 0, Qt::WindowFlags f = 0);
48 
51 
52  protected:
53  virtual void slot_onCurrentSelectionChanged(
55  virtual void activate();
56 
57  virtual void showWeatherAtLocation(const DtVector&);
58  virtual void slot_databaseLocationSet(const DtVector&);
59  virtual void processWeatherAtLocationResponse(DtSimMessage* msg);
60 
61  virtual void createWeatherState();
62  virtual void slot_globalWeatherDiscovered();
63  virtual void completeSetup();
64 
65  protected:
66  unsigned long myWeatherRequestId;
71 
73 
74  protected slots:
75  virtual void refreshWidget();
76 
77  };
78 
82  {
83  public:
84 
87 
90 
94  virtual std::string pageClassName() const;
95 
97  virtual makVrv::DtPage* create(QWidget* parent = 0, Qt::WindowFlags f = 0);
98  };
99 
101  {
102 
103  public:
106  , myItemMode(none)
107  {
108  }
109 
111 
112  virtual ~DtSoilTypePageItem();
113 
114  static std::string creatorName();
115 
116  protected:
119 
121  virtual void processSoilTypeAtLocationResponse(DtSimMessage* msg);
122 
123 
124  QString mySoilType;
125  unsigned long mySoilRequestId = 0;
126 
129 
130  //Jira VRF-2357
131  //When an entity is selected, the "Soil Type" line should change to "Selected Entity" and show that entity's name.
132  enum Mode
133  {
136  none
137  };
139 
140 
141 
142 
143 
144  };
145 
147 
148  }
149 }
bool myHasEntitySelected
Definition: environmentAtLocationWidget.h:72
unsigned long myWeatherRequestId
Definition: environmentAtLocationWidget.h:66
DtSoilTypePageItem(makVrv::DtDe &de)
Definition: environmentAtLocationWidget.h:104
class DtSelectedObjectInformationWidget:
Definition: selectedObjectInformationWidget.h:46
The creator class needed to be used to create a DtWeatherAtLocationWidget.
Definition: environmentAtLocationWidget.h:81
The page creator. This class should be extended by all page classes.
Definition: DtPage.h:121
DtVrlinkSimulatedEnvironmentProcess * myEnvironmentState
Definition: environmentAtLocationWidget.h:69
class DtWeatherAtLocationWidget:
Definition: environmentAtLocationWidget.h:40
DtVector myLastLocation
Definition: environmentAtLocationWidget.h:127
Definition: environmentAtLocationWidget.h:134
File: simMsg.h.
Definition: simMessage.h:35
Mode myItemMode
Definition: environmentAtLocationWidget.h:138
makVrv::DtUniqueID mySoilID
Definition: environmentAtLocationWidget.h:68
QString mySoilType
Definition: environmentAtLocationWidget.h:124
makVrv::DtUniqueID myWeatherID
Definition: environmentAtLocationWidget.h:67
Contains makVrv::DtVrlinkSimulatedEntityState class.
bool myHasNewValue
Definition: environmentAtLocationWidget.h:128
The page is a single widget component which is viewed in a page collection.
Definition: DtPage.h:30
Definition: environmentAtLocationWidget.h:100
unsigned long long DtUniqueID
Definition: DtUniqueID.h:19
#define DT_DLL_VRFGUIOBJECTINFORMATIONQT
Contains DLL export macros.
Definition: vrfGuiObjectInformationQt.h:24
Mode
Definition: environmentAtLocationWidget.h:132
The DtDe is the core component of any VR-Vantage application. It owns a DtRenderer, DtDeCommunicator, as well as a DtDisplay and other things.
Definition: DtDe.h:72
std::set< DtUniqueID > IdSet
Definition: DtSelectionManager.h:32
DtVrlinkSimulatedWeatherState * myWeatherState
Definition: environmentAtLocationWidget.h:70
DtItemUpdateFunctionCreator< DtSoilTypePageItem > DtSoilTypePageItemCreator
Definition: environmentAtLocationWidget.h:146

Document ID: Generated on Wed Mar 27 22:49:11 EDT 2024 from SVN revision 264633
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)