VR-Forces 5.0.1 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>
18 #include <vrvCore/DtDe.h>
19 
20 class DtSimulationAddress;
21 class DtFilePrinter;
22 
23 namespace makVrv
24 {
25  class DtDe;
26 }
27 
28 namespace makVrf
29 {
30  class DtVrfSimBackendManager;
31  class DtVrfBackendState;
32 
34  {
35  public:
37  DtVrfDe();
38 
40  virtual ~DtVrfDe();
41 
45  virtual void setSimulationTime(double time);
46 
49  virtual void setUseSimulationTimeForAdvancement(bool);
50  virtual bool useSimulationTimeForAdvancement() const;
51  virtual void quit();
52  virtual void setTimeToQuit(bool v);
53  bool timeToQuit() const
54  {
55  return myTimeToQuit;
56  }
57 
58  virtual void tick(double simulationTime);
59 
60  DtFilePrinter* filePrinter() { return myFilePrinter; };
61 
62  static void setEnableLogFileTimeStamps(bool);
63  static bool enableLogFileTimeStamps();
64 
65  virtual void createDebugLog(const std::string& fileName, makVrv::DtDebugLog::PrintLevel level);
66 
67  virtual void setDataDoesNotExist(bool);
68  bool dataDoesNotExist() const
69  {
70  return myDataDoesNotExist;
71  }
72 
73  protected:
74  virtual void slot_backendRemoved(const DtVrfBackendState&);
75  virtual void slot_selectedBackendChanged(const DtSimulationAddress&, const DtSimulationAddress&);
76 
77  virtual void initializeSchemaManager();
78  virtual bool waitingForBackendQuitMessage();
79 
80  protected:
85 
87 
89 
90  DtFilename myDebugLogFile;
91 
92  DtFilePrinter* myFilePrinter;
93 
96  };
97 
100  {
101  public:
102  DtVrfDebugLog(const std::string& filename);
103 
105  virtual ~DtVrfDebugLog();
106  };
107 }
Definition: vrfBackendState.h:69
DtFilename myDebugLogFile
Definition: vrfDe.h:90
bool myUseSimulationTimeForAdvancement
Definition: vrfDe.h:86
bool timeToQuit() const
Definition: vrfDe.h:53
static bool theEnableLogFileTimeStamps
Definition: vrfDe.h:94
bool myTimeToQuit
Definition: vrfDe.h:88
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:37
Contains makVrv::DtDe class.
PrintLevel
Definition: DtDebugLog.h:41
#define DT_DLL_VRFGUICORE
Contains DLL export macros.
Definition: vrfGuiCore.h:25
bool dataDoesNotExist() const
Definition: vrfDe.h:68
DtFilePrinter * myFilePrinter
Definition: vrfDe.h:92
DtTime myLastTimeSet
Definition: vrfDe.h:82
Override to detach printers that are already created by VRF.
Definition: vrfDe.h:99
DtVrfBackendState * myCurrentBackend
Definition: vrfDe.h:84
Definition: vrfDe.h:33
DtFilePrinter * filePrinter()
Definition: vrfDe.h:60
bool myDataDoesNotExist
Definition: vrfDe.h:95
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:70
DtVrfSimBackendManager * myBackendManager
Definition: vrfDe.h:81
DtClock myClock
Definition: vrfDe.h:83
Contains makVrv::DtIGLogger class.

Document ID: Generated on Mon Jun 20 00:38:30 EDT 2022 from SVN revision 244029
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)