VR-Forces 4.8 Class Documentation
 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 #include <boost/signals2.hpp>
19 
20 namespace makVrv
21 {
24 
27  class DtSceneObject;
28  class DtSceneObjectAgent;
29  class DtOsgOverlayPolygonModel;
30  class DtDe;
31  class DtModel;
32  class DtProjectedWidgetModel;
33  class DtAttributeGroupWidget;
34  class DtOsgOverlayEllipseArcModel;
35 }
36 
37 namespace makVrf
38 {
42  {
43  public:
46 
48  virtual ~DtWeatherUpdater();
49 
51  virtual void setEnvironmentalConditions(const makArchives::DtEnvironmentRecord&);
52 
54  virtual void setSceneObject(makVrv::DtSceneObject*);
55 
57  virtual void setWeatherIcon(makVrv::DtProjectedWidgetModel*);
58 
59  virtual void setColor(float r, float g, float b, float a);
60 
63  virtual void setSelected(bool b);
64 
66  virtual void setWeatherAreaFilled(bool);
67 
69  virtual void resetFill();
70 
71  virtual void updateLabelVisibilityState();
72 
73  virtual void setScale(float);
74 
76  virtual void updateGeometricCenter(const DtVector& newCenter);
77 
79  virtual void updateGeometricCenter();
80 
81  protected:
82  virtual void updateWeatherLook(bool colorChange = false);
83  virtual void weatherLookRulesChanged();
84 
85  virtual void slot_sceneObjectToBeDeleted( const makVrv::DtUniqueID& id );
86 
88  virtual void slot_applicationSettingsChanged();
89 
90  virtual void findWeatherLabel(bool);
91 
93  virtual void update();
94 
95  protected:
100  float myR, myG, myB, myA;
107 
109 
111 
113 
114  float myScale;
115  double myOriginX;
116  double myOriginY;
117 
119 
123  boost::signalslib::connection mySceneObjectConnection;
124  boost::signalslib::connection myTickConnection;
125  };
126 }
127 
130 
The IGI Message.
Definition: DtMessage.h:33
DtVector myLastCheckPoint
Definition: weatherUpdater.h:118
DT_DLL_VRFGUICORE makVrv::DtMessage & operator<<(DtMessage &msg, const makVrf::DtNetworkMessageAgentInterface &)
makVrv::DtSceneObject * mySceneObject
Definition: weatherUpdater.h:98
OSG implementation of overlay polygon model.
Definition: DtOsgOverlayPolygonModel.h:25
DT_DLL_terrainCS bool operator==(const DtDegMinSec &lhs, const DtDegMinSec &rhs)
double myOriginY
Definition: weatherUpdater.h:116
#define DT_DLL_VRFGUICORE
Contains DLL export macros.
Definition: vrfGuiCore.h:25
This class will change the look of a weather area based on supplied environment conditions.
Definition: weatherUpdater.h:41
Class for a widget that displays remote graphics attribute groups.
Definition: DtAttributeGroupWidget.h:20
makVrv::DtSignalConnectionManager myConnections
Definition: weatherUpdater.h:110
makVrv::DtProjectedWidgetModel * myWeatherLabels
Definition: weatherUpdater.h:103
The declaration of the makArchives::DtEnvironmentRecord class.
A Model which can be added to objects for displaying overlay widgets.
Definition: DtProjectedWidgetModel.h:25
boost::signalslib::connection myTickConnection
Definition: weatherUpdater.h:124
float myR
Definition: weatherUpdater.h:100
Class to manage disconnection of boost connections on deletion.
Definition: DtSignalConnectionManager.h:24
bool myWeatherAreaFilled
Definition: weatherUpdater.h:112
Record of environment/weather settings Includes precipitation, air, and clouds.
Definition: DtEnvironmentRecord.h:24
makVrv::DtAttributeGroupWidget * myWeatherAttributes
Definition: weatherUpdater.h:104
makVrv::DtDe & myDe
Definition: weatherUpdater.h:96
bool myInitialized
Definition: weatherUpdater.h:106
unsigned long long DtUniqueID
Definition: DtUniqueID.h:22
makVrv::DtUniqueID myUniqueID
Definition: weatherUpdater.h:97
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:41
Contains makVrv::DtUniqueID type.
DT_DLL_VRFGUICORE makVrv::DtMessage & operator>>(DtMessage &msg, makVrf::DtNetworkMessageAgentInterface &)
float myScale
Definition: weatherUpdater.h:114
double myOriginX
Definition: weatherUpdater.h:115
The DtDe is the core component of any VR-Vantage application.
Definition: DtDe.h:69
DT_DLL_terrainCS bool operator!=(const DtDegMinSec &lhs, const DtDegMinSec &rhs)
makArchives::DtEnvironmentRecord myEnvironmentRecord
Definition: weatherUpdater.h:108
makVrv::DtOsgOverlayPolygonModel * myWeatherArea
Definition: weatherUpdater.h:101
makVrv::DtProjectedWidgetModel * myIcon
Definition: weatherUpdater.h:99
bool mySelected
Definition: weatherUpdater.h:105
makVrv::DtOsgOverlayEllipseArcModel * myWeatherEllipse
Definition: weatherUpdater.h:102
boost::signalslib::connection mySceneObjectConnection
When the class is destructed, the scene object may or may not exist.
Definition: weatherUpdater.h:123

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)