VR-Forces 4.7 Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
include
vrfExtObjects
dynamicTerrainPublisherDIS.h
Go to the documentation of this file.
1
/****************************************************************************
2
* Copyright (c) 2017 VT MAK
3
* All rights reserved.
4
****************************************************************************/
5
9
10
#pragma once
11
12
#if DtDIS
13
14
#include <
vrfExtObjects/dllExport.h
>
15
#include <
vrfExtObjects/dynamicTerrainEncoderDIS.h
>
16
#include <
vrfExtObjects/dynamicTerrainDecoderDIS.h
>
17
#include <vlpi/entityIdentifier.h>
18
#include <vl/objectPublisherDIS.h>
19
#include <vl/objectId.h>
20
21
class
DtDynamicTerrainStateRepository
;
22
27
class
DT_DLL_vrfExtObjects
DtDynamicTerrainPublisher
:
public
DtObjectPublisher
28
{
29
public
:
30
32
typedef
DtDynamicTerrainStateRepository
* (*DtStateRepCreator)();
33
34
public
:
35
37
DtDynamicTerrainPublisher
(
38
DtDynamicTerrainStateRepository
* stateRepToUse,
39
DtExerciseConn* conn,
40
const
DtObjectId&
id
= DtObjectId::nullId());
41
43
DtDynamicTerrainPublisher
(
44
DtExerciseConn* conn,
45
const
DtObjectId&
id
= DtObjectId::nullId());
46
48
virtual
~
DtDynamicTerrainPublisher
();
49
50
private
:
52
DtDynamicTerrainPublisher
(
const
DtDynamicTerrainPublisher
& orig);
53
55
DtDynamicTerrainPublisher
& operator=(
56
const
DtDynamicTerrainPublisher
& orig);
57
58
public
:
59
62
virtual
DtDynamicTerrainStateRepository
* dynamicTerrainStateRep();
63
65
virtual
DtDynamicTerrainStateRepository
* dsr();
66
68
virtual
void
tick();
69
71
virtual
void
forceUpdate();
72
74
virtual
const
DtObjectId& id()
const
;
75
77
virtual
const
DtObjectId& localId()
const
;
78
80
virtual
const
DtGlobalObjectDesignator
& globalId()
const
;
81
83
virtual
void
sendFinalPdu();
84
85
public
:
87
static
DtStateRepCreator setStateRepCreator(DtStateRepCreator creator);
88
89
protected
:
90
static
DtStateRepCreator
theStateRepCreator
;
91
DtObjectId
myId
;
92
DtDynamicTerrainDecoder
*
myDecoder
;
93
DtDynamicTerrainEncoder
*
myEncoder
;
94
95
};
96
97
inline
DtDynamicTerrainStateRepository
*
DtDynamicTerrainPublisher::dynamicTerrainStateRep
()
98
{
99
return
(
DtDynamicTerrainStateRepository
*) myStateRep;
100
}
101
102
inline
DtDynamicTerrainStateRepository
*
DtDynamicTerrainPublisher::dsr
()
103
{
104
return
(
DtDynamicTerrainStateRepository
*) myStateRep;
105
}
106
107
#endif // DtDIS
Document ID: Generated on Fri Apr 26 21:53:14 EDT 2019 from SVN revision 197883
Copyright © 2005-2019 VT MAK. All Rights Reserved (
www.mak.com
)