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
lgrDisGriddedData.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
15
#include <
lgrSim/lgrSim.h
>
16
#include "
lgrPublisherInterface.h
"
17
#include <
lgrUtil/virtualConstructor.h
>
18
#include <vl/griddedDataEncoderDIS.h>
19
#include <vl/stateEncoder.h>
20
21
class
DtGriddedDataPublisher;
22
class
DtGriddedDataPdu;
23
24
namespace
MAKLogger
25
{
26
class
DtLgrDisSimulationManager;
27
28
//VR-Link workaround - derived encoder class to gain access to protected "myPdu" member variable.
29
class
DtLgrGriddedDataEncoder
:
public
DtGriddedDataEncoder
30
{
31
public
:
32
DtLgrGriddedDataEncoder
() {};
33
~DtLgrGriddedDataEncoder
() {};
34
35
DtGriddedDataPdu*
getEncoderPdu
() {
return
&myPdu; }
36
37
DtCLONE_ENCODER
(
DtLgrGriddedDataEncoder
);
38
};
39
42
class
DT_DLL_LGRSIM
DtLgrDisGriddedDataPublisher
:
public
DtLgrPublisherInterface
43
{
44
45
public
:
46
47
DT_VIRTUAL_CTR
(
DtLgrDisGriddedDataPublisher
,(
const
DtGriddedDataPdu& pdu,
48
DtLgrDisSimulationManager
& simManager))
49
50
virtual
~
DtLgrDisGriddedDataPublisher
();
51
52
virtual
void
update(
const
DtPdu& pdu,
const
DtAbsoluteTime
& updateTime,
bool
isTimeFromPast,
53
bool
isStateUpdate,
double
scaling,
bool
isStatic,
bool
sendFlag);
54
virtual
void
sendUpdateAtScaleChangePoint(
double
oldScale,
double
newScale,
55
bool
wasStatic,
bool
isStatic);
56
virtual
void
tick(
double
scaling,
bool
isStatic);
57
58
protected
:
59
61
virtual
const
DtStateMsg& lastState()
const
;
62
64
virtual
void
tickVrlPublisher();
65
66
protected
:
67
68
DtGriddedDataPublisher*
myPublisher
;
69
};
70
71
}
72
73
#endif
74
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
)