VR-Forces 4.7 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;
86  DtSpotReportState& operator=(const DtExternalDataState& rhs)
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 }

Document ID: Generated on Fri Apr 26 21:53:14 EDT 2019 from SVN revision 197883
Copyright © 2005-2019 VT MAK. All Rights Reserved (www.mak.com)