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
activeSonarPublisherHLA.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
#include "
vl/activeSonarBeamPublisher.h
"
16
17
class
DtActiveSonarStateRepository
;
18
23
class
DT_DLL_VL
DtActiveSonarPublisher
:
public
DtObjectPublisher
24
{
25
public
:
26
28
typedef
DtActiveSonarStateRepository
* (*DtStateRepCreator)();
29
30
public
:
31
33
DtActiveSonarPublisher
(
34
DtActiveSonarStateRepository
* stateRepToUse,
35
DtExerciseConn
* conn,
36
const
char
* name = 0,
37
const
DtDDMRegionSet
* regionSetToUse = 0);
38
40
DtActiveSonarPublisher
(
41
RTI::ObjectClassHandle h,
42
DtExerciseConn
* conn,
43
const
char
* name = 0,
44
const
DtDDMRegionSet
* regionSetToUse = 0);
45
47
DtActiveSonarPublisher
(
48
DtExerciseConn
* conn,
49
const
char
* name = 0,
50
const
DtDDMRegionSet
* regionSetToUse = 0);
51
57
DtActiveSonarPublisher
(
DtHlaObjectWithStateRep
* obj,
DtExerciseConn
* conn);
58
60
virtual
~
DtActiveSonarPublisher
();
61
64
virtual
DtActiveSonarStateRepository
* activeSonarStateRep();
65
67
virtual
DtActiveSonarStateRepository
* asr();
68
71
virtual
const
char
* classToUse()
const
;
72
73
75
virtual
void
tick
();
76
80
virtual
void
forceUpdate
();
81
85
virtual
void
forceUpdate
(
const
RTI::AttributeHandleSet&
set
);
86
public
:
88
static
DtStateRepCreator setStateRepCreator(DtStateRepCreator creator);
89
90
protected
:
91
96
DtActiveSonarPublisher
(
97
const
char
* name = 0,
98
const
DtDDMRegionSet
* regionSetToUse = 0);
99
103
virtual
void
syncBeamList();
104
107
virtual
DtActiveSonarBeamPublisher
* publisherForAsr(
108
DtActiveSonarBeamRepository
* bsr);
109
111
virtual
int
numBeams()
const
;
112
113
protected
:
114
116
DtList
myBeamPubs
;
117
bool
myTickedFirstTime
;
118
119
static
DtStateRepCreator
theStateRepCreator
;
120
121
protected
:
123
DtActiveSonarPublisher
(
const
DtActiveSonarPublisher
& orig);
124
126
DtActiveSonarPublisher
&
operator=
(
const
DtActiveSonarPublisher
& orig);
127
};
128
129
inline
DtActiveSonarStateRepository
*
DtActiveSonarPublisher::activeSonarStateRep
()
130
{
131
return
(
DtActiveSonarStateRepository
*)
myStateRep
;
132
}
133
134
inline
DtActiveSonarStateRepository
*
DtActiveSonarPublisher::asr
()
135
{
136
return
(
DtActiveSonarStateRepository
*)
myStateRep
;
137
}
138
139
#endif
Document ID: Generated on Mon Apr 8 04:49:21 EDT 2019 from SVN revision 197403
Copyright © 2005-2016 VT MÄK. All Rights Reserved (
www.mak.com
)