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
emitterSystemPublisherDIS.h
Go to the documentation of this file.
1
/*********************************************************************
2
** Copyright (c) 1992-2010 VT MAK
3
** All rights reserved.
4
*********************************************************************/
5
6
10
11
#ifndef DtDisEmitterSystemPublisher_H_
12
#define DtDisEmitterSystemPublisher_H_
13
14
#if DtDIS
15
16
17
#include "
objectPublisherDIS.h
"
18
#include "
emitterSystemRepository.h
"
19
#include "
emitterSystemStateEncoder.h
"
20
#include "
emitterSystemStateDecoder.h
"
21
22
26
class
DT_DLL_VL
DtEmitterSystemPublisher
:
public
DtObjectPublisher
27
{
28
public
:
29
31
typedef
DtEmitterSystemRepository
* (*DtStateRepCreator)();
32
33
public
:
34
37
DtEmitterSystemPublisher
(
38
DtEmitterSystemRepository
* stateRepToUse,
39
DtExerciseConn
* conn,
40
const
DtObjectId
&
id
=
DtObjectId::defaultId
());
41
44
DtEmitterSystemPublisher
(
45
DtExerciseConn
* conn,
46
const
DtObjectId
&
id
=
DtObjectId::defaultId
());
47
50
DtEmitterSystemPublisher
(
51
DtExerciseConn
* conn,
52
const
char
* name,
53
const
DtObjectId
&
id
=
DtObjectId::defaultId
());
54
56
virtual
~
DtEmitterSystemPublisher
();
57
58
60
virtual
void
forceUpdate
();
61
63
virtual
void
tick
();
64
66
virtual
DtEmitterSystemRepository
* emitterSystemStateRep();
67
virtual
DtEmitterSystemRepository
* esr();
68
70
virtual
const
DtObjectId
&
id
()
const
;
71
72
virtual
const
DtObjectId
&
localId
()
const
;
73
75
virtual
const
DtGlobalObjectDesignator
&
globalId
()
const
;
76
79
virtual
void
setBeamAzimuthThreshold(
double
threshold);
80
82
virtual
double
beamAzimuthThreshold()
const
;
83
86
virtual
void
setBeamElevationThreshold(
double
threshold);
87
88
90
virtual
double
beamElevationThreshold()
const
;
91
93
void
sendFinalPdu();
94
95
public
:
96
98
static
void
setStateRepCreator(DtStateRepCreator creator);
99
static
DtStateRepCreator stateRepCreator(
void
);
100
101
static
void
setClassDfltTimeThreshold(
DtTime
threshold);
102
103
protected
:
104
106
void
init(
const
char
* name,
107
const
DtEntityIdentifier
&
id
);
108
110
DtEmitterSystemPublisher
(
const
DtEmitterSystemPublisher
& orig);
111
113
DtEmitterSystemPublisher
&
operator=
(
const
DtEmitterSystemPublisher
& orig);
114
115
protected
:
116
117
DtObjectId
myId
;
118
DtEmitterSystemStateDecoder
*
myEmitterSystemDecoder
;
119
DtEmitterSystemStateEncoder
*
myEmitterSystemEncoder
;
120
bool
mySendFinalInDtor
;
121
122
123
protected
:
124
static
DtStateRepCreator
theStateRepCreator
;
125
static
DtTime
theClassDfltTimeThreshold
;
126
static
bool
theClassDfltIsSetFlag
;
127
char
*
myName
;
128
};
129
130
inline
DtEmitterSystemRepository
*
DtEmitterSystemPublisher::esr
()
131
{
132
return
static_cast<
DtEmitterSystemRepository
*
>
(
myStateRep
);
133
}
134
135
#endif
136
#endif
137
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
)