VR-Forces 4.5 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator 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 
103  static DtSimRemoteEnvironmentalNetInterface* isRemoteEnvironmentalNetInterface(
104  const DtSimObjectNetInterface * objNetInterface);
105 
106  static void reflectedObjectUpdateCallbackFunction(DtReflectedObject* obj,
107  void* userData);
108 
109  static DtSimObjectNetInterface* creator(const DtString& name,
110  DtVrfObject* simObject,
111  DtReaderWriterRegistry* parentRegistry,
112  bool publishObject);
113 
114 protected:
116  virtual void updateLocalGeometry(
117  DtVrfObjectStateRepository* localState);
118 
119  virtual void updateLocalBoundingGeometry(
120  DtVrfObjectStateRepository* localState);
121 
122  virtual void updateLocalObjectState(
123  DtVrfObjectStateRepository* localState);
124 
125  virtual void updateLocalObjectType(
126  DtVrfObjectStateRepository* localState);
127 
128  virtual void updateLocalModelType(
129  DtVrfObjectStateRepository* localState);
130 
132  virtual void updateUUIDIfNeeded();
133 
134 protected:
135 
138 
142 
143 };

Document ID: Generated on Thu Mar 23 18:54:12 EDT 2017 from SVN revision 174804
Copyright © 2005-2017 VT MÄK. All Rights Reserved (www.mak.com)