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
activeSonarPublisherDIS.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/activeSonarStateRepository.h
>
16
17
class
DtActiveSonarEncoder
;
18
class
DtActiveSonarDecoder
;
19
23
class
DT_DLL_VL
DtActiveSonarPublisher
:
public
DtObjectPublisher
24
{
25
public
:
26
28
typedef
DtActiveSonarStateRepository
* (*DtStateRepCreator)();
29
30
public
:
31
33
DtActiveSonarPublisher
(
DtActiveSonarStateRepository
* stateRepToUse,
34
DtExerciseConn
* conn,
const
DtObjectId
&
id
=
DtObjectId::defaultId
() );
35
37
DtActiveSonarPublisher
(
DtExerciseConn
* conn,
38
const
DtObjectId
&
id
=
DtObjectId::defaultId
() );
39
41
DtActiveSonarPublisher
(
DtExerciseConn
* conn,
const
char
* name,
42
const
DtObjectId
&
id
=
DtObjectId::defaultId
() );
43
45
virtual
~
DtActiveSonarPublisher
();
46
48
virtual
DtActiveSonarStateRepository
* activeSonarStateRep();
49
virtual
DtActiveSonarStateRepository
* asr();
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
DtActiveSonarPublisher
(
const
DtActiveSonarPublisher
& orig );
93
95
DtActiveSonarPublisher
&
operator =
(
const
DtActiveSonarPublisher
& orig );
96
97
protected
:
98
99
DtObjectId
myId
;
100
DtActiveSonarDecoder
*
myActiveSonarDecoder
;
101
DtActiveSonarEncoder
*
myActiveSonarEncoder
;
102
103
protected
:
104
105
static
DtStateRepCreator
theStateRepCreator
;
106
static
DtTime
theClassDfltTimeThreshold
;
107
static
bool
theClassDfltIsSetFlag
;
108
char
*
myName
;
109
110
};
111
112
inline
DtActiveSonarStateRepository
*
DtActiveSonarPublisher::asr
()
113
{
114
return
static_cast<
DtActiveSonarStateRepository
*
>
(
myStateRep
);
115
}
116
117
#endif
Document ID: Generated on Wed Jan 7 13:31:29 EST 2015 from SVN revision 149162
Copyright © 2005-2014 VT MÄK. All Rights Reserved (
www.mak.com
)