VR-Forces 4.10 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties 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  (myDIGuyAppearance == rhs.myDIGuyAppearance) &&
91  (myDIGuyHeadAppearance == rhs.myDIGuyHeadAppearance) &&
92  (myDIGuyItemAppearance == rhs.myDIGuyItemAppearance) &&
93  (myDIGuyBodyWeight == rhs.myDIGuyBodyWeight) &&
94  (myGuise == rhs.myGuise) &&
95  (myDRAlgorithm == rhs.myDRAlgorithm) &&
96  (myRelativeVelocity == rhs.myRelativeVelocity));
97  }
98 
99  public:
100 
105  DtTaitBryan myOrientation;
109 
110  std::string myDIGuyAppearance;
113  std::string myDIGuyCharacterType;
115  std::string myGuise;
117  std::map<std::string, std::string> myExtendedData;
118  };
119 
122 
125 
128 
131 
134 
137 
138 #ifndef _WIN32
141 #endif
142 }
Contains makVrv::DtStateViewCollection class.
The IGI Message.
Definition: DtMessage.h:30
Contains DtSimObjectEntryCollection class.
DT_DLL_VRFGUICORE makVrv::DtMessage & operator<<(DtMessage &msg, const makVrf::DtNetworkMessageAgentInterface &)
Contains makVrv::DtStateView class.
#define DT_DLL_VRVCORE
Definition: vrvCore.h:20
A DtStateView is a the interface to simulation state information.
Definition: DtStateView.h:49
DtStateView< DtVrlinkSimulatedEntityState > DtVrlinkEntityStateView
Create a DtStateView templated on DtVrlinkEntityState.
Definition: DtEntityState.h:133
A DtStateViewCollection is a collection of DtStateViews of a specific state.
Definition: DtStateViewCollection.h:27
DtStateViewCollection< DtVrlinkSimulatedEntityState > DtVrlinkEntityStateViewCollection
Create a DtStateViewCollection templated on DtVrlinkEntityState.
Definition: DtEntityState.h:136
A DtSimState is the base class for all state objects.
Definition: DtSimState.h:19
DT_DLL_VRFGUICORE makVrv::DtMessage & operator>>(DtMessage &msg, makVrf::DtNetworkMessageAgentInterface &)
Contains makVrv::DtSimState class.
Contains DLL export macros.

Document ID: Generated on Tue Sep 21 17:42:52 EDT 2021 from SVN revision 234861
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)