VR-Forces 4.7 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtSynchronizedTimeManager.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2018 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
9 
10 #pragma once
11 
12 #include <vrvCore/vrvCore.h>
14 
15 namespace makVrv
16 {
17  class DtDe;
18 
26  {
27  public:
30 
33 
36  virtual double syncedTime() const;
37 
42  virtual double timeEpoch() const;
43 
45 
46  virtual void setTimeScaleFactor( double scale );
47  virtual double timeScaleFactor() const;
49 
50  protected:
51 
54 
57  virtual void calcTimeEpoch();
58 
59  private:
60 
63 
66 
69 
70  protected:
71 
72  bool myTimeEpochCalculated; // flag telling whether the epoch has been calculated
73  DtDe& myDe; // reference to de (used to call for simulationTime() or systemTime()
74  double myTimeEpoch; // The time from which synchronized time is measured
75  double myTimeScaleFactor; // The frame delta is scaled by this; default is 1.
76  };
77 
82  {
83  public:
86  {
87  }
88 
91  {
92  }
93 
95  static DtSynchronizedTimeManagerCreator& instance( DtDe& de );
96 
98  static void registerInstance(DtDe& de, DtSynchronizedTimeManagerCreator* inst);
99 
101  virtual DtSynchronizedTimeManager* create( DtDe& de );
102  };
103 
104 }

Document ID: Generated on Fri Apr 26 21:53:14 EDT 2019 from SVN revision 197883
Copyright © 2005-2019 VT MAK. All Rights Reserved (www.mak.com)