VR-Forces 4.3 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) 2000 MaK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 /*******************************************************************************
6 ** $RCSfile: remEnvNetIf.h,v $ $Revision: 1.10 $ $State: Exp $
7 *******************************************************************************/
8 
11 
17 
18 
19 #ifndef DtSimRemoteEnvironmentalNetInterface_H_
20 #define DtSimRemoteEnvironmentalNetInterface_H_
21 
22 #include <vl/environmentProcessRepository.h>
23 #include <vl/reflectedEnvironmentProcess.h>
24 #include <vlpi/disEnums.h>
25 
28 
38 
42 {
43 protected:
46 
47 public:
48 
51  DtVrfObject * simObject,
52  DtReaderWriterRegistry * parentRegistry = 0,
53  bool publishObject = true);
54 
58  DtReaderWriterRegistry* parentRegistry = 0);
59 
63 
66 
69  virtual bool init();
70 
72  virtual void onTick();
73 
76  virtual void updateFromReflectedObject();
77 
80  virtual DtReflectedEnvironmentProcess* reflectedObject() const;
81 
84  virtual void setupFromNetworkRepository();
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 
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 
136 protected:
137 
139  DtReflectedEnvironmentProcess* myReflectedObject;
140 
144 
145 };
146 
147 #endif

Document ID: Generated on Wed Mar 11 21:20:57 EDT 2015 from SVN revision 150940
Copyright © 2005-2014 VT MÄK. All Rights Reserved (www.mak.com)