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
activeSonarEncoderDIS.h
Go to the documentation of this file.
1
/****************************************************************************
2
* Copyright (c) 2013 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/underwaterAcousticPdu.h
>
16
17
class
DtActiveSonarStateRepository
;
18
23
class
DT_DLL_VL
DtActiveSonarEncoder
:
public
DtStateEncoder
24
{
25
public
:
26
28
DtActiveSonarEncoder
();
29
31
DtActiveSonarEncoder
(
const
DtActiveSonarEncoder
& orig );
32
34
virtual
~
DtActiveSonarEncoder
();
35
37
DtActiveSonarEncoder
&
operator =
(
const
DtActiveSonarEncoder
& orig );
38
43
virtual
DtUnderwaterAcousticPdu
* stateMsg(
44
const
DtActiveSonarStateRepository
& stateRep,
45
const
DtActiveSonarStateRepository
& asSeenByRemote );
46
49
virtual
void
setAzimuthThreshold(
double
threshold );
50
52
virtual
double
azimuthThreshold()
const
;
53
56
virtual
void
setElevationThreshold(
double
threshold );
57
59
virtual
double
elevationThreshold()
const
;
60
62
DtCLONE_ENCODER
(
DtActiveSonarEncoder
);
63
64
protected
:
65
66
// Let the parent encoder call sendNeeded and fillOut.
67
friend
class
DtUnderwaterAcousticsEncoder
;
68
70
virtual
bool
sendNeeded
(
const
DtActiveSonarStateRepository
& stateRep,
71
const
DtActiveSonarStateRepository
& asSeenByRemote );
72
74
virtual
void
fillOut
(
const
DtActiveSonarStateRepository
& stateRep,
75
const
DtActiveSonarStateRepository
& asSeenByRemote,
76
DtUnderwaterAcousticPdu
* pdu );
77
78
protected
:
79
80
DtUnderwaterAcousticPdu
myAsPdu
;
81
double
myAzimuthThreshold
;
82
double
myElevationThreshold
;
83
84
};
85
86
#endif // DtDIS
Document ID: Generated on Thu Feb 22 04:26:36 EST 2018 from SVN revision 186468
Copyright © 2005-2016 VT MÄK. All Rights Reserved (
www.mak.com
)