VR-Forces 4.6 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
vrvVrl
DtDynamicTerrainStateInterceptor.h
Go to the documentation of this file.
1
/******************************************************************************
2
** Copyright (c) 2016 MAK Technologies, Inc.
3
** All rights reserved.
4
******************************************************************************/
5
9
10
#pragma once
11
12
#include <
vrvUtil/DtVirtualBaseClass.h
>
13
#include <
vrfExtObjects/dynamicTerrainStateRepository.h
>
14
15
#if 0
16
// temporary definitions to make intellisense work
17
#define DT_PROTOCOL_NAMESPACE vrvDIS
18
#define DtDIS 1
19
//#define DT_PROTOCOL_NAMESPACE vrvHla13
20
//#define DtHLA 1
21
#define DL_DLL_IGCONVRLINK __declspec ( dllexport )
22
#endif
23
24
#ifndef DT_PROTOCOL_NAMESPACE
25
#error Namespace Protocol Macro DT_PROTOCOL_NAMESPACE not defined.
26
#endif
27
28
class
DtTerrainGeometryAndData
;
29
30
namespace
makVrv
31
{
32
namespace
DT_PROTOCOL_NAMESPACE
33
{
34
class
DtVrlinkConnection;
35
class
DtDynamicTerrainStateListener;
36
40
class
DL_DLL_IGCONVRLINK
DtDynamicTerrainStateInterceptor
:
public
DtDynamicTerrainStateRepository
41
{
42
public
:
43
45
DtDynamicTerrainStateInterceptor
();
46
47
private
:
49
//\throws DtCorrutedState this class is not copyable.
50
DtDynamicTerrainStateInterceptor
(
const
DtDynamicTerrainStateInterceptor
& orig);
51
53
//\throws DtCorrutedState this class is not copyable.
54
DtDynamicTerrainStateInterceptor
& operator=(
const
DtDynamicTerrainStateInterceptor
& orig);
55
56
public
:
58
virtual
~
DtDynamicTerrainStateInterceptor
();
59
61
virtual
void
setListener(
DtDynamicTerrainStateListener
* listener);
62
64
65
69
virtual
void
setGeometryAndData(
const
DtTerrainGeometryAndDataList
& val);
70
72
virtual
void
addGeometryAndDataEntry(
const
DtTerrainGeometryAndData
& val);
73
75
virtual
void
setGeometryAndDataEntry(
unsigned
index,
const
DtTerrainGeometryAndData
& val);
76
78
virtual
void
removeGeometryAndData(
const
DtTerrainGeometry
& geom,
double
tolerance);
79
81
virtual
void
setCommonData(
const
DtKeyValuePairList
& val);
82
84
virtual
void
addCommonData(
const
DtKeyValuePair
& data);
85
87
virtual
void
removeCommonData(
const
DtString
& key);
88
90
91
public
:
93
static
DtDynamicTerrainStateRepository
* create();
94
95
protected
:
97
virtual
void
processNewGeometryAndData(
int
index,
const
DtTerrainGeometryAndData
& geomAndData );
98
101
virtual
void
processChangedGeometryAndData(
int
index,
102
const
DtTerrainGeometryAndData
& oldGeomAndData,
103
const
DtTerrainGeometryAndData
& newGeomAndData );
104
105
protected
:
106
DtDynamicTerrainStateListener
*
myListener
;
107
};
108
}
109
}
Document ID: Generated on Thu Apr 12 03:15:37 EDT 2018 from SVN revision 187986
Copyright © 2005-2018 VT MÄK. All Rights Reserved (
www.mak.com
)