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
underwaterAcousticsPublisherDIS.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/objectPublisherDIS.h
>
15
#include <
vl/underwaterAcousticsStateRepository.h
>
16
17
class
DtUnderwaterAcousticsEncoder
;
18
class
DtUnderwaterAcousticsDecoder
;
19
23
class
DT_DLL_VL
DtUnderwaterAcousticsPublisher
:
public
DtObjectPublisher
24
{
25
public
:
26
28
typedef
DtUnderwaterAcousticsStateRepository
* (*DtStateRepCreator)();
29
30
public
:
31
33
DtUnderwaterAcousticsPublisher
(
DtUnderwaterAcousticsStateRepository
* stateRepToUse,
34
DtExerciseConn
* conn,
const
DtObjectId
&
id
=
DtObjectId::defaultId
() );
35
37
DtUnderwaterAcousticsPublisher
(
DtExerciseConn
* conn,
38
const
DtObjectId
&
id
=
DtObjectId::defaultId
() );
39
41
DtUnderwaterAcousticsPublisher
(
DtExerciseConn
* conn,
const
char
* name,
42
const
DtObjectId
&
id
=
DtObjectId::defaultId
() );
43
45
virtual
~
DtUnderwaterAcousticsPublisher
();
46
48
virtual
DtUnderwaterAcousticsStateRepository
* underwaterAcousticsStateRep();
49
virtual
DtUnderwaterAcousticsStateRepository
* usr();
50
52
virtual
void
tick
();
53
55
virtual
void
forceUpdate
();
56
58
virtual
const
DtObjectId
&
id
()
const
;
59
virtual
const
DtObjectId
&
localId
()
const
;
60
62
virtual
const
DtGlobalObjectDesignator
&
globalId
()
const
;
63
66
virtual
void
setBeamAzimuthThreshold(
double
threshold );
67
69
virtual
double
beamAzimuthThreshold()
const
;
70
73
virtual
void
setBeamElevationThreshold(
double
threshold );
74
76
virtual
double
beamElevationThreshold()
const
;
77
78
public
:
79
81
static
void
setStateRepCreator( DtStateRepCreator creator );
82
static
DtStateRepCreator stateRepCreator();
83
84
static
void
setClassDfltTimeThreshold(
DtTime
threshold );
85
86
protected
:
87
89
void
init(
const
char
* name,
const
DtEntityIdentifier
&
id
);
90
92
DtUnderwaterAcousticsPublisher
(
const
DtUnderwaterAcousticsPublisher
& orig );
93
95
DtUnderwaterAcousticsPublisher
&
operator =
(
const
DtUnderwaterAcousticsPublisher
& orig );
96
97
protected
:
98
99
DtObjectId
myId
;
100
DtUnderwaterAcousticsDecoder
*
myUnderwaterAcousticsDecoder
;
101
DtUnderwaterAcousticsEncoder
*
myUnderwaterAcousticsEncoder
;
102
103
protected
:
104
105
static
DtStateRepCreator
theStateRepCreator
;
106
static
DtTime
theClassDfltTimeThreshold
;
107
static
bool
theClassDfltIsSetFlag
;
108
char
*
myName
;
109
110
};
111
112
inline
DtUnderwaterAcousticsStateRepository
*
DtUnderwaterAcousticsPublisher::usr
()
113
{
114
return
static_cast<
DtUnderwaterAcousticsStateRepository
*
>
(
myStateRep
);
115
}
116
117
#endif
Document ID: Generated on Tue Mar 1 02:56:17 EST 2016 from SVN revision 162687
Copyright © 2005-2014 VT MÄK. All Rights Reserved (
www.mak.com
)