VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
timeAndDateRemoteNetInterface.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2023 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
6 #pragma once
7 
10 
11 #include <tbb/spin_mutex.h>
12 #include <boost/signals2.hpp>
13 
14 class DtReflectedTimeAndDate;
16 
17 namespace makVrf
18 {
19  class DtTimeAndDateStateComponent;
20 
26 
28  {
29  private:
32 
35 
38  orig);
39 
40  public:
41 
47  bool publishObject = true);
48 
50  virtual ~DtTimeAndDateRemoteNetInterface() override;
51 
54  virtual DtString type() const override;
55 
56  static DtSimObjectNetInterface* creator(
57  DtStateData* vrfObject, DtVrlinkNetworkInterface* mgr, bool publishObject);
58 
60  virtual void init(DtFrameStateInterface*, DtReflectedObject*) override;
61 
62  protected:
63 
64  virtual void updateComponent() override;
65  virtual void deadReckonTimeAndDate();
66  virtual void onTick() override;
67  virtual void stateComponentDeleted();
68 
69  protected:
71  DtReflectedTimeAndDate* myReflectedTimeAndDate;
72  double myLastUpdateTime = 0.;
73  tbb::spin_mutex myMutex;
74  boost::signals2::connection myTimeAndDateComponentRemovalConnection;
75  };
76 }
boost::signals2::connection myTimeAndDateComponentRemovalConnection
Definition: timeAndDateRemoteNetInterface.h:74
Class Description: DtTimeAndDateRemoteNetInterface.
Definition: timeAndDateRemoteNetInterface.h:27
Definition: remoteStateComponentNetInterface.h:23
DtTimeAndDateStateComponent * myTimeAndDateComponent
Definition: timeAndDateRemoteNetInterface.h:70
1) Define the interface class that will be used to represent the next and curent frames. The UNDEFINED_ macros are convenience macros that will define methods that throw exceptions (until they are implemented)
Definition: timeAndDateStateComponent.h:79
The overall structure of the DtStateData mechanism is: The DtStateData contains a list of double buff...
Definition: stateData.h:398
Class Description: DtSimObjectNetInterface.
Definition: simObjectNetInterface.h:50
DT_DLL_DEBUGDRAWRENDERER void init(makVrv::DtDe &de)
Work function for the plugin initialization.
tbb::spin_mutex myMutex
Definition: timeAndDateRemoteNetInterface.h:73
DtReflectedTimeAndDate * myReflectedTimeAndDate
Definition: timeAndDateRemoteNetInterface.h:71
This is a simple base class that will be used to return a pointer to current or next frame state...
Definition: stateComponent.h:294

Document ID: Generated on Thu Oct 23 22:29:17 EDT 2025 from SVN revision 280951
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)