VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
environmentControlArea.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2014 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
10 
11 #pragma once
12 
15 
16 #include <vrvCoreQt/DtToolbar.h>
19 #include <matrix/geodeticCoord.h>
20 
21 #include <matrix/geodeticCoord.h>
22 
23 #include <QtWidgets/QWidget>
24 
25 class QHBoxLayout;
26 class QLabel;
27 class QToolButton;
28 class QTimer;
29 
30 namespace makVrv
31 {
32  class DtDe;
33 }
34 
35 namespace makVrf
36 {
37  class DtVrfBackendState;
38  class DtEnvironmentControlAreaLogic;
39 
43  {
44  public:
45 
48 
50  virtual ~DtEnvironmentControlAreaToolbar() override;
51 
53  virtual QToolBar* createToolbar(makVrv::DtDe&, QWidget* parent) override;
54 
55  };
56 
59  {
60  Q_OBJECT
61 
62  public:
64  DtEnvironmentControlAreaWidget( makVrv::DtDe& de, QWidget* parent = 0, Qt::WindowFlags flags = 0);
65 
67  virtual ~DtEnvironmentControlAreaWidget() override;
68 
73  void updateEnabledStatus();
74 
75  virtual void updateWeatherIcon() override;
76 
77  protected:
78  virtual void updateWeatherIconForWindSpeed(
80 
82  void setupUi(QWidget* p);
83 
84  virtual void updateTimeZone();
85 
87  virtual void setTimeOfDay(int hours, int mins, int secs) override;
88 
90  virtual void setDateAndTimeOfDay(int year, int month, int day, int hours, int mins, int secs) override;
91 
94  virtual bool eventFilter(QObject* obj, QEvent* event) override;
95 
97  virtual void slot_backendUpdated(const DtVrfBackendState&, int);
98 
99  virtual void setIllumination(double, int sunState, const std::string&) override;
100 
101  virtual void showEvent(QShowEvent*) override;
102  virtual void hideEvent(QHideEvent*) override;
103 
104  protected slots:
105 
106  virtual void updateTimeOfDay();
107 
108  public:
109  QHBoxLayout* myMainLayout;
113 
114  protected:
120  float myWindSpeed;
121  DtGeodeticCoord myEyepoint;
122  };
123 
125  {
126 
127  public:
128 
130 
131  virtual ~DtEnvironmentControlAreaWidgetBuilder() override;
132 
133  virtual QWidget* create(makVrv::DtDe& de, QWidget* parent, const Qt::WindowFlags& flags) override;
134  };
135 }
136 
Definition: vrfBackendState.h:65
Contains makVrv::DtWidgetBuilder class.
QHBoxLayout * myMainLayout
Definition: environmentControlArea.h:109
#define DT_DLL_VRFGUICOREQT
Definition: vrfGuiCoreQt.h:26
The base class for VR-Vantage toolbars.
Definition: DtToolbar.h:26
DtEnvironmentControlAreaLogic * myLogic
Definition: environmentControlArea.h:116
double myNextTimeToCheck
Definition: environmentControlArea.h:118
QLabel * myWeatherIcon
Definition: environmentControlArea.h:111
Record for an elevational configuration A record of this type consists of 1) a base MSL altitude...
Definition: DtEnvironmentRecord.h:251
A builder for the environment control/display toolbar. The menu string is &quot;DtEnvironmentControlAreaTo...
Definition: environmentControlArea.h:42
QLabel * myToDLabel
Definition: environmentControlArea.h:110
makVrv::DtDe & myDe
Definition: environmentControlArea.h:115
double myLastSimTime
Definition: environmentControlArea.h:119
Class to manage disconnection of boost connections on deletion.
Definition: DtSignalConnectionManager.h:20
Contains makVrv::DtToolbar class declaration.
Abstract interface for the environment area widget.
Definition: environmentControlAreaInterface.h:22
Definition: environmentControlAreaLogic.h:31
A widget class for managing simulation back-ends.
Definition: environmentControlArea.h:58
float myWindSpeed
Definition: environmentControlArea.h:120
makVrv::DtSignalConnectionManager myConnectionManager
Definition: environmentControlArea.h:117
Base class to provide boost signal/slot management.
Definition: environmentControlArea.h:124
DtGeodeticCoord myEyepoint
Definition: environmentControlArea.h:121
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:76
QLabel * myIlluminationIcon
Definition: environmentControlArea.h:112
This class is the generic builder base class for building a widget.
Definition: DtWidgetBuilder.h:22

Document ID: Generated on Thu Oct 23 22:29:17 EDT 2025 from SVN revision 280951
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)