VR-Forces 4.6 Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
include
vrvCore
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
>
15
#include <
vrvCore/DtSimObjectEntryCollection.h
>
16
#include <
vrvCore/DtStateViewCollection.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
30
struct
DT_DLL_VRVCORE
DtVrlinkSimulatedBaseState
:
public
DtSimState
31
{
32
public
:
34
DtVrlinkSimulatedBaseState
();
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
60
struct
DT_DLL_VRVCORE
DtVrlinkSimulatedEntityState
:
public
DtVrlinkSimulatedBaseState
61
{
62
63
public
:
64
66
DtVrlinkSimulatedEntityState
();
67
69
virtual
~
DtVrlinkSimulatedEntityState
();
70
71
bool
operator!=
(
const
DtVrlinkSimulatedEntityState
& rhs)
const
72
{
73
return
!(*
this
== rhs);
74
}
75
76
bool
operator==
(
const
DtVrlinkSimulatedEntityState
& rhs)
const
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
101
DtVector
myLocation
;
102
DtVector
myVelocity
;
103
DtVector
myRelativeVelocity
;
104
DtVector
myAcceleration
;
105
DtTaitBryan
myOrientation
;
106
DtVector
myRotationalVelocity
;
107
int
myAppearance
;
108
int
myCapabilities
;
109
110
std::string
myDIGuyAppearance
;
111
std::string
myDIGuyHeadAppearance
;
112
std::string
myDIGuyItemAppearance
;
113
std::string
myDIGuyCharacterType
;
114
double
myDIGuyBodyWeight
;
115
std::string
myGuise
;
116
int
myDRAlgorithm
;
117
std::map<std::string, std::string>
myExtendedData
;
118
};
119
121
DT_DLL_VRVCORE
DtMessage
&
operator<<
(
DtMessage
& msg,
const
DtVrlinkSimulatedEntityState
& state );
122
124
DT_DLL_VRVCORE
DtMessage
&
operator>>
(
DtMessage
& msg,
DtVrlinkSimulatedEntityState
& state );
125
127
DT_DLL_VRVCORE
DtMessage
&
operator<<
(
DtMessage
& msg,
const
DtVrlinkSimulatedBaseState
& state );
128
130
DT_DLL_VRVCORE
DtMessage
&
operator>>
(
DtMessage
& msg,
DtVrlinkSimulatedBaseState
& state );
131
133
typedef
DtStateView<DtVrlinkSimulatedEntityState>
DtVrlinkEntityStateView
;
134
136
typedef
DtStateViewCollection<DtVrlinkSimulatedEntityState>
DtVrlinkEntityStateViewCollection
;
137
138
#ifndef _WIN32
139
template
class
DtStateView<DtVrlinkSimulatedEntityState>
;
140
template
class
DtStateViewCollection<DtVrlinkSimulatedEntityState>
;
141
#endif
142
}
Document ID: Generated on Thu Apr 12 03:15:37 EDT 2018 from SVN revision 187986
Copyright © 2005-2018 VT MÄK. All Rights Reserved (
www.mak.com
)