VR-Forces 4.1 Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
include
vrvCore
DtEntityState.h
Go to the documentation of this file.
1
2
/******************************************************************************
3
** Copyright (c) 2009 MAK Technologies, Inc.
4
** All rights reserved.
5
******************************************************************************/
6
10
11
#pragma once
12
13
#include <
vrvCore/vrvCore.h
>
14
#include <
vrvCore/DtSimState.h
>
15
#include <
vrvCore/DtStateView.h
>
16
#include <
vrvCore/DtSimObjectEntryCollection.h
>
17
#include <
vrvCore/DtStateViewCollection.h
>
18
19
#include <matrix/vlVector.h>
20
#include <matrix/vlTaitBryan.h>
21
22
#include <string>
23
24
namespace
makVrv
25
{
26
class
DtMessage;
27
31
struct
DT_DLL_VRVCORE
DtVrlinkSimulatedBaseState
:
public
DtSimState
32
{
33
public
:
35
DtVrlinkSimulatedBaseState
();
36
38
virtual
~
DtVrlinkSimulatedBaseState
();
39
40
bool
operator==
(
const
DtVrlinkSimulatedBaseState
& rhs)
const
41
{
42
return
((myMarkingText == rhs.
myMarkingText
) &&
43
(myEntityType == rhs.
myEntityType
) &&
44
(myForce == rhs.
myForce
));
45
}
46
47
bool
operator!=
(
const
DtVrlinkSimulatedBaseState
& rhs)
const
48
{
49
return
!(*
this
== rhs);
50
}
51
52
public
:
53
std::string
myGlobalId
;
54
std::string
myEntityId
;
55
std::string
myMarkingText
;
56
std::string
myEntityType
;
57
std::string
myAttachedToId
;
58
int
myForce
;
59
};
60
61
struct
DT_DLL_VRVCORE
DtVrlinkSimulatedEntityState
:
public
DtVrlinkSimulatedBaseState
62
{
63
64
public
:
65
67
DtVrlinkSimulatedEntityState
();
68
70
virtual
~
DtVrlinkSimulatedEntityState
();
71
72
public
:
73
74
DtVector
myLocation
;
75
DtVector
myVelocity
;
76
DtVector
myRelativeVelocity
;
77
DtVector
myAcceleration
;
78
DtTaitBryan
myOrientation
;
79
DtVector
myRotationalVelocity
;
80
int
myAppearance
;
81
int
myCapabilities
;
82
83
std::string
myDIGuyAppearance
;
84
std::string
myDIGuyCharacter
;
85
std::string
myGuise
;
86
int
myDRAlgorithm
;
87
};
88
90
DT_DLL_VRVCORE
DtMessage
&
operator<<
(
DtMessage
& msg,
const
DtVrlinkSimulatedEntityState
& state );
91
93
DT_DLL_VRVCORE
DtMessage
&
operator>>
(
DtMessage
& msg,
DtVrlinkSimulatedEntityState
& state );
94
96
DT_DLL_VRVCORE
DtMessage
&
operator<<
(
DtMessage
& msg,
const
DtVrlinkSimulatedBaseState
& state );
97
99
DT_DLL_VRVCORE
DtMessage
&
operator>>
(
DtMessage
& msg,
DtVrlinkSimulatedBaseState
& state );
100
102
typedef
DtStateView<DtVrlinkSimulatedEntityState>
DtVrlinkEntityStateView
;
103
105
typedef
DtStateViewCollection<DtVrlinkSimulatedEntityState>
DtVrlinkEntityStateViewCollection
;
106
107
#ifndef _WIN32
108
template
class
DtStateView<DtVrlinkSimulatedEntityState>
;
109
template
class
DtStateViewCollection<DtVrlinkSimulatedEntityState>
;
110
#endif
111
}
Document ID: Generated on Tue Jan 29 18:21:16 EST 2013 from SVN revision 123193
Copyright © 2005-2013 VT MÄK Inc. All Rights Reserved (
www.mak.com
)