VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
aerodromeRemoteNetInterface.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2020 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
6 #pragma once
7 
10 
13 struct DtRunwayStateData;
15 class DtReflectedObject;
16 
17 namespace makVrf
18 {
19  class DtAerodromeStateComponent;
20  class DtVrfStateComponent;
21  class DtStatePropertiesStateComponent;
22 
29  {
30  private:
33 
36 
39  orig);
40 
41  public:
42 
48  bool publishObject = true);
49 
52 
55  virtual DtString type() const;
56 
57  static DtSimObjectNetInterface * creator(
58  DtStateData* vrfObject, DtVrlinkNetworkInterface* mgr, bool publishObject);
59 
60  virtual bool wantsToCreatePublisher() const
61  {
62  return false;
63  }
64 
65  virtual void onTick() override;
66 
67  virtual bool isUnit() const override
68  {
69  return false;
70  }
71 
72  virtual bool isEntity() const override
73  {
74  return false;
75  }
76 
77  virtual bool isEnvironmental() const override
78  {
79  return false;
80  }
81 
82  virtual bool isLocal() const { return false; }
83 
84  virtual void setReflectedObject(DtReflectedObject* reflectedObject);
85  virtual void clearReflectedObject();
86  virtual void toBeRemoved();
87 
88  #if DtHLA
89  virtual RTI::ObjectClassHandle objectClassHandle() const;
91  #endif
92 
95  virtual void setUpdateReceived(bool updateReceived);
96 
98  virtual bool updateReceived() const;
99 
100  protected:
101  static void reflectedObjectUpdateCallbackFunction(DtReflectedObject* obj,
102  void* userData);
103 
104  virtual void setupFromNetworkRepository();
105  virtual void initializeRemoteStateComponents();
106  virtual void updateFromReflectedObject();
107  virtual DtVrfStateComponent* getOrCreateVrfStateComponent();
108  virtual void updateAerodromeInformation();
109  virtual void updateRunwayInformation();
110  virtual void updateRunwayStateData(DtRunwayStateData&, DtRunwayStateRepository*);
111  virtual void updateVrfStateInformation();
112  virtual DtStatePropertiesStateComponent* getOrCreateStatePropertiesStateComponent(DtExtAerodromeStateRepository* netState);
113 
114  protected:
117  bool myUpdateReceived = false;
118  };
119 }
Class Description: DtAerodromeRemoteNetInterface.
Definition: aerodromeRemoteNetInterface.h:28
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 isUnit() const override
Is this network interface for a local (true) or remote (false) object? Deriving network interfaces sh...
Definition: aerodromeRemoteNetInterface.h:67
virtual bool isLocal() const
Is this network interface for a local (true) or remote (false) object? Local network interfaces shoul...
Definition: aerodromeRemoteNetInterface.h:82
DtReflectedObject * myReflectedObject
Definition: aerodromeRemoteNetInterface.h:116
virtual bool wantsToCreatePublisher() const
Returns true if this interface wants to create a publisher. This cannot be done in parallel...
Definition: aerodromeRemoteNetInterface.h:60
virtual bool isEnvironmental() const override
Definition: aerodromeRemoteNetInterface.h:77
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:66
The overall structure of the DtStateData mechanism is: The DtStateData contains a list of double buff...
Definition: stateData.h:339
Class Description: DtSimObjectNetInterface.
Definition: simObjectNetInterface.h:50
virtual bool isEntity() const override
Definition: aerodromeRemoteNetInterface.h:72
DtExtAerodromeStateRepository * myAerodrome
Definition: aerodromeRemoteNetInterface.h:115
DtExtAerodromeStateRepository class extends the DtExtAerodromeBaseStateRepository to be able to handl...
Definition: extAerodromeStateRepository.h:27
Definition: aerodromeStateData.h:355

Document ID: Generated on Tue Sep 24 19:28:17 EDT 2024 from SVN revision 269799
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)