VR-Forces 4.8 Class Documentation
 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>
36 
37 namespace makVrf
38 {
39  static const char DtThisIsSpotReportData[] = "DtThisIsSpotReportData";
40 
42  {
43  public:
44 
48 
50  virtual ~DtSpotReportState();
51 
52  virtual std::string dataHandlerType() const;
53  virtual std::string visualHandlerType() const;
54 
55  bool addObservedBy(makVrv::DtUniqueID s);
56  void removeObservedBy(makVrv::DtUniqueID s);
57  bool observedBy(makVrv::DtUniqueID s) const;
58  const std::set<makVrv::DtUniqueID>& observedBy() const
59  {
60  return myObservedBy;
61  }
62 
63  double simulationTimeSent() const
64  {
65  return myDictionary.doubleValue("SimulationTime");
66  }
67 
69  bool isTDLMessageData() const
70  {
71  return (myDictionary.intValue("IS_TDL_MESSAGE_DATA") == 1);
72  }
73 
75  void setName(const std::string& name)
76  {
77  myName = name;
78  }
79 
80  const std::string& name() const
81  {
82  return myName;
83  }
84 
85  bool operator==(const DtSpotReportState&) const;
87  {
88  DtExternalDataState::operator=(rhs);
89 
90  return *this;
91  }
92 
93  std::string displayType() const;
94 
95  public:
96  std::string myName;
97 
99  DtTaitBryan myOrientation;
101  std::vector<DtVector> myLocations;
102  std::set<makVrv::DtUniqueID> myObservedBy;
103 
105  unsigned int myDateTimeOfData;
106  };
107 
110 
113 
116 
119  {
120  public:
122  makVrv::DtStateViewCollection<DtSpotReportState>(de, makVrv::DtSimEntryUpdater::AnyUpdates)
123  {
124  }
125  };
126 }
unsigned int myDateTimeOfData
The date/time (UTC) this data is relevant.
Definition: spotReportState.h:105
static const char DtThisIsSpotReportData[]
Definition: spotReportState.h:39
Contains makVrv::DtStateViewCollection class.
const std::string & name() const
Definition: spotReportState.h:80
The IGI Message.
Definition: DtMessage.h:33
DT_DLL_VRFGUICORE makVrv::DtMessage & operator<<(makVrv::DtMessage &msg, const DtVrlinkNetworkUpdateSimulatedAggregateState &state)
Encode a DtVrlinkSimulatedEnvironmentState into a DtMessage.
General dictionary of values that state can subclass from to hold information that is considered &quot;ext...
Definition: externalDataState.h:25
DtVector myLocation
Definition: spotReportState.h:98
std::vector< DtVector > myLocations
Vector of locations. If single location also in PerceivedLocation.
Definition: spotReportState.h:101
DT_DLL_terrainCS bool operator==(const DtDegMinSec &lhs, const DtDegMinSec &rhs)
#define DT_DLL_VRFGUICORE
Contains DLL export macros.
Definition: vrfGuiCore.h:25
DtSpotReportState & operator=(const DtExternalDataState &rhs)
Definition: spotReportState.h:86
makVrv::DtStateView< DtSpotReportState > DtSpotReportStateView
Create a DtStateView templated on DtVrlinkSimulatedEnvironmentState.
Definition: spotReportState.h:115
std::set< makVrv::DtUniqueID > myObservedBy
Definition: spotReportState.h:102
State view collection for spot report data.
Definition: spotReportState.h:118
double simulationTimeSent() const
Definition: spotReportState.h:63
A DtStateView is a the interface to simulation state information.
Definition: DtStateView.h:52
A DtStateViewCollection is a collection of DtStateViews of a specific state.
Definition: DtStateViewCollection.h:27
DtSpotReportStateViewCollection(makVrv::DtDe &de)
Definition: spotReportState.h:121
unsigned long long DtUniqueID
Definition: DtUniqueID.h:22
const std::set< makVrv::DtUniqueID > & observedBy() const
Definition: spotReportState.h:58
DtTaitBryan myOrientation
Definition: spotReportState.h:99
Definition: spotReportState.h:41
bool isTDLMessageData() const
Returns true if this spot report represents TDL data.
Definition: spotReportState.h:69
The DtDe is the core component of any VR-Vantage application.
Definition: DtDe.h:69
std::string myName
Definition: spotReportState.h:96
void setName(const std::string &name)
This will be used to track the name of the spot report.
Definition: spotReportState.h:75
DT_DLL_VRFGUICORE makVrv::DtMessage & operator>>(makVrv::DtMessage &msg, DtVrlinkSimulatedAggregateState &state)
Decode a DtVrlinkSimulatedEnvironmentState from a DtMessage.

Document ID: Generated on Thu Aug 27 10:56:05 EDT 2020 from SVN revision 217100
Copyright © 2005-2020 MAK Technologies. All Rights Reserved (www.mak.com)