VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtLocalWindObjectManager.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 
13 
14 #include <string>
15 
16 #include <vrvUtil/signalslib.h>
17 
18 namespace makVrv
19 {
20  class DtDe;
21  class DtLocalWindObjectAgent;
22 
33  {
34  public:
36  virtual ~DtLocalWindObjectManager();
37 
39  virtual DtLocalWindObjectAgent* findLocalWindObjectAgent(DtUniqueID id);
40 
42  static DtLocalWindObjectManager& instance(DtDe& de);
43 
45  static const std::string& theClassName();
46 
48  virtual DtUniqueID addLocalWind(WindType localWindType);
49 
51  virtual void removeLocalWind(DtUniqueID id);
52 
54  virtual void setLocalWindLocation(DtUniqueID id, DtVector loc);
55 
57  virtual void setLocalWindSpeed(DtUniqueID id, float speed);
58 
61  virtual void setLocalWindDirection(DtUniqueID id, float dir);
62 
64  boost::signalslib::signal<void(DtUniqueID id, DtLocalWindObjectAgent* )> signal_localWindObjectAdded;
65 
67  boost::signalslib::signal<void(DtUniqueID id, DtLocalWindObjectAgent* )> signal_localWindObjectToBeRemoved;
68 
70  boost::signalslib::signal<void(DtUniqueID id, float metersPerSecond)> signal_localWindSpeedChanged;
71 
73  boost::signalslib::signal<void(DtUniqueID id, DtVector loc) > signal_localWindLocationChanged;
74 
76  boost::signalslib::signal<void(DtUniqueID id, float radians) > signal_localWindDirectionChanged;
77 
78  protected:
81 
82  private:
89 
90  protected:
91  typedef std::map<DtUniqueID, DtLocalWindObjectAgent* > LocalWindMap;
92 
94 
96  };
97 }
Virtual base class. Allows for RTTI and proper virtual destruction. Used by Creators, Factories, Providers, Assemblers and User Interfaces.
Definition: DtVirtualBaseClass.h:19
boost::signalslib::signal< void(DtUniqueID id, DtLocalWindObjectAgent *)> signal_localWindObjectAdded
Signal raised when a wind object is added.
Definition: DtLocalWindObjectManager.h:64
boost::signalslib::signal< void(DtUniqueID id, float metersPerSecond)> signal_localWindSpeedChanged
Signal raised when the wind speed changes.
Definition: DtLocalWindObjectManager.h:70
The DtLocalWindObjectManager manages and sets values for a DtLocalWindObjectAgents. The DtLocalWindObjectManager is usually accessed through the DtEnvironment. You can addLocalWind, removeLocalWind in the DtEnvironment and it will communicate to the DtLocalWindObjectManager to create or destroy a DtLocalWindObjectAgent which will create or destroy a DtOsgEarthLocalWindObject (via vrvCore/DtLocalWindObject) and call the osgEarth API.
Definition: DtLocalWindObjectManager.h:32
boost::signalslib::signal< void(DtUniqueID id, DtLocalWindObjectAgent *)> signal_localWindObjectToBeRemoved
Signal raised when a wind object is removed.
Definition: DtLocalWindObjectManager.h:67
std::map< DtUniqueID, DtLocalWindObjectAgent * > LocalWindMap
Definition: DtLocalWindObjectManager.h:91
Contains makVrv::DtVirtualBaseClass class.
#define DT_DLL_VRVCORE
Definition: vrvCore.h:20
Rotorwash and rotorwash collision object information.
unsigned long long DtUniqueID
Definition: DtUniqueID.h:19
WindType
This matches makOsgEarth enums for Wind These should be in synch!
Definition: DtRotorWashInfo.h:47
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
LocalWindMap myIDToLocaWindObjectAgent
Definition: DtLocalWindObjectManager.h:95
boost::signalslib::signal< void(DtUniqueID id, float radians) > signal_localWindDirectionChanged
Signal raised the wind direction changes.
Definition: DtLocalWindObjectManager.h:76
DtDe & myDe
Definition: DtLocalWindObjectManager.h:93
boost::signalslib::signal< void(DtUniqueID id, DtVector loc) > signal_localWindLocationChanged
Signal raised the wind location changes.
Definition: DtLocalWindObjectManager.h:73

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)