VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
spotReportState.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2013 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
12 
28 
29 #pragma once
30 
31 #include <vrfGuiCore/vrfGuiCore.h>
33 #include <matrix/vlVector.h>
34 #include <matrix/vlTaitBryan.h>
37 
38 namespace makVrf
39 {
40  static const char DtThisIsSpotReportData[] = "DtThisIsSpotReportData";
41 
43  {
44  public:
45 
49 
51  virtual ~DtSpotReportState();
52 
53  virtual std::string dataHandlerType() const;
54  virtual std::string visualHandlerType() const;
55 
56  bool addObservedBy(makVrv::DtUniqueID s, double simTime);
57  void removeObservedBy(makVrv::DtUniqueID s);
58  bool observedBy(makVrv::DtUniqueID s) const;
59  const std::map<makVrv::DtUniqueID, double>& observedBy() const
60  {
61  return myObservedBy;
62  }
63 
64  double simulationTimeSent() const
65  {
66  return myDictionary.doubleValue("SimulationTime");
67  }
68 
70  bool isTDLMessageData() const
71  {
72  return (myDictionary.intValue("IS_TDL_MESSAGE_DATA") == 1);
73  }
74 
76  void setName(const std::string& name)
77  {
78  myName = name;
79  }
80 
81  const std::string& name() const
82  {
83  return myName;
84  }
85 
86  bool operator==(const DtSpotReportState&) const;
88  {
89  DtExternalDataState::operator=(rhs);
90 
91  return *this;
92  }
93 
94  std::string displayType() const;
95 
96  public:
97  std::string myName;
98 
100  DtTaitBryan myOrientation;
102  std::vector<DtVector> myLocations;
103  std::map<makVrv::DtUniqueID, double> myObservedBy;
104 
106  unsigned int myDateTimeOfData;
107  };
108 
111 
114 
117 
120  {
121  public:
123  makVrv::DtStateViewCollection<DtSpotReportState>(de, makVrv::DtSimEntryUpdater::AnyUpdates)
124  {
125  }
126  };
127 }
unsigned int myDateTimeOfData
The date/time (UTC) this data is relevant.
Definition: spotReportState.h:106
static const char DtThisIsSpotReportData[]
Definition: spotReportState.h:40
Contains makVrv::DtStateViewCollection class.
const std::string & name() const
Definition: spotReportState.h:81
The IGI Message. Is easily encoded and decoding using stream operators. It also provides validation d...
Definition: DtMessage.h:30
General dictionary of values that state can subclass from to hold information that is considered &quot;ext...
Definition: externalDataState.h:25
DT_DLL_VRFGUICORE makVrv::DtMessage & operator>>(makVrv::DtMessage &msg, DtVrlinkSimulatedAerodromeState &state)
Decode a DtVrlinkSimulatedAerodromeState from a DtMessage.
DtVector myLocation
Definition: spotReportState.h:99
DT_DLL_VRFGUICORE bool operator==(const std::vector< makArchives::DtEnvironmentRecord::DtElevationalConfigurationRecord > &lhs, const std::vector< makArchives::DtEnvironmentRecord::DtElevationalConfigurationRecord > &rhs)
std::vector< DtVector > myLocations
Vector of locations. If single location also in PerceivedLocation.
Definition: spotReportState.h:102
#define DT_DLL_VRFGUICORE
Contains DLL export macros.
Definition: vrfGuiCore.h:25
std::map< makVrv::DtUniqueID, double > myObservedBy
Definition: spotReportState.h:103
DtSpotReportState & operator=(const DtExternalDataState &rhs)
Definition: spotReportState.h:87
makVrv::DtStateView< DtSpotReportState > DtSpotReportStateView
Create a DtStateView templated on DtVrlinkSimulatedEnvironmentState.
Definition: spotReportState.h:116
State view collection for spot report data.
Definition: spotReportState.h:119
double simulationTimeSent() const
Definition: spotReportState.h:64
A DtStateView is a the interface to simulation state information. Users can create DtStateViews for s...
Definition: DtStateView.h:49
A DtStateViewCollection is a collection of DtStateViews of a specific state.
Definition: DtStateViewCollection.h:27
DtSpotReportStateViewCollection(makVrv::DtDe &de)
Definition: spotReportState.h:122
unsigned long long DtUniqueID
Definition: DtUniqueID.h:19
DtTaitBryan myOrientation
Definition: spotReportState.h:100
Definition: spotReportState.h:42
bool isTDLMessageData() const
Returns true if this spot report represents TDL data.
Definition: spotReportState.h:70
DT_DLL_VRFGUICORE makVrv::DtMessage & operator<<(makVrv::DtMessage &msg, const DtVrlinkSimulatedAerodromeState &state)
Encode a DtVrlinkSimulatedAerodromeState into a DtMessage.
The DtDe is the core component of any VR-Vantage application. It owns a DtRenderer, DtDeCommunicator, as well as a DtDisplay and other things.
Definition: DtDe.h:72
std::string myName
Definition: spotReportState.h:97
void setName(const std::string &name)
This will be used to track the name of the spot report.
Definition: spotReportState.h:76
const std::map< makVrv::DtUniqueID, double > & observedBy() const
Definition: spotReportState.h:59

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)