VR-Forces 4.8 Class Documentation
 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  protected:
68  virtual void slot_backendRemoved(const DtVrfBackendState&);
69  virtual void slot_selectedBackendChanged(const DtSimulationAddress&, const DtSimulationAddress&);
70 
71  virtual void initializeSchemaManager();
72  virtual bool waitingForBackendQuitMessage();
73 
74  protected:
79 
81 
83 
84  DtFilename myDebugLogFile;
85 
86  DtFilePrinter* myFilePrinter;
87 
89  };
90 
93  {
94  public:
95  DtVrfDebugLog(const std::string& filename);
96 
98  virtual ~DtVrfDebugLog();
99  };
100 }
Definition: vrfBackendState.h:69
DtFilename myDebugLogFile
Definition: vrfDe.h:84
bool myUseSimulationTimeForAdvancement
Definition: vrfDe.h:80
bool timeToQuit() const
Definition: vrfDe.h:53
static bool theEnableLogFileTimeStamps
Definition: vrfDe.h:88
bool myTimeToQuit
Definition: vrfDe.h:82
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.
Definition: DtDebugLog.h:40
Contains makVrv::DtDe class.
PrintLevel
Definition: DtDebugLog.h:44
#define DT_DLL_VRFGUICORE
Contains DLL export macros.
Definition: vrfGuiCore.h:25
DtFilePrinter * myFilePrinter
Definition: vrfDe.h:86
DtTime myLastTimeSet
Definition: vrfDe.h:76
Override to detach printers that are already created by VRF.
Definition: vrfDe.h:92
DtVrfBackendState * myCurrentBackend
Definition: vrfDe.h:78
Definition: vrfDe.h:33
DtFilePrinter * filePrinter()
Definition: vrfDe.h:60
Maintains and signals state of the simulation engines that are currently connected to the GUI...
Definition: vrfSimBackendManager.h:73
The DtDe is the core component of any VR-Vantage application.
Definition: DtDe.h:69
DtVrfSimBackendManager * myBackendManager
Definition: vrfDe.h:75
DtClock myClock
Definition: vrfDe.h:77
Contains makVrv::DtIGLogger class.

Document ID: Generated on Thu Aug 27 10:56:05 EDT 2020 from SVN revision 217100
Copyright © 2005-2020 MAK Technologies. All Rights Reserved (www.mak.com)