VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
aerodromeLocalNetInterface.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2023 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
6 #pragma once
7 
10 
13 struct DtRunwayStateData;
15 
16 namespace makVrf
17 {
18  class DtAerodromeStateComponent;
19  class DtVrfStateComponent;
20 
26 
28  {
29  private:
32 
35 
38  orig);
39 
40  public:
41 
46  DtAerodromeLocalNetInterface(DtStateData * simObject, DtVrlinkNetworkInterface* objectManager, bool publishObject = true);
47 
50 
53  virtual DtString type() const;
54 
55  static DtSimObjectNetInterface * creator(
56  DtStateData* vrfObject, DtVrlinkNetworkInterface* mgr, bool publishObject);
57 
58  virtual bool isUnit() const { return false; }
59  virtual bool isEntity() const { return false; }
60  virtual bool isEnvironmental() const {return false; }
61  virtual bool init (const DtEntityIdentifier& id = DtEntityIdentifier()) override;
62 
63  virtual bool isLocal() const
64  {
65  return true;
66  }
67 
68  virtual bool publishObject() const
69  {
70  return myPublishObject;
71  }
72 
73  virtual bool wantsToCreatePublisher() const;
74 
75  virtual void onTick();
76 
77  #if DtHLA
78  virtual RTI::ObjectClassHandle objectClassHandle() const override;
79  #endif
80 
81  protected:
82  virtual bool createPublisher(const DtAerodromeStateComponent*);
83  virtual void updatePublisher(DtObjectPublisher*, const DtAerodromeStateComponent*);
84  virtual void updateRunway(const DtRunwayStateData&, DtRunwayStateRepository*);
85  virtual void updateAerodrome(const DtAerodromeStateComponent* data, DtAerodromeStateRepository*);
86  virtual void updateVrfDataAsSeenByRemote(DtAerodromeStateRepository*);
87  virtual const DtVrfStateComponent* vrfStateComponent();
88 
89  virtual void updatePublisher();
90 
91  virtual const DtAerodromeStateComponent* aerodromeStateComponent();
92  virtual void firstTimeInitialize();
93 
94  protected:
96  std::vector<DtRunwayStateRepository*> myRunways;
98 
102  };
103 }
Definition: vrfAerodromePublisher.h:21
virtual bool isLocal() const
Is this network interface for a local (true) or remote (false) object? Local network interfaces shoul...
Definition: aerodromeLocalNetInterface.h:63
bool myFirstTimeInitialize
Definition: aerodromeLocalNetInterface.h:101
virtual bool publishObject() const
Definition: aerodromeLocalNetInterface.h:68
virtual bool isUnit() const
Is this network interface for a local (true) or remote (false) object? Deriving network interfaces sh...
Definition: aerodromeLocalNetInterface.h:58
virtual bool isEntity() const
Definition: aerodromeLocalNetInterface.h:59
bool myPublishObject
Definition: aerodromeLocalNetInterface.h:100
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
DtVrfAerodromePublisher * myPublisher
Definition: aerodromeLocalNetInterface.h:99
const DtAerodromeStateComponent * myAerodromeComponent
Definition: aerodromeLocalNetInterface.h:95
Class Description: DtSimObjectNetInterface.
Definition: simObjectNetInterface.h:50
std::vector< DtRunwayStateRepository * > myRunways
Definition: aerodromeLocalNetInterface.h:96
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: aerodromeStateComponent.h:20
const DtVrfStateComponent * myVrfStateComponent
Definition: aerodromeLocalNetInterface.h:97
DT_DLL_DEBUGDRAWRENDERER void init(makVrv::DtDe &de)
Work function for the plugin initialization.
Class Description: DtAerodromeLocalNetInterface.
Definition: aerodromeLocalNetInterface.h:27
virtual bool isEnvironmental() const
Definition: aerodromeLocalNetInterface.h:60
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)