VR-Link API Documentation for DIS
Home
Namespaces
Classes
Files
Examples
Libraries
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
include
vl
entityStateEncoder.h
Go to the documentation of this file.
1
/****************************************************************************
2
* Copyright (c) 2014 VT MAK
3
* All rights reserved.
4
****************************************************************************/
5
9
10
#pragma once
11
12
#if DtDIS
13
14
#include <
vl/stateEncoder.h
>
15
#include <
vl/entityStatePdu.h
>
16
#include <
vl/entityStateRepository.h
>
17
18
#define DtStateChange_POSITION 0x0100
19
#define DtStateChange_ORIENTATION 0x0200
20
#define DtStateChange_DR_ALG 0x0400
21
#define DtStateChange_DR_OTHER 0x0800
22
#define DtStateChange_APPEARANCE 0x1000
23
#define DtStateChange_ART_PARTS 0x2000
24
#define DtStateChange_ATT_PARTS 0x4000
25
#define DtStateChange_VP_RECS 0x8000
26
27
31
class
DT_DLL_VL
DtEntityStateEncoder
:
public
DtStateEncoder
32
{
33
public
:
34
36
DtEntityStateEncoder
();
37
39
DtEntityStateEncoder
(
const
DtEntityStateEncoder
& orig );
40
42
virtual
~
DtEntityStateEncoder
();
43
45
DtEntityStateEncoder
&
operator =
(
const
DtEntityStateEncoder
& orig );
46
50
virtual
DtEntityStatePdu
* stateMsg(
51
const
DtEntityStateRepository
& stateRep,
52
const
DtEntityStateRepository
& asSeenByRemote );
53
54
DtCLONE_ENCODER
(
DtEntityStateEncoder
);
55
56
protected
:
57
60
virtual
bool
sendNeeded(
const
DtEntityStateRepository
& stateRep,
61
const
DtEntityStateRepository
& asSeenByRemote );
62
64
virtual
void
fillOut(
const
DtEntityStateRepository
& stateRep,
65
const
DtEntityStateRepository
& asSeenByRemote,
66
DtEntityStatePdu
* pdu );
67
69
virtual
bool
artPartsNeedUpdating(
70
const
DtEntityStateRepository
& stateRep,
71
const
DtEntityStateRepository
& asSeenByRemote );
72
74
virtual
bool
attPartsNeedUpdating(
75
const
DtEntityStateRepository
& stateRep,
76
const
DtEntityStateRepository
& asSeenByRemote );
77
79
virtual
bool
variableDatumNeedsUpdating(
80
const
DtEntityStateRepository
& stateRep,
81
const
DtEntityStateRepository
& asSeenByRemote );
82
86
virtual
void
fillOutDeadReckoningParams(
87
const
DtEntityStateRepository
& stateRep,
88
DtEntityStatePdu
* pdu );
89
92
virtual
void
fillOutArtAndAttParts(
93
const
DtEntityStateRepository
& stateRep,
94
const
DtEntityStateRepository
& asSeenByRemote,
95
DtEntityStatePdu
* pdu );
96
97
protected
:
98
99
DtEntityStatePdu
myEsPdu
;
100
101
};
102
103
#endif // DtDIS
Document ID: Generated on Mon Jun 22 21:18:40 EDT 2020 from SVN revision 213785
Copyright © 2005-2018 MAK Technologies. All Rights Reserved (
www.mak.com
)