VR-Forces 4.1 Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
include
drawertdb
terrainContourLinesDrawer.h
Go to the documentation of this file.
1
/*********************************************************************
2
** Copyright (c) 2006 MaK Technologies, Inc.
3
** All rights reserved.
4
*********************************************************************/
5
/*********************************************************************
6
** $RCSfile: terrainContourLinesDrawer.h,v $ $Revision: 1.2 $ $State: Exp $
7
*********************************************************************/
8
11
12
#ifndef TERRAINCONTOURLINESDRAWER_H
13
#define TERRAINCONTOURLINESDRAWER_H
14
15
#include "
drawertdb/drawertdbDefines.h
"
16
#include "
drawertdb/terrainDrawer.h
"
17
#include <QtGui/QColor>
18
19
class
DtPrimitiveDrawer
;
20
class
DtViewportExtents
;
21
class
DtTerrainDatabase
;
22
class
DtExtent
;
23
class
DtHomogeneousTransfMatrix
;
24
class
DtGdbNode
;
25
class
DtBaseCoordinateSystem
;
26
28
class
DT_DLL_drawertdb
DtTerrainContourLinesDrawer
:
public
DtTerrainDrawer
29
{
30
public
:
31
DtTerrainContourLinesDrawer
();
32
DtTerrainContourLinesDrawer
(
const
DtTerrainContourLinesDrawer
&);
33
34
virtual
~
DtTerrainContourLinesDrawer
();
35
36
DtTerrainContourLinesDrawer
&
operator=
(
const
DtTerrainContourLinesDrawer
&);
37
38
void
setContourLineColor(
const
QColor& c);
39
const
QColor& contourLineColor()
const
;
40
41
void
setContourLineInterval(
int
);
42
int
contourLineInterval()
const
;
43
44
static
DtTerrainContourLinesDrawer
* create();
45
46
protected
:
47
virtual
void
internalDraw
(
const
DtTerrainDatabase
*,
const
DtViewportExtents
*,
DtPrimitiveDrawer
* painter);
48
49
virtual
void
drawContourLines(
const
double
& z0,
const
double
& z1,
50
const
DtTerrainDatabase
* db,
const
DtViewportExtents
* v,
DtPrimitiveDrawer
* painter);
51
52
virtual
void
drawContourLinesOnNode(
const
DtGdbNode
* node,
53
const
double
& zMin,
const
double
& zMax,
const
double
& zInterval,
54
const
DtHomogeneousTransfMatrix
& matrix,
const
DtViewportExtents
* v,
DtPrimitiveDrawer
* painter);
55
56
virtual
void
drawContourLinesOnPolygon(
const
DtAllTypesPolygon
* polygon,
57
const
double
& zMin,
const
double
& zMax,
const
double
& zInterval,
58
const
DtHomogeneousTransfMatrix
& mtx,
const
DtViewportExtents
* v,
DtPrimitiveDrawer
* painter);
59
60
virtual
void
drawContourLinesOnCoordinateSystem(
61
const
DtBaseCoordinateSystem
* cs,
const
double
& zMin,
const
double
& zMax,
62
const
double
& zInterval,
const
DtHomogeneousTransfMatrix
& matrix,
const
DtViewportExtents
* v,
DtPrimitiveDrawer
* painter);
63
64
protected
:
65
QColor
myContourLineColor
;
66
int
myContourLineInterval
;
67
};
68
69
inline
void
DtTerrainContourLinesDrawer::setContourLineColor
(
const
QColor& c)
70
{
71
myContourLineColor
= c;
72
}
73
74
inline
const
QColor&
DtTerrainContourLinesDrawer::contourLineColor
()
const
75
{
76
return
myContourLineColor
;
77
}
78
79
inline
void
DtTerrainContourLinesDrawer::setContourLineInterval
(
int
i)
80
{
81
myContourLineInterval
= i;
82
}
83
84
inline
int
DtTerrainContourLinesDrawer::contourLineInterval
()
const
85
{
86
return
myContourLineInterval
;
87
}
88
89
#endif
Document ID: Generated on Tue Jan 29 18:21:16 EST 2013 from SVN revision 123193
Copyright © 2005-2013 VT MÄK Inc. All Rights Reserved (
www.mak.com
)