VR-Forces 5.0.1 Developer's Guide
 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) 2019 MaK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
14 
15 #pragma once
16 
18 #include <vl/environmentProcessRepository.h>
19 #include <vl/reflectedEnvironmentProcess.h>
20 #include <vlpi/disEnums.h>
21 
23 
33 namespace makVrf
34 {
35  class DtVrfStateComponent;
36  class DtStatePropertiesStateComponent;
37 
40  {
41  private:
44 
47 
49  const DtSimRemoteEnvironmentalNetInterface& operator=(
51 
52  public:
53 
56  DtStateData* simObject, DtVrlinkNetworkInterface*, bool publishObject = true);
57 
60 
63  virtual bool init();
64 
66  virtual void onTick();
67 
70  virtual void updateFromReflectedObject();
71 
74  virtual DtReflectedEnvironmentProcess* reflectedObject() const;
75 
78  virtual void setupFromNetworkRepository();
79 
83  virtual bool isValidReflectedObject(DtReflectedEnvironmentProcess*) const;
84 
89  virtual void setReflectedObject(DtReflectedEnvironmentProcess* reflectedObject);
90  virtual void clearReflectedObject();
91  virtual void toBeRemoved();
92 
93  virtual bool isLocal() const { return false; }
94 
97  virtual DtString type() const;
98 
101  virtual void setUpdateReceived(bool updateReceived);
102 
104  virtual bool updateReceived() const;
105 
106  #if DtHLA
107  virtual RTI::ObjectClassHandle objectClassHandle() const;
109  #endif
110 
114  static DtSimRemoteEnvironmentalNetInterface* isRemoteEnvironmentalNetInterface(
115  const DtSimObjectNetInterface * objNetInterface);
116 
117  static void reflectedObjectUpdateCallbackFunction(DtReflectedObject* obj,
118  void* userData);
119 
120  static DtSimObjectNetInterface* creator(
121  DtStateData* simObject, DtVrlinkNetworkInterface*, bool publishObject);
122 
123  virtual bool wantsToCreatePublisher() const
124  {
125  return false;
126  }
127 
128  protected:
130  virtual void updateLocalGeometry();
131 
132  virtual void updateLocalBoundingGeometry();
133 
134  virtual void updateLocalObjectState();
135 
136  virtual void updateLocalObjectType();
137 
138  virtual void updateLocalModelType();
139 
141  virtual void updateUUIDIfNeeded();
142 
143  virtual DtVrfStateComponent* getOrCreateVrfStateComponent(DtControlObjectRepository* netState);
144  virtual DtStatePropertiesStateComponent* getOrCreateStatePropertiesStateComponent(DtControlObjectRepository* netState);
145  virtual void initializeRemoteStateComponents();
146 
147  protected:
148 
151 
155 
156  };
157 }
1) Define the interface class that will be used to represent the next and curent frames. The UNDEFINED_ macros are convenience macros that will define methods that throw exceptions (until they are implemented)
Definition: statePropertiesStateComponent.h:93
virtual bool isLocal() const
Is this network interface for a local (true) or remote (false) object? Local network interfaces shoul...
Definition: simRemoteEnvironmentalNetInterface.h:93
DtReflectedEnvironmentProcess * myReflectedObject
Pointer to the VR-Link Reflected Object.
Definition: simRemoteEnvironmentalNetInterface.h:150
Definition: simRemoteEnvironmentalNetInterface.h:38
DtControlObjectRepository class extends the DtControlObjectBaseRepository to be able to handle extend...
Definition: controlObjectRepository.h:27
bool myUpdateReceived
Set to true by post-update callback; set to false after update has been processed.
Definition: simRemoteEnvironmentalNetInterface.h:154
1) Define the interface class that will be used to represent the next and curent frames. The UNDEFINED_ macros are convenience macros that will define methods that throw exceptions (until they are implemented)
Definition: vrfStateComponent.h:55
The overall structure of the DtStateData mechanism is: The DtStateData contains a list of double buff...
Definition: stateData.h:336
Class Description: DtSimObjectNetInterface.
Definition: simObjectNetInterface.h:48
virtual bool wantsToCreatePublisher() const
Returns true if this interface wants to create a publisher. This cannot be done in parallel...
Definition: simRemoteEnvironmentalNetInterface.h:123
Definition: simEnvironmentalNetInterface.h:33
DT_DLL_DEBUGDRAWRENDERER void init(makVrv::DtDe &de)
Work function for the plugin initialization.

Document ID: Generated on Mon Jun 20 00:38:30 EDT 2022 from SVN revision 244029
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)