VR-Forces 4.7 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 
84  virtual bool isValidReflectedObject(DtReflectedEnvironmentProcess*) const;
85 
90  virtual void setReflectedObject(DtReflectedEnvironmentProcess* reflectedObject);
91 
92  virtual bool isLocal() const { return false; }
93 
96  virtual DtString type() const;
97 
100  virtual void setUpdateReceived(bool updateReceived);
101 
103  virtual bool updateReceived() const;
104 
105 #if DtHLA
106 
107  virtual RTI::ObjectClassHandle objectClassHandle() const;
108 #endif
109 
113  static DtSimRemoteEnvironmentalNetInterface* isRemoteEnvironmentalNetInterface(
114  const DtSimObjectNetInterface * objNetInterface);
115 
116  static void reflectedObjectUpdateCallbackFunction(DtReflectedObject* obj,
117  void* userData);
118 
119  static DtSimObjectNetInterface* creator(const DtString& name,
120  DtVrfObject* simObject,
121  DtReaderWriterRegistry* parentRegistry,
122  bool publishObject);
123 
124 protected:
126  virtual void updateLocalGeometry(
127  DtVrfObjectStateRepository* localState);
128 
129  virtual void updateLocalBoundingGeometry(
130  DtVrfObjectStateRepository* localState);
131 
132  virtual void updateLocalObjectState(
133  DtVrfObjectStateRepository* localState);
134 
135  virtual void updateLocalObjectType(
136  DtVrfObjectStateRepository* localState);
137 
138  virtual void updateLocalModelType(
139  DtVrfObjectStateRepository* localState);
140 
142  virtual void updateUUIDIfNeeded();
143 
144 protected:
145 
148 
152 
153 };

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)