VR-Forces 4.2 Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
include
drawertdb
terrainPaperMapDrawer.h
Go to the documentation of this file.
1
/*******************************************************************************
2
** Copyright (c) 2003 MAK Technologies, Inc.
3
** All rights reserved.
4
*******************************************************************************/
5
/*******************************************************************************
6
** $RCSfile: terrainPaperMapDrawer.h,v $ $Revision: 1.1 $ $State: Exp $
7
*******************************************************************************/
8
11
12
#ifndef TERRAINPAPERMAPDRAWER_H
13
#define TERRAINPAPERMAPDRAWER_H
14
15
#include "
drawertdb/drawertdbDefines.h
"
16
#include "
drawertdb/terrainDrawer.h
"
17
18
#include <QtGui/QColor>
19
20
class
DtPaperMapDatabase;
21
class
DtQtDrawer
;
22
class
DtTdbDrawerOptions
;
23
class
DtViewportExtents
;
24
class
DtExtent;
25
class
DtPaperMap
;
26
class
QColor;
27
class
Coordinate_System;
28
29
class
DT_DLL_drawertdb
DtTerrainPaperMapDrawer
:
public
DtTerrainDrawer
30
{
31
32
public
:
33
34
DtTerrainPaperMapDrawer
();
35
DtTerrainPaperMapDrawer
(
const
DtTerrainPaperMapDrawer
&);
36
37
virtual
~
DtTerrainPaperMapDrawer
();
38
39
DtTerrainPaperMapDrawer
&
operator=
(
const
DtTerrainPaperMapDrawer
&);
40
41
virtual
bool
init
(
const
DtPaperMapDatabase* d);
42
43
virtual
const
DtPaperMapDatabase* paperMapDatabase()
const
;
44
virtual
void
setPaperMapDatabase(
const
DtPaperMapDatabase* d);
45
47
void
setBackgroundColor(
const
QColor&);
48
const
QColor& backgroundColor()
const
;
49
50
static
DtTerrainPaperMapDrawer
* create();
51
52
protected
:
53
virtual
void
internalDraw
(
const
DtTerrainDatabase* db,
const
DtViewportExtents
* v,
DtPrimitiveDrawer
* painter);
54
55
protected
:
56
57
virtual
void
drawPaperMaps(
const
Coordinate_System* coordSys,
const
DtViewportExtents
* v,
58
DtPrimitiveDrawer
* d);
59
60
virtual
void
drawPaperMap
61
(
62
const
Coordinate_System* coordSys,
63
DtPaperMap
* p,
64
const
DtViewportExtents
* v,
65
DtPrimitiveDrawer
* d,
66
QColor* backgroundColor = 0
67
);
68
69
protected
:
70
const
DtPaperMapDatabase*
myPaperMapDatabase
;
71
QColor
myBackgroundColor
;
72
};
73
74
inline
void
DtTerrainPaperMapDrawer::setBackgroundColor
(
const
QColor& c)
75
{
76
myBackgroundColor
= c;
77
}
78
79
inline
const
QColor&
DtTerrainPaperMapDrawer::backgroundColor
()
const
80
{
81
return
myBackgroundColor
;
82
}
83
84
#endif
85
Document ID: Generated on Sun Nov 24 19:49:21 EST 2013 from SVN revision 133924
Copyright © 2005-2013 VT MÄK. All Rights Reserved (
www.mak.com
)