VR-Link API Documentation for HLA 1.3
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
underwaterAcousticsPublisherHLA.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 DtHLA
13
14
#include <
vl/objectPublisherHLA.h
>
15
16
class
DtActiveSonarStateRepository
;
17
class
DtPropulsionNoiseStateRepository
;
18
class
DtUnderwaterAcousticsStateRepository
;
19
class
DtAdditionalPassiveActivitiesRepository
;
20
class
DtAdditionalPassiveActivitiesPublisher
;
21
class
DtPropulsionNoisePublisher
;
22
class
DtActiveSonarPublisher
;
23
27
class
DT_DLL_VL
DtUnderwaterAcousticsPublisher
:
public
DtObjectPublisher
28
{
29
public
:
30
32
typedef
DtUnderwaterAcousticsStateRepository
* (*DtStateRepCreator)();
33
34
public
:
35
37
DtUnderwaterAcousticsPublisher
(
DtExerciseConn
* conn,
const
char
* name = 0,
38
const
DtDDMRegionSet
* regionSetToUse = 0 );
39
41
DtUnderwaterAcousticsPublisher
(
DtUnderwaterAcousticsStateRepository
* stateRepToUse,
42
DtExerciseConn
* conn,
const
char
* name = 0,
const
DtDDMRegionSet
* regionSetToUse = 0 );
43
45
virtual
~
DtUnderwaterAcousticsPublisher
();
46
49
virtual
DtUnderwaterAcousticsStateRepository
* underwaterAcousticsStateRep();
50
52
virtual
DtUnderwaterAcousticsStateRepository
* usr();
53
55
static
DtStateRepCreator setStateRepCreator( DtStateRepCreator creator );
56
58
virtual
void
tick
();
59
63
virtual
void
forceUpdate
();
64
68
virtual
void
forceUpdate
(
const
RTI::AttributeHandleSet&
set
);
69
70
protected
:
71
74
75
virtual
void
syncPropulsionNoisePublisher();
76
78
81
86
virtual
void
syncAdditionalPassiveActivitiesList();
87
90
virtual
DtAdditionalPassiveActivitiesPublisher
* publisherForApaSr(
91
DtAdditionalPassiveActivitiesRepository
* asr );
92
94
virtual
int
numAdditionalPassiveActivities()
const
;
95
97
100
105
virtual
void
syncActiveSonarList();
106
109
virtual
DtActiveSonarPublisher
* publisherForSonarSr(
110
DtActiveSonarStateRepository
* asr );
111
113
virtual
int
numActiveSonars()
const
;
114
116
117
protected
:
118
123
DtUnderwaterAcousticsPublisher
(
124
const
char
* name = 0,
125
const
DtDDMRegionSet
* regionSetToUse = 0);
126
128
DtUnderwaterAcousticsPublisher
(
const
DtUnderwaterAcousticsPublisher
& orig );
129
131
DtUnderwaterAcousticsPublisher
&
operator =
(
const
DtUnderwaterAcousticsPublisher
& orig );
132
133
protected
:
134
135
static
DtStateRepCreator
theStateRepCreator
;
136
137
DtString
myName
;
138
139
unsigned
int
myAdditionalPassiveActivityCounter
;
140
141
DtPropulsionNoisePublisher
*
myPropulsionNoisePublisher
;
142
143
DtList
myAdditionalPassiveActivityPubs
;
144
145
DtList
myActiveSonarPubs
;
146
147
};
148
149
inline
DtUnderwaterAcousticsStateRepository
*
DtUnderwaterAcousticsPublisher::underwaterAcousticsStateRep
()
150
{
151
return
(
DtUnderwaterAcousticsStateRepository
*)
myStateRep
;
152
}
153
154
inline
DtUnderwaterAcousticsStateRepository
*
DtUnderwaterAcousticsPublisher::usr
()
155
{
156
return
(
DtUnderwaterAcousticsStateRepository
*)
myStateRep
;
157
}
158
159
#endif
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
)