VR-Forces 5.0.3 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
weatherUpdater.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2014 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
9 #pragma once
10 
11 #include <vrfGuiCore/vrfGuiCore.h>
12 #include <vrvCore/DtUniqueID.h>
13 #include <vrvUtil/DtMessage.h>
15 #include <matrix/vlVector.h>
17 
18 
19 
20 namespace makVrv
21 {
26 
31 
32  class DtSceneObject;
33  class DtSceneObjectAgent;
34  class DtOsgOverlayPolygonModel;
35  class DtDe;
36  class DtModel;
37  class DtProjectedWidgetModel;
38  class DtAttributeGroupWidget;
39  class DtOsgOverlayEllipseArcModel;
40 }
41 
42 namespace makVrf
43 {
47  {
48  public:
51 
53  virtual ~DtWeatherUpdater();
54 
56  virtual void setEnvironmentalConditions(const makArchives::DtEnvironmentRecord&);
57 
59  virtual void setSceneObject(makVrv::DtSceneObject*);
60 
62  virtual void setWeatherIcon(makVrv::DtProjectedWidgetModel*);
63 
64  virtual void setColor(float r, float g, float b, float a);
65 
68  virtual void setSelected(bool b);
69 
71  virtual void setWeatherAreaFilled(bool);
72 
74  virtual void resetFill();
75 
76  virtual void updateLabelVisibilityState();
77 
78  virtual void setScale(float);
79 
81  virtual void updateGeometricCenter(const DtVector& newCenter);
82 
84  virtual void updateGeometricCenter();
85 
86  protected:
87  virtual void updateWeatherLook(bool colorChange = false);
88  virtual void weatherLookRulesChanged();
89 
90  virtual void slot_sceneObjectToBeDeleted( const makVrv::DtUniqueID& id );
91 
93  virtual void slot_applicationSettingsChanged();
94 
95  virtual void findWeatherLabel(bool);
96 
98  virtual void update();
99 
100  protected:
105  float myR, myG, myB, myA;
112 
114 
116 
118 
119  float myScale;
120  double myOriginX;
121  double myOriginY;
122 
124 
128  boost::signals2::connection mySceneObjectConnection;
129  boost::signals2::connection myTickConnection;
130  };
131 }
The IGI Message. Is easily encoded and decoding using stream operators. It also provides validation d...
Definition: DtMessage.h:30
DtVector myLastCheckPoint
Definition: weatherUpdater.h:123
DT_DLL_VRFGUICORE makVrv::DtMessage & operator<<(DtMessage &msg, const makVrf::DtNetworkMessageAgentInterface &)
makVrv::DtSceneObject * mySceneObject
Definition: weatherUpdater.h:103
OSG implementation of overlay polygon model.
Definition: DtOsgOverlayPolygonModel.h:25
double myOriginY
Definition: weatherUpdater.h:121
#define DT_DLL_VRFGUICORE
Contains DLL export macros.
Definition: vrfGuiCore.h:25
Record for an elevational configuration A record of this type consists of 1) a base MSL altitude...
Definition: DtEnvironmentRecord.h:236
boost::signals2::connection myTickConnection
Definition: weatherUpdater.h:129
This class will change the look of a weather area based on supplied environment conditions. It will use the local weather manager&#39;s weather update rules to finalize the model definition and color needed.
Definition: weatherUpdater.h:46
Class for a widget that displays remote graphics attribute groups.
Definition: DtAttributeGroupWidget.h:20
makVrv::DtSignalConnectionManager myConnections
Definition: weatherUpdater.h:115
makVrv::DtProjectedWidgetModel * myWeatherLabels
Definition: weatherUpdater.h:108
The declaration of the makArchives::DtEnvironmentRecord class.
A Model which can be added to objects for displaying overlay widgets.
Definition: DtProjectedWidgetModel.h:21
float myR
Definition: weatherUpdater.h:105
Class to manage disconnection of boost connections on deletion.
Definition: DtSignalConnectionManager.h:20
bool myWeatherAreaFilled
Definition: weatherUpdater.h:117
Record of environment/weather settings Includes precipitation, air, and clouds.
Definition: DtEnvironmentRecord.h:36
makVrv::DtAttributeGroupWidget * myWeatherAttributes
Definition: weatherUpdater.h:109
makVrv::DtDe & myDe
Definition: weatherUpdater.h:101
bool myInitialized
Definition: weatherUpdater.h:111
makVrv::DtUniqueID myUniqueID
Definition: weatherUpdater.h:102
Base class to provide boost signal/slot management.
OSG implementation of 2D ellipsoid arc.
Definition: DtOsgOverlayEllipseArcModel.h:22
A DtSceneObject represents an object that can be positioned in the scene by (possibly) attaching it t...
Definition: DtSceneObject.h:42
Contains makVrv::DtUniqueID type.
DT_DLL_VRFGUICORE makVrv::DtMessage & operator>>(DtMessage &msg, makVrf::DtNetworkMessageAgentInterface &)
float myScale
Definition: weatherUpdater.h:119
double myOriginX
Definition: weatherUpdater.h:120
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:70
std::vector< DtElevationalConfigurationRecord > ElevationalConfigurationRecordList
Definition: DtEnvironmentRecord.h:364
makArchives::DtEnvironmentRecord myEnvironmentRecord
Definition: weatherUpdater.h:113
boost::signals2::connection mySceneObjectConnection
When the class is destructed, the scene object may or may not exist. Using a separate connection va...
Definition: weatherUpdater.h:128
makVrv::DtOsgOverlayPolygonModel * myWeatherArea
Definition: weatherUpdater.h:106
makVrv::DtProjectedWidgetModel * myIcon
Definition: weatherUpdater.h:104
bool mySelected
Definition: weatherUpdater.h:110
makVrv::DtOsgOverlayEllipseArcModel * myWeatherEllipse
Definition: weatherUpdater.h:107

Document ID: Generated on Thu Jun 1 17:58:13 EDT 2023 from SVN revision 255404
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)