VR-Forces 4.6 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
simRemoteEnvironmentalNetInterface.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2015 MaK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
14 
15 #pragma once
16 
17 #include <vl/environmentProcessRepository.h>
18 #include <vl/reflectedEnvironmentProcess.h>
19 #include <vlpi/disEnums.h>
20 
23 
33 
37 {
38 protected:
41 
42 public:
43 
46  DtVrfObject * simObject,
47  DtReaderWriterRegistry * parentRegistry = 0,
48  bool publishObject = true);
49 
53  DtReaderWriterRegistry* parentRegistry = 0);
54 
58 
61 
64  virtual bool init();
65 
67  virtual void onTick();
68 
71  virtual void updateFromReflectedObject();
72 
75  virtual DtReflectedEnvironmentProcess* reflectedObject() const;
76 
79  virtual void setupFromNetworkRepository();
80 
85  virtual void setReflectedObject(DtReflectedEnvironmentProcess* reflectedObject);
86 
87  virtual bool isLocal() const { return false; }
88 
91  virtual DtString type() const;
92 
95  virtual void setUpdateReceived(bool updateReceived);
96 
98  virtual bool updateReceived() const;
99 
100 #if DtHLA
101 
102  virtual RTI::ObjectClassHandle objectClassHandle() const;
103 #endif
104 
108  static DtSimRemoteEnvironmentalNetInterface* isRemoteEnvironmentalNetInterface(
109  const DtSimObjectNetInterface * objNetInterface);
110 
111  static void reflectedObjectUpdateCallbackFunction(DtReflectedObject* obj,
112  void* userData);
113 
114  static DtSimObjectNetInterface* creator(const DtString& name,
115  DtVrfObject* simObject,
116  DtReaderWriterRegistry* parentRegistry,
117  bool publishObject);
118 
119 protected:
121  virtual void updateLocalGeometry(
122  DtVrfObjectStateRepository* localState);
123 
124  virtual void updateLocalBoundingGeometry(
125  DtVrfObjectStateRepository* localState);
126 
127  virtual void updateLocalObjectState(
128  DtVrfObjectStateRepository* localState);
129 
130  virtual void updateLocalObjectType(
131  DtVrfObjectStateRepository* localState);
132 
133  virtual void updateLocalModelType(
134  DtVrfObjectStateRepository* localState);
135 
137  virtual void updateUUIDIfNeeded();
138 
139 protected:
140 
143 
147 
148 };

Document ID: Generated on Thu Apr 12 03:15:37 EDT 2018 from SVN revision 187986
Copyright © 2005-2018 VT MÄK. All Rights Reserved (www.mak.com)