VR-Forces 4.1.1 Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
include
vrvCoreQt
DtTerrainContentsLogic.h
Go to the documentation of this file.
1
/******************************************************************************
2
** Copyright (c) 2008 MAK Technologies, Inc.
3
** All rights reserved.
4
******************************************************************************/
5
/******************************************************************************
6
** $RCSfile: DtTerrainContentsLogic.h,v $ $Revision: 1.6 $ $State: Exp $
7
******************************************************************************/
8
12
13
#ifndef DtTerrainContentsLogic_H_
14
#define DtTerrainContentsLogic_H_
15
16
#include <
vrvCoreQt/vrvCoreQt.h
>
17
#include <
vrvUtil/DtVirtualBaseClass.h
>
18
19
#include <
makArchives/DtTerrainOperationRecord.h
>
20
21
22
namespace
makVrv
23
{
24
class
DtDe;
25
class
DtTerrainContentsInterface;
26
class
DtTerrainPatch;
27
class
DtFeatureLayer;
28
32
class
DT_DLL_VRVCOREQT
DtTerrainContentsLogic
33
{
34
35
public
:
36
friend
class
DtTerrainContentsLogicCreator
;
37
39
~
DtTerrainContentsLogic
();
40
45
typedef
std::map<std::string, int>
IdMap
;
46
47
protected
:
48
51
DtTerrainContentsLogic
(
DtDe
& de,
DtTerrainContentsInterface
& iFace);
52
56
void
populateWidgetWithContents();
57
60
virtual
void
slot_terrainPatchAdded(
const
DtTerrainPatch
& terrainPatch);
61
64
virtual
void
slot_terrainPatchToBeDeleted(
const
DtTerrainPatch
& terrainPatch);
65
68
virtual
void
slot_featureLayerAdded(
const
DtFeatureLayer
& layer);
69
72
virtual
void
slot_featureLayerToBeDeleted(
const
DtFeatureLayer
& layer);
73
76
virtual
void
slot_remove(
int
id
);
77
78
protected
:
79
80
DtDe
&
myDe
;
81
DtTerrainContentsInterface
&
myGui
;
82
int
myNextUniqueId
;
83
IdMap
myTerrainPatchMap
;
84
IdMap
myFeatureLayerMap
;
85
86
};
87
88
91
class
DT_DLL_VRVCOREQT
DtTerrainContentsLogicCreator
92
:
public
DtVirtualBaseClass
93
{
94
public
:
95
96
// Get the creator instance for this DE object. Creates instance if none found
97
static
DtTerrainContentsLogicCreator
& instance(
DtDe
& de );
98
99
static
void
registerInstance(
DtDe
& de,
DtTerrainContentsLogicCreator
* creator );
100
101
//Create the widget's logic.
102
static
DtTerrainContentsLogic
* create(
DtDe
& de,
DtTerrainContentsInterface
& iface ) ;
103
};
104
}
105
106
#endif
107
Document ID: Generated on Mon Apr 8 19:24:01 EDT 2013 from SVN revision 125877
Copyright © 2005-2013 VT MÄK. All Rights Reserved (
www.mak.com
)