VR-Forces Development_Version Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
DtEntityState.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2014 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
9 
10 #pragma once
11 
12 #include <vrvCore/vrvCore.h>
13 #include <vrvCore/DtSimState.h>
14 #include <vrvCore/DtStateView.h>
17 
18 #include <matrix/vlVector.h>
19 #include <matrix/vlTaitBryan.h>
20 
21 #include <string>
22 
23 namespace makVrv
24 {
25  class DtMessage;
26 
31  {
32  public:
35 
37  virtual ~DtVrlinkSimulatedBaseState();
38 
39  bool operator==(const DtVrlinkSimulatedBaseState& rhs) const
40  {
41  return ((myMarkingText == rhs.myMarkingText) &&
42  (myEntityType == rhs.myEntityType) &&
43  (myForce == rhs.myForce));
44  }
45 
46  bool operator!=(const DtVrlinkSimulatedBaseState& rhs) const
47  {
48  return !(*this == rhs);
49  }
50 
51  public:
52  std::string myGlobalId;
53  std::string myEntityId;
54  std::string myMarkingText;
55  std::string myEntityType;
56  std::string myAttachedToId;
57  int myForce;
58  };
59 
61  {
62 
63  public:
64 
67 
70 
72  {
73  return !(*this == rhs);
74  }
75 
77  {
78  if (!DtVrlinkSimulatedBaseState::operator==(rhs))
79  {
80  return false;
81  }
82 
83  return ((myLocation == rhs.myLocation) &&
84  (myVelocity == rhs.myVelocity) &&
85  (myAcceleration == rhs.myAcceleration) &&
86  (myOrientation == rhs.myOrientation) &&
87  (myRotationalVelocity == rhs.myRotationalVelocity) &&
88  (myAppearance == rhs.myAppearance) &&
89  (myCapabilities == rhs.myCapabilities) &&
90  (myRelativeVelocity == rhs.myRelativeVelocity));
91  }
92 
93  public:
94 
99  DtTaitBryan myOrientation;
103 
104  std::string myDIGuyAppearance;
107  std::string myDIGuyCharacterType;
108  std::string myGuise;
110  std::map<std::string, std::string> myExtendedData;
111  };
112 
115 
118 
121 
124 
127 
130 
131 #ifndef _WIN32
134 #endif
135 }

Document ID: Generated on Tue Mar 8 22:13:38 EST 2016 from SVN revision 162938
Copyright © 2005-2015 VT MÄK. All Rights Reserved (www.mak.com)