MAK Data Logger API Documentation for DIS
Home
Modules
Namespaces
Classes
Files
Examples
Libraries
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
include
lgrSim
lgrDisTransmitter.h
Go to the documentation of this file.
1
/******************************************************************************
2
** Copyright (c) 1992-2016 VT MAK
3
** All rights reserved.
4
******************************************************************************/
5
9
10
#pragma once
11
12
#if DtDIS
13
14
#include "
lgrPublisherInterface.h
"
15
#include <
lgrSim/lgrSim.h
>
16
#include <
lgrUtil/virtualConstructor.h
>
17
#include <vl/radioTransmitterEncoderDIS.h>
18
#include <vl/stateEncoder.h>
19
20
class
DtClock;
21
class
DtTransmitterPdu;
22
class
DtRadioTransmitterPublisher;
23
24
namespace
MAKLogger
25
{
26
class
DtAbsoluteTime
;
27
class
DtLgrDisSimulationManager;
28
29
//VR-Link workaround - derived encoder class to gain access to protected "myPdu" member variable.
30
class
DtLgrRadioTransmitterEncoder
:
public
DtRadioTransmitterEncoder
31
{
32
public
:
33
DtLgrRadioTransmitterEncoder
() {};
34
~DtLgrRadioTransmitterEncoder
() {};
35
36
DtTransmitterPdu*
getEncoderPdu
() {
return
&myPdu; }
37
38
DtCLONE_ENCODER
(
DtLgrRadioTransmitterEncoder
);
39
};
40
41
class
DT_DLL_LGRSIM
DtLgrDisTransmitterPublisher
:
public
DtLgrPublisherInterface
42
{
43
public
:
44
DT_VIRTUAL_CTR
(
DtLgrDisTransmitterPublisher
,(
const
DtTransmitterPdu& pdu,
45
DtLgrDisSimulationManager
& simManager))
46
47
48
virtual
~
DtLgrDisTransmitterPublisher
();
49
50
virtual
void
update(
const
DtPdu& pdu,
const
DtAbsoluteTime
& updateTime,
bool
isTimeFromPast,
51
bool
isStateUpdate,
double
scaling,
bool
isStatic,
bool
sendFlag);
52
53
virtual
void
sendUpdateAtScaleChangePoint(
54
double
oldScale,
double
newScale,
bool
wasStatic,
bool
isStatic);
55
57
virtual
void
tick(
double
scaling,
bool
isStatic);
58
59
protected
:
61
virtual
const
DtStateMsg& lastState()
const
;
62
64
virtual
void
tickVrlPublisher();
65
66
protected
:
67
DtRadioTransmitterPublisher*
myPublisher
;
68
};
69
}
70
71
#endif
72
Document ID: Generated on Thu Jul 23 15:05:27 EDT 2020 from SVN revision 215371
Copyright © 2020 MAK Technologies. All Rights Reserved (
www.mak.com
)