VR-Link API Documentation for DIS
Home
Namespaces
Classes
Files
Examples
Libraries
File List
File Members
include
vl
dDesignatrEnc.h
Go to the documentation of this file.
1
/*******************************************************************************
2
** Copyright (c) 1992-2010 VT MAK
3
** All rights reserved.
4
*******************************************************************************/
5
6
7
#if DtDIS
8
12
13
#ifndef dDesignatrEnc_H_
14
#define dDesignatrEnc_H_
15
16
#include "
dStateEncoder.h
"
17
#include "
designatePdu.h
"
18
#include "
designatorSR.h
"
19
22
class
DT_DLL_VL
DtDesignatorEncoder
:
public
DtStateEncoder
23
{
24
public
:
26
DtDesignatorEncoder
(
double
_relPosThreshold = 1.0,
27
double
_absPosThreshold = 1.0,
double
_accelThreshold = 0.2 );
28
30
virtual
~
DtDesignatorEncoder
();
31
33
DtDesignatorEncoder
(
const
DtDesignatorEncoder
& orig);
34
36
DtDesignatorEncoder
&
operator=
(
const
DtDesignatorEncoder
& orig);
37
42
virtual
DtDesignatorPdu
* stateMsg(
43
const
DtDesignatorRepository
& stateRep,
44
const
DtDesignatorRepository
& asSeenByRemote );
45
47
48
virtual
inline
void
setRelPosThreshold(
double
val );
49
virtual
inline
double
relPosThreshold()
const
;
51
53
54
virtual
inline
void
setAbsPosThreshold(
double
val );
55
virtual
inline
double
absPosThreshold()
const
;
57
59
60
virtual
inline
void
setAccelThreshold(
double
val );
61
virtual
inline
double
accelThreshold()
const
;
63
64
protected
:
66
virtual
bool
sendNeeded(
67
const
DtDesignatorRepository
& stateRep,
68
const
DtDesignatorRepository
& asSeenByRemote );
69
70
protected
:
71
double
myRelPosThreshold
;
72
double
myAbsPosThreshold
;
73
double
myAccelThreshold
;
74
DtDesignatorPdu
myPdu
;
75
};
76
77
inline
void
DtDesignatorEncoder::setRelPosThreshold
(
double
val )
78
{
79
myRelPosThreshold
= val;
80
}
81
82
inline
double
DtDesignatorEncoder::relPosThreshold
()
const
83
{
84
return
myRelPosThreshold
;
85
}
86
87
inline
void
DtDesignatorEncoder::setAbsPosThreshold
(
double
val )
88
{
89
myAbsPosThreshold
= val;
90
}
91
92
inline
double
DtDesignatorEncoder::absPosThreshold
()
const
93
{
94
return
myAbsPosThreshold
;
95
}
96
97
inline
double
DtDesignatorEncoder::accelThreshold
()
const
98
{
99
return
myAccelThreshold
;
100
}
101
102
inline
void
DtDesignatorEncoder::setAccelThreshold
(
double
val )
103
{
104
myAccelThreshold
= val;
105
}
106
#endif
107
#endif
108
Document ID: Generated on Wed Aug 14 15:35:11 EDT 2013 from SVN revision 130445
Copyright © 2005-2013 VT MÄK. All Rights Reserved (
www.mak.com
)