VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
simLocalControlObjectNetInterface.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2014 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
14 
15 #pragma once
16 
19 #include <vlutil/vlString.h>
20 #include <vlutil/vlList.h>
21 #include <vl/globalObjectDesignator.h>
23 
25 class DtObjectPublisher;
26 
34 namespace makVrf
35 {
36  class DtEnvironmentalStateComponent;
37  class DtEnvironmentalLocationStateComponent;
38  class DtVrfStateComponent;
39  class DtVrfGeometryStateComponent;
40 }
41 
42 namespace makVrf
43 {
45  {
46  private:
50  const DtSimLocalControlObjectNetInterface & operator=(const
52 
53  public:
54 
57  bool publishObject = true);
58 
61 
65  virtual void onTick();
66 
68  virtual void forceUpdate();
69 
71  virtual DtControlObjectRepository* controlObjectNetworkState() const;
72 
74  virtual void updatePublisher();
75 
78  virtual bool createPublisher(const DtEntityIdentifier& id = DtEntityIdentifier::nullId());
79 
82  virtual void destroyPublisher();
83 
85  virtual DtObjectPublisher* publisher();
86 
96  virtual bool setEntityPublisher(DtVrfExtControlObjectPublisher* publisher);
97 
99  virtual DtVrfExtControlObjectPublisher* controlObjectPublisher() const;
100 
102  virtual void updateUuid();
103 
105  virtual DtString type() const;
106 
107  static DtSimObjectNetInterface* creator(DtStateData* vrfObject, DtVrlinkNetworkInterface* mgr,
108  bool publishObject);
109 
113  static void SetProfilePdus(bool onOf, double pduTimeCheck = 1.0, int numberOfPacketsOverTime = 0);
114 
115  protected:
118  virtual bool updateGeometry();
119 
121  virtual bool updateBoundingGeometry();
122 
124  virtual bool updateObjectState();
125 
126  virtual bool updateEnvModelType();
127 
130  virtual bool updateVrfDataAsSeenByRemote();
131 
132  virtual DtEnvironmentProcessRepository* _createSR() const;
133 
134  virtual const makVrf::DtEnvironmentalStateComponent* environmentalStateComponent();
135  virtual const makVrf::DtEnvironmentalLocationStateComponent* environmentalLocationStateComponent();
136  virtual const makVrf::DtVrfStateComponent* vrfStateComponent();
137  virtual const makVrf::DtVrfGeometryStateComponent* vrfGeometryStateComponent();
138  virtual void firstTimeInitialize();
139 
140  virtual bool wantsToCreatePublisher() const;
141 
142  virtual DtVrfExtControlObjectPublisher* _createVrfExtPublisher();
143 
144  protected:
145 
147 
149 
150  std::vector<char> myPropertyBuffer;
160  int myNumberOfPdusSent = 0;
161  double myFirstTimePduSent = 0;
162 
163 #if DtHLA
164  int myNumberOfAttributesPdusSent = 0;
165  double myFirstTimeAttributePduSent = 0;
166 #endif
167  };
168 }
DtVector myLastParentPosition
Definition: simLocalControlObjectNetInterface.h:159
Contains the DtSimEnvironmentalModelType class declaration.
bool myPublisherUserSupplied
Definition: simLocalControlObjectNetInterface.h:146
bool myFirstTimeInitialize
Definition: simLocalControlObjectNetInterface.h:158
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: vrfGeometryStateComponent.h:54
std::vector< char > myPropertyBuffer
Definition: simLocalControlObjectNetInterface.h:150
const makVrf::DtVrfGeometryStateComponent * myVrfGeometryStateComponent
Definition: simLocalControlObjectNetInterface.h:157
DtControlObjectRepository class extends the DtControlObjectBaseRepository to be able to handle extend...
Definition: controlObjectRepository.h:27
Definition: simLocalControlObjectNetInterface.h:44
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:62
const makVrf::DtEnvironmentalLocationStateComponent * myEnvironmentalLocationStateComponent
Definition: simLocalControlObjectNetInterface.h:155
The overall structure of the DtStateData mechanism is: The DtStateData contains a list of double buff...
Definition: stateData.h:339
const makVrf::DtVrfStateComponent * myVrfStateComponent
Definition: simLocalControlObjectNetInterface.h:156
Class Description: DtSimObjectNetInterface.
Definition: simObjectNetInterface.h:50
bool myNeedsFullUpdate
Definition: simLocalControlObjectNetInterface.h:153
DtVrfExtControlObjectPublisher * myControlObjectPublisher
Definition: simLocalControlObjectNetInterface.h:148
This class extends DtVrfControlObjectPublisher to support the publishing of VR-Forces state propertie...
Definition: vrfExtControlObjectPublisher.h:16
const makVrf::DtEnvironmentalStateComponent * myEnvironmentalStateComponent
Definition: simLocalControlObjectNetInterface.h:154
DtClock myClock
Definition: simLocalControlObjectNetInterface.h:151
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: environmentalLocationStateComponent.h:44
Definition: simLocalEnvironmentalNetInterface.h:40
DtTime myLastTimeUpdated
Definition: simLocalControlObjectNetInterface.h:152
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: environmentalStateComponent.h:87

Document ID: Generated on Wed Mar 27 22:49:11 EDT 2024 from SVN revision 264633
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)