VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
simRemoteEntityNetInterface.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2019 MaK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
6 #pragma once
7 
11 
13 
16 #include <vl/globalObjectDesignator.h>
17 #include <readerWriter/rwString.h>
18 
19 class DtReflectedObject;
20 
29 namespace makVrf
30 {
32  {
33  private:
36 
38 
40  const DtSimRemoteEntityNetInterface& operator=(const
42 
43  public:
44 
47  bool publishObject = true);
48 
50  virtual ~DtSimRemoteEntityNetInterface() override;
51 
54  virtual bool init();
55 
57  virtual void onTick() override;
58 
62  virtual void updateFromReflectedObject() = 0;
63 
66  virtual void setupFromNetworkRepository();
67 
75  virtual void setReflectedObject(DtReflectedObject* reflectedObject);
76  virtual void clearReflectedObject();
77  virtual void toBeRemoved() override;
78 
82  virtual bool isValidReflectedObject(DtReflectedObject*) const;
83 
86  virtual const DtReflectedObject* reflectedObject() const;
87  virtual DtReflectedObject* reflectedObject();
88 
90  virtual bool isLocal() const override { return false; }
91 
94  virtual void setUpdateReceived(bool updateReceived);
95 
97  virtual bool updateReceived() const;
98 
102  static const DtSimRemoteEntityNetInterface * isRemoteEntityNetInterface(const
103  DtSimObjectNetInterface * objNetInterface);
104 
105  static DtSimRemoteEntityNetInterface* isRemoteEntityNetInterface(
106  DtSimObjectNetInterface* objNetInterface);
107 
108  static void reflectedObjectUpdateCallbackFunction(DtReflectedObject* obj,
109  void* userData);
110 
112  virtual void updateUUIDIfNeeded();
113 
114  virtual bool wantsToCreatePublisher() const override {
115  return false;
116  }
117 
118  #if DtHLA
119  virtual RTI::ObjectClassHandle objectClassHandle() const override;
121  #endif
122 
123  protected:
124  virtual void initializeRemoteStateComponents();
125 
126  protected:
127 
131 
135  bool myFirstNetworkUpdate = true;
136  };
137 }
Definition: simRemoteEntityNetInterface.h:31
The overall structure of the DtStateData mechanism is: The DtStateData contains a list of double buff...
Definition: stateData.h:398
virtual bool isLocal() const override
This network interface is for local entities.
Definition: simRemoteEntityNetInterface.h:90
Class Description: DtSimObjectNetInterface.
Definition: simObjectNetInterface.h:50
Definition: simEntityNetInterface.h:32
DtReflectedObject * myReflectedObject
Pointer to the VR-Link Reflected Object (may be a DtReflectedEntity, DtReflectedExtAggregate, etc. ).
Definition: simRemoteEntityNetInterface.h:130
DT_DLL_DEBUGDRAWRENDERER void init(makVrv::DtDe &de)
Work function for the plugin initialization.
virtual bool wantsToCreatePublisher() const override
Returns true if this interface wants to create a publisher. This cannot be done in parallel...
Definition: simRemoteEntityNetInterface.h:114
bool myUpdateReceived
Set to true by post-update callback; set to false after update has been processed.
Definition: simRemoteEntityNetInterface.h:134

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)