VR-Forces 4.1.1 Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
include
drawertdb
terrainWireframeDrawer.h
Go to the documentation of this file.
1
/*********************************************************************
2
** Copyright (c) 2006 MaK Technologies, Inc.
3
** All rights reserved.
4
*********************************************************************/
5
/*********************************************************************
6
** $RCSfile: terrainWireframeDrawer.h,v $ $Revision: 1.3 $ $State: Exp $
7
*********************************************************************/
8
11
12
#ifndef TERRAINWIREFRAMEDRAWER_H
13
#define TERRAINWIREFRAMEDRAWER_H
14
15
#include "
drawertdb/drawertdbDefines.h
"
16
#include "
drawertdb/terrainPolygonDrawer.h
"
17
19
20
class
DT_DLL_drawertdb
DtTerrainWireframeDrawer
:
public
DtTerrainPolygonDrawer
21
{
22
public
:
23
DtTerrainWireframeDrawer
();
24
DtTerrainWireframeDrawer
(
const
DtTerrainWireframeDrawer
&);
25
26
virtual
~
DtTerrainWireframeDrawer
();
27
28
const
DtTerrainWireframeDrawer
&
operator=
(
const
DtTerrainWireframeDrawer
&);
29
30
void
setWireframeColor(
const
QColor&);
31
const
QColor& wireframeColor()
const
;
32
33
static
DtTerrainWireframeDrawer
*
create
();
34
36
virtual
void
drawWireframe(
DtAllTypesPolygon
* list,
const
DtViewportExtents
* viewport,
37
DtPrimitiveDrawer
* drawer,
bool
usePolygonColor);
38
39
protected
:
40
41
virtual
void
drawPolygon
(
const
DtAllTypesPolygon
*polygon,
42
const
DtHomogeneousTransfMatrix
& matrix,
const
DtViewportExtents
* v,
DtPrimitiveDrawer
* painter);
43
44
protected
:
45
QColor
myWireframeColor
;
46
};
47
48
inline
void
DtTerrainWireframeDrawer::setWireframeColor
(
const
QColor& c)
49
{
50
myWireframeColor
= c;
51
}
52
53
inline
const
QColor&
DtTerrainWireframeDrawer::wireframeColor
()
const
54
{
55
return
myWireframeColor
;
56
}
57
58
#endif
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
)