VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
vrfDe.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2014 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
8 
12 
13 #pragma once
14 
15 #include <vrfGuiCore/vrfGuiCore.h>
16 #include <vlutil/vlTime.h>
17 #include <vrvUtil/DtDebugLog.h>
19 #include <vrvCore/DtDe.h>
20 #include <vrfStateData/dataGate.h>
21 
22 class DtSimulationAddress;
23 class DtFilePrinter;
24 
25 namespace makVrv
26 {
27  class DtDe;
28  class DtDriver;
29  class DtVrvApplicationConfiguration;
30 }
31 
32 namespace makVrf
33 {
34  class DtVrfGuiSettingsManager;
35  class DtVrfSimBackendManager;
36  class DtVrfBackendState;
37 
39  {
40  public:
43 
45  virtual ~DtVrfDe() override;
46 
50  virtual void setSimulationTime(double time) override;
51 
54 
55  virtual void setUseSimulationTimeForAdvancement(bool);
56  virtual bool useSimulationTimeForAdvancement() const;
58 
59  virtual void quit() override;
60  virtual void setTimeToQuit(bool v);
61  bool timeToQuit() const
62  {
63  return myTimeToQuit;
64  }
65 
66  bool renderTicking() const
67  {
68  return myRenderTicking;
69  }
70 
71  virtual void tick(double simulationTime) override;
72 
73  DtFilePrinter* filePrinter() { return myFilePrinter; };
74 
75  static void setEnableLogFileTimeStamps(bool);
76  static bool enableLogFileTimeStamps();
77 
78  virtual void createDebugLog(const std::string& fileName, makVrv::DtDebugLog::PrintLevel level) override;
79 
80  virtual void setDataDoesNotExist(bool);
81  bool dataDoesNotExist() const
82  {
83  return myDataDoesNotExist;
84  }
85 
86  virtual void setCommunicationDriver(const DtFilename&);
87 
88  protected:
89  virtual void slot_backendRemoved(const DtVrfBackendState&);
90  virtual void slot_selectedBackendChanged(const DtSimulationAddress&, const DtSimulationAddress&);
91 
92  virtual void initializeSchemaManager() override;
93  virtual bool waitingForBackendQuitMessage();
94  virtual void updateScene() override;
95  virtual void renderTick(double elapsedTime) override;
96  virtual void postInitialize() override;
97  virtual void startCommunicationDriver(const makVrv::DtDriver&);
98 
100  virtual double fixedFrameRate() const override;
101 
102  virtual void recalculateFixedFrameRate() const;
103 
104  protected:
105  bool myRenderTicking = false;
109  DtClock myClock;
111 
113 
115 
116  DtFilename myDebugLogFile;
117 
118  DtFilePrinter* myFilePrinter;
119 
123  mutable bool myRecalculateFixedFrameRate = true;
124  mutable double myFixedFrameRate = 0;
125  mutable DtVrfGuiSettingsManager* myVrfGuiSettingsManager = nullptr;
127  };
128 
131  {
132  public:
133  DtVrfDebugLog(const std::string& filename);
134 
136  virtual ~DtVrfDebugLog() override;
137  };
138 }
Definition: vrfBackendState.h:68
DtFilename myDebugLogFile
Definition: vrfDe.h:116
bool myUseSimulationTimeForAdvancement
Definition: vrfDe.h:112
bool timeToQuit() const
Definition: vrfDe.h:61
static bool theEnableLogFileTimeStamps
Definition: vrfDe.h:120
bool myTimeToQuit
Definition: vrfDe.h:114
DT_DLL_VRVCORE DtTaitBryan level(const DtCoordinateSystem &cs, const DtVector &localOrigin, double topoHeading)
Returns a level orientation with the topographic heading.
This is a simple class for logging information to a file. To be used, the caller must specify a loggi...
Definition: DtDebugLog.h:38
DtGateLock myGateLock
Definition: vrfDe.h:122
Contains makVrv::DtDe class.
makVrv::DtSignalConnectionManager myConnections
Definition: vrfDe.h:126
PrintLevel
Definition: DtDebugLog.h:42
#define DT_DLL_VRFGUICORE
Contains DLL export macros.
Definition: vrfGuiCore.h:25
bool renderTicking() const
Definition: vrfDe.h:66
bool dataDoesNotExist() const
Definition: vrfDe.h:81
If you need access to data in the main thread outside of the advance frame, use this lock (with the l...
Definition: dataGate.h:18
DtFilePrinter * myFilePrinter
Definition: vrfDe.h:118
DtTime myLastTimeSet
Definition: vrfDe.h:108
The DtDriver is an abstract class. Developers derive from this to create logic that &quot;directs&quot; things ...
Definition: DtDriver.h:31
Override to detach printers that are already created by VRF.
Definition: vrfDe.h:130
Class to manage disconnection of boost connections on deletion.
Definition: DtSignalConnectionManager.h:20
DtVrfBackendState * myCurrentBackend
Definition: vrfDe.h:110
This owns a list of display engine configurations.
Definition: DtVrvApplicationConfiguration.h:32
Definition: vrfDe.h:38
DtFilename myCommunicationDriver
Definition: vrfDe.h:106
DtFilePrinter * filePrinter()
Definition: vrfDe.h:73
bool myDataDoesNotExist
Definition: vrfDe.h:121
Base class to provide boost signal/slot management.
The class that will contain information about various scenario settings.
Definition: vrfGuiSettingsManager.h:37
Maintains and signals state of the simulation engines that are currently connected to the GUI...
Definition: vrfSimBackendManager.h:77
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
DtVrfSimBackendManager * myBackendManager
Definition: vrfDe.h:107
DtClock myClock
Definition: vrfDe.h:109
Contains makVrv::DtIGLogger class.

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)