VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtFogSignalManager.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 <vrvAudio/vrvAudio.h>
13 
16 #include <vrvCore/DtSigseqParse.h>
17 #include <vrvCore/DtUniqueID.h>
18 
21 
22 #include <matrix/vlVector.h>
23 
24 #include <map>
25 #include <memory>
26 #include <string>
27 #include <vector>
28 
29 namespace makVrv
30 {
31 
32  class DtDe;
33  class DtFogSignalController;
34  class DtFogSignalImGui;
35 
54  {
55  public:
58  static DtFogSignalManager& instance(DtDe& de);
59 
61  static const std::string& theClassName();
62 
64  ~DtFogSignalManager() override;
65 
77  void setFogVisibilityLevel(float meters);
78 
80  float fogVisibilityLevel() const;
81 
83  const std::map<DtUniqueID, std::unique_ptr<DtFogSignalController> >&
84  controllers() const { return myControllers; }
85 
89  bool currentlyFoggy() const { return myCurrentlyFoggy; }
90 
93  DtDe& de() const { return myDe; }
94 
96  DtFogSignalManager(const DtFogSignalManager&) = delete;
97  DtFogSignalManager& operator=(const DtFogSignalManager&) = delete;
98 
99  private:
100  explicit DtFogSignalManager(DtDe& de);
101 
127  void slot_buoyOrBeaconFogSignalRequested(DtUniqueID id,
128  const DtVector& position,
129  const std::string& catfog,
130  const std::string& soundFilepath,
131  const std::vector<DtSigseqSlot>& slots,
132  float decibels,
133  const std::string& rawSigseq,
134  const DtFogSignalAttenuation& attenuation,
135  const DtFogWaveAction& waveAction);
136 
140  void slot_fogSignalAudioCleared(DtUniqueID id);
141 
145  void slot_postTick();
146 
154  void slot_postInitialize();
155 
158  void slot_renderImGui();
159 
162 
164  std::map<DtUniqueID, std::unique_ptr<DtFogSignalController> > myControllers;
165 
171 
174 
177  std::unique_ptr<DtFogSignalImGui> myImGui;
178 
181  };
182 
183 } // namespace makVrv
const std::map< DtUniqueID, std::unique_ptr< DtFogSignalController > > & controllers() const
Returns the active controller map, keyed by fog signal id.
Definition: DtFogSignalManager.h:84
Virtual base class. Allows for RTTI and proper virtual destruction. Used by Creators, Factories, Providers, Assemblers and User Interfaces.
Definition: DtVirtualBaseClass.h:19
Contains the DtFogSignalAttenuation value type carrying the per-buoy 3D-audio attenuation envelope fo...
std::unique_ptr< DtFogSignalImGui > myImGui
ImGui debug overlay helper. Held by unique_ptr so the destructor can be defined out-of-line where DtF...
Definition: DtFogSignalManager.h:177
Wave-action fog signal cadence configuration.
Definition: DtFogWaveAction.h:28
Tokeniser for S-57 SIGSEQ fog/light signal sequence strings.
void slot_postInitialize(makVrv::DtDe &de)
Contains the DLL export macro for vrvAudio classes.
DtSignalConnectionManager myConnections
Manages signal/slot lifetime.
Definition: DtFogSignalManager.h:180
Contains the DtFogWaveAction value type and periodForWindSpeed helper used by the fog signal wave-act...
DtDe & myDe
Simulation environment reference.
Definition: DtFogSignalManager.h:161
Contains makVrv::DtVirtualBaseClass class.
float myFogVisibilityLevel
Visibility threshold in meters. Initialized in the constructor to DtSkyObject::theDefaultFogVisibilit...
Definition: DtFogSignalManager.h:170
Class to manage disconnection of boost connections on deletion.
Definition: DtSignalConnectionManager.h:20
unsigned long long DtUniqueID
Definition: DtUniqueID.h:19
std::map< DtUniqueID, std::unique_ptr< DtFogSignalController > > myControllers
Active controllers, keyed by the fog signal feature&#39;s DtUniqueID.
Definition: DtFogSignalManager.h:164
bool myCurrentlyFoggy
Most recent evaluation of the foggy gate, updated each post-tick.
Definition: DtFogSignalManager.h:173
DtDe & de() const
Accessor for the owning DtDe. Used by the ImGui debug helper to reach scene state without taking a ci...
Definition: DtFogSignalManager.h:93
Base class to provide boost signal/slot management.
Contains makVrv::DtUniqueID type.
#define DT_DLL_VRVAUDIO
Definition: vrvAudio.h:20
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
bool currentlyFoggy() const
Returns true when the most recent post-tick evaluation determined that the world is foggy (i...
Definition: DtFogSignalManager.h:89
DE-scoped manager that owns one DtFogSignalController per audio fog-signal feature (typically streame...
Definition: DtFogSignalManager.h:53
Per-buoy 3D-audio attenuation envelope for a fog signal request.
Definition: DtFogSignalAttenuation.h:37

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)