VR-Forces 5.0.1 Developer's Guide
 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) 2021 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 <vlpi/patchIdentifier.h>
22 
23 #include <string>
24 
25 namespace makVrv
26 {
27 
28  class DtMessage;
29 
34  {
35  public:
36 
39 
41  virtual ~DtVrlinkSimulatedBaseState();
42 
43  bool operator==(const DtVrlinkSimulatedBaseState& rhs) const
44  {
45  return ((myMarkingText == rhs.myMarkingText) &&
46  (myEntityType == rhs.myEntityType) &&
47  (myForce == rhs.myForce));
48  }
49 
50  bool operator!=(const DtVrlinkSimulatedBaseState& rhs) const
51  {
52  return !(*this == rhs);
53  }
54 
55  public:
56  std::string myGlobalId;
57  std::string myEntityId;
58  std::string myMarkingText;
59  std::string myEntityType;
60  std::string myAttachedToId;
61  int myForce;
62  };
63 
64 
66  {
67 
68  public:
69 
72 
75 
77  {
78  return !(*this == rhs);
79  }
80 
82  {
83  if (!DtVrlinkSimulatedBaseState::operator==(rhs))
84  {
85  return false;
86  }
87 
88  return ( myLocation == rhs.myLocation
89  && myVelocity == rhs.myVelocity
90  && myAcceleration == rhs.myAcceleration
91  && myOrientation == rhs.myOrientation
92  && myRotationalVelocity == rhs.myRotationalVelocity
93  && myAppearance == rhs.myAppearance
94  && myCapabilities == rhs.myCapabilities
95  && myDIGuyAppearance == rhs.myDIGuyAppearance
96  && myDIGuyHeadAppearance == rhs.myDIGuyHeadAppearance
97  && myDIGuyItemAppearance == rhs.myDIGuyItemAppearance
98  && myDIGuyPrimaryUnitPatch == rhs.myDIGuyPrimaryUnitPatch
99  && myDIGuySecondaryUnitPatch == rhs.myDIGuySecondaryUnitPatch
100  && myDIGuyRankPatch == rhs.myDIGuyRankPatch
101  && myDIGuyCharacterName == rhs.myDIGuyCharacterName
102  && myDIGuyBodyWeight == rhs.myDIGuyBodyWeight
103  && myGuise == rhs.myGuise
104  && myDRAlgorithm == rhs.myDRAlgorithm
105  && myRelativeVelocity == rhs.myRelativeVelocity );
106  }
107 
108  public:
109 
114  DtTaitBryan myOrientation;
118 
119  std::string myDIGuyAppearance;
122  std::string myDIGuyCharacterType;
123  DtPatchIdentifier myDIGuyPrimaryUnitPatch;
124  DtPatchIdentifier myDIGuySecondaryUnitPatch;
125  DtPatchIdentifier myDIGuyRankPatch;
126  std::string myDIGuyCharacterName;
128 
129  std::string myGuise;
131  std::map<std::string, std::string> myExtendedData;
132  };
133 
136 
139 
142 
145 
148 
151 
152 #ifndef _WIN32
155 #endif
156 }
Contains makVrv::DtStateViewCollection class.
The IGI Message. Is easily encoded and decoding using stream operators. It also provides validation d...
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. Users can create DtStateViews for s...
Definition: DtStateView.h:49
DtStateView< DtVrlinkSimulatedEntityState > DtVrlinkEntityStateView
Create a DtStateView templated on DtVrlinkEntityState.
Definition: DtEntityState.h:147
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:150
A DtSimState is the base class for all state objects. Derived instances of DtSimState will be created...
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 Mon Jun 20 00:38:30 EDT 2022 from SVN revision 244029
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)