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
92
public
:
93
95
static
void
setStateRepCreator(DtStateRepCreator creator);
96
static
DtStateRepCreator stateRepCreator(
void
);
97
98
static
void
setClassDfltTimeThreshold(
DtTime
threshold);
99
100
protected
:
101
103
void
init(
const
char
* name,
104
const
DtEntityIdentifier
&
id
);
105
107
DtEmitterSystemPublisher
(
const
DtEmitterSystemPublisher
& orig);
108
110
DtEmitterSystemPublisher
&
operator=
(
const
DtEmitterSystemPublisher
& orig);
111
112
protected
:
113
114
DtObjectId
myId
;
115
DtEmitterSystemStateDecoder
*
myEmitterSystemDecoder
;
116
DtEmitterSystemStateEncoder
*
myEmitterSystemEncoder
;
117
118
119
protected
:
120
static
DtStateRepCreator
theStateRepCreator
;
121
static
DtTime
theClassDfltTimeThreshold
;
122
static
bool
theClassDfltIsSetFlag
;
123
char
*
myName
;
124
};
125
126
inline
DtEmitterSystemRepository
*
DtEmitterSystemPublisher::esr
()
127
{
128
return
static_cast<
DtEmitterSystemRepository
*
>
(
myStateRep
);
129
}
130
131
#endif
132
#endif
133
Document ID: Generated on Fri Dec 2 02:42:08 EST 2016 from SVN revision 171416
Copyright © 2005-2016 VT MÄK. All Rights Reserved (
www.mak.com
)