VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtLocalWeatherQuery.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2026 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
9 
10 #pragma once
11 
12 #include <vrvCore/vrvCore.h>
14 #include <matrix/vlVector.h>
15 
16 #include <string>
17 
18 namespace makVrv
19 {
20  class DtDe;
21 
38  {
39  public:
40 
43  static DtLocalWeatherQuery* findInstance(DtDe& de);
44 
47  static void registerInstance(DtDe& de, DtLocalWeatherQuery* query);
48 
50  static const std::string& theClassName();
51 
52  public:
53 
55  virtual ~DtLocalWeatherQuery();
56 
69  virtual bool getLocalPrecipitation(
70  const DtVector& observerPos,
71  bool& raining,
72  float& normalizedIntensity) const = 0;
73 
86  virtual bool getLocalWind(
87  const DtVector& observerPos,
88  bool& audible,
89  float& speedMs,
90  float& directionRad) const = 0;
91 
103  virtual bool getLocalVisibility(
104  const DtVector& observerPos,
105  float& visibilityMeters) const = 0;
106 
107  protected:
108 
110 
111  private:
112 
113  DtLocalWeatherQuery(const DtLocalWeatherQuery&) = delete;
114  DtLocalWeatherQuery& operator=(const DtLocalWeatherQuery&) = delete;
115  };
116 
117 } // namespace makVrv
Virtual base class. Allows for RTTI and proper virtual destruction. Used by Creators, Factories, Providers, Assemblers and User Interfaces.
Definition: DtVirtualBaseClass.h:19
Contains makVrv::DtVirtualBaseClass class.
#define DT_DLL_VRVCORE
Definition: vrvCore.h:20
Per-De abstract interface for querying local weather area conditions at a world position.
Definition: DtLocalWeatherQuery.h:37
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
Contains DLL export macros.

Document ID: Generated on Thu Oct 15 21:27:02 EDT 2026 from SVN revision 296421
Copyright © 2005-2026 MAK Technologies. All Rights Reserved (www.mak.com)