VR-Forces 4.8 Class Documentation
 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 
51 
53  virtual QToolBar* createToolbar(makVrv::DtDe&, QWidget* parent);
54 
55  };
56 
59  {
60  Q_OBJECT
61 
62  public:
64  DtEnvironmentControlAreaWidget( makVrv::DtDe& de, QWidget* parent = 0, Qt::WindowFlags flags = 0);
65 
68 
73  void updateEnabledStatus();
74 
75  virtual void updateWeatherIcon();
76 
77  protected:
79  void setupUi(QWidget* p);
80 
81  virtual void updateTimeZone();
82 
84  virtual void setTimeOfDay(int hours, int mins, int secs);
85 
87  virtual void setDateAndTimeOfDay(int year, int month, int day, int hours, int mins, int secs);
88 
91  virtual bool eventFilter(QObject* obj, QEvent * event);
92 
94  virtual void slot_backendUpdated(const DtVrfBackendState&, int);
95 
96  virtual void setIllumination(double, int sunState, const std::string&);
97 
98  virtual void showEvent(QShowEvent *);
99  virtual void hideEvent(QHideEvent *);
100 
101  protected slots:
102 
103  virtual void updateTimeOfDay();
104 
105  public:
106  QHBoxLayout* myMainLayout;
110 
111  protected:
117  DtGeodeticCoord myEyepoint;
118  };
119 
121  {
122 
123  public:
124 
126 
128 
129  virtual QWidget* create( makVrv::DtDe& de, QWidget* parent, const Qt::WindowFlags& flags);
130  };
131 }
132 
Definition: vrfBackendState.h:69
Contains makVrv::DtWidgetBuilder class.
QHBoxLayout * myMainLayout
Definition: environmentControlArea.h:106
#define DT_DLL_VRFGUICOREQT
Definition: vrfGuiCoreQt.h:26
The base class for VR-Vantage toolbars.
Definition: DtToolbar.h:26
DtEnvironmentControlAreaLogic * myLogic
Definition: environmentControlArea.h:113
double myNextTimeToCheck
Definition: environmentControlArea.h:115
QLabel * myWeatherIcon
Definition: environmentControlArea.h:108
A builder for the environment control/display toolbar.
Definition: environmentControlArea.h:42
QLabel * myToDLabel
Definition: environmentControlArea.h:107
makVrv::DtDe & myDe
Definition: environmentControlArea.h:112
double myLastSimTime
Definition: environmentControlArea.h:116
Class to manage disconnection of boost connections on deletion.
Definition: DtSignalConnectionManager.h:24
Abstract interface for the environment area widget.
Definition: environmentControlAreaInterface.h:21
Definition: environmentControlAreaLogic.h:31
A widget class for managing simulation back-ends.
Definition: environmentControlArea.h:58
makVrv::DtSignalConnectionManager myConnectionManager
Definition: environmentControlArea.h:114
Base class to provide boost signal/slot management.
Definition: environmentControlArea.h:120
DtGeodeticCoord myEyepoint
Definition: environmentControlArea.h:117
The DtDe is the core component of any VR-Vantage application.
Definition: DtDe.h:69
QLabel * myIlluminationIcon
Definition: environmentControlArea.h:109
This class is the generic builder base class for building a widget.
Definition: DtWidgetBuilder.h:25

Document ID: Generated on Thu Aug 27 10:56:05 EDT 2020 from SVN revision 217100
Copyright © 2005-2020 MAK Technologies. All Rights Reserved (www.mak.com)