VR-Forces 4.3 Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
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
(myRelativeVelocity == rhs.
myRelativeVelocity
));
91
}
92
93
public
:
94
95
DtVector
myLocation
;
96
DtVector
myVelocity
;
97
DtVector
myRelativeVelocity
;
98
DtVector
myAcceleration
;
99
DtTaitBryan
myOrientation
;
100
DtVector
myRotationalVelocity
;
101
int
myAppearance
;
102
int
myCapabilities
;
103
104
std::string
myDIGuyAppearance
;
105
std::string
myDIGuyHeadAppearance
;
106
std::string
myDIGuyItemAppearance
;
107
std::string
myDIGuyCharacterType
;
108
std::string
myGuise
;
109
int
myDRAlgorithm
;
110
std::map<std::string, std::string>
myExtendedData
;
111
};
112
114
DT_DLL_VRVCORE
DtMessage
&
operator<<
(
DtMessage
& msg,
const
DtVrlinkSimulatedEntityState
& state );
115
117
DT_DLL_VRVCORE
DtMessage
&
operator>>
(
DtMessage
& msg,
DtVrlinkSimulatedEntityState
& state );
118
120
DT_DLL_VRVCORE
DtMessage
&
operator<<
(
DtMessage
& msg,
const
DtVrlinkSimulatedBaseState
& state );
121
123
DT_DLL_VRVCORE
DtMessage
&
operator>>
(
DtMessage
& msg,
DtVrlinkSimulatedBaseState
& state );
124
126
typedef
DtStateView<DtVrlinkSimulatedEntityState>
DtVrlinkEntityStateView
;
127
129
typedef
DtStateViewCollection<DtVrlinkSimulatedEntityState>
DtVrlinkEntityStateViewCollection
;
130
131
#ifndef _WIN32
132
template
class
DtStateView<DtVrlinkSimulatedEntityState>
;
133
template
class
DtStateViewCollection<DtVrlinkSimulatedEntityState>
;
134
#endif
135
}
Document ID: Generated on Wed Mar 11 21:20:57 EDT 2015 from SVN revision 150940
Copyright © 2005-2014 VT MÄK. All Rights Reserved (
www.mak.com
)