VR-Forces 4.2 Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
include
symbology
polygonSymbol.h
Go to the documentation of this file.
1
/*******************************************************************************
2
** Copyright (c) 2001 MAK Technologies, Inc.
3
** All rights reserved.
4
*******************************************************************************/
5
/*******************************************************************************
6
** $RCSfile: polygonSymbol.h,v $ $Revision: 1.20 $ $State: Exp $
7
*******************************************************************************/
8
11
12
#ifndef DtPolygonSymbol_H_
13
#define DtPolygonSymbol_H_
14
15
#include "
symbology/lineSymbol.h
"
16
17
class
DtNullDrawer
;
18
class
DtPolygonDrawer
;
19
20
class
QColor;
21
22
#include <QtGui/QBrush>
23
25
#include "
symbology/symbologyDefines.h
"
26
class
DT_DLL_symbology
DtPolygonSymbol
:
public
DtLineSymbol
27
{
28
public
:
29
30
enum
DtPolygonStyle
31
{
32
DtStyle_NoPolygon = 0,
33
DtStyle_Outline
,
34
DtStyle_Fill
,
35
DtStyle_Pattern
,
36
DtStyle_PolygonStyle_MAX = 100
37
};
38
40
DtPolygonSymbol
(
DtSymbolDrawer
& drawer);
41
43
DtPolygonSymbol
(
DtNullDrawer
& drawer);
44
46
DtPolygonSymbol
(
const
DtPolygonSymbol
& orig);
47
49
virtual
~
DtPolygonSymbol
();
50
52
virtual
DtSymbol
*
clone
()
const
;
53
57
virtual
const
DtDisplayPoint
centerPoint
()
const
;
58
60
virtual
void
shift
(QPoint p);
61
65
virtual
const
QPoint
getPoint
(
int
pointNum)
const
;
66
67
virtual
DtPolygonStyle polygonStyle()
const
;
68
virtual
void
setPolygonStyle(DtPolygonStyle style);
69
70
virtual
Qt::BrushStyle patternStyle()
const
;
71
virtual
void
setPatternStyle(Qt::BrushStyle style);
72
75
virtual
void
setAllowInsideSelection(
bool
b);
76
bool
allowInsideSelection()
const
;
77
80
virtual
bool
select
(
const
QPoint& aPoint);
81
82
bool
operator==
(
const
DtPolygonSymbol
& orig)
const
;
83
bool
operator!=
(
const
DtPolygonSymbol
& orig)
const
;
84
85
virtual
bool
transparentCacheChanged
()
const
;
86
87
private
:
89
DtPolygonSymbol
();
90
91
protected
:
92
//Center Point is calculated
93
virtual
const
DtDisplayPoint
calcCenterPoint
()
const
;
94
95
protected
:
96
DtPolygonStyle
myPolygonStyle
;
97
Qt::BrushStyle
myBrushStyle
;
98
bool
myAllowInsideSelection
;
99
};
100
101
inline
bool
DtPolygonSymbol::allowInsideSelection
()
const
102
{
103
return
myAllowInsideSelection
;
104
}
105
106
#endif
107
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
)