VR-Forces 4.10 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  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 };
DtVrfObject is used to represent any type of simulated object (entities, aggregate, control objects) in a VR-Forces application.
Definition: vrfObject.h:215
const DtSimEnvironmentalNetInterface & operator=(const DtSimEnvironmentalNetInterface &orig)
assignment operator
virtual RTI::ObjectClassHandle objectClassHandle() const =0
Returns the HLA object class handle of the published or reflected object.
virtual void onTick()=0
Depending on the whether or not the entity is local or remote, this will cause the VR-Link network re...
Definition: readerWriterRegistry.h:39
Description: This repository holds all information that is common to all the forms of all entity/aggr...
Definition: vrfObjectStateRepository.h:87
virtual DtString type() const =0
Returns the type of net interface object.
#define DT_DLL_vrfobjcore
This file is used to determine how to build.
Definition: vrfobjcoreDefines.h:24
bool myUpdateReceived
Set to true by post-update callback; set to false after update has been processed.
Definition: simRemoteEnvironmentalNetInterface.h:151
DtReflectedEnvironmentProcess * myReflectedObject
Pointer to the VR-Link Reflected Object.
Definition: simRemoteEnvironmentalNetInterface.h:147
virtual bool init()
override of base class init(), calls create&lt;...&gt;Record() functions
Class Description: DtSimEnvironmentalNetInterface.
Definition: simEnvironmentalNetInterface.h:30
Class Description: DtSimObjectNetInterface.
Definition: simObjectNetInterface.h:37
virtual bool isLocal() const
Is this network interface for a local (true) or remote (false) object? Local network interfaces shoul...
Definition: simRemoteEnvironmentalNetInterface.h:92
File: remEnvNetIf.h.
Definition: simRemoteEnvironmentalNetInterface.h:35

Document ID: Generated on Tue Sep 21 17:42:52 EDT 2021 from SVN revision 234861
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)