VR-Forces 4.1 Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
include
symbology
pointObjSymbol.h
Go to the documentation of this file.
1
/*********************************************************************
2
** Copyright (c) 2000 MaK Technologies, Inc.
3
** All rights reserved.
4
*********************************************************************/
5
/*********************************************************************
6
** $RCSfile: pointObjSymbol.h,v $ $Revision: 1.10 $ $State: Exp $
7
*********************************************************************/
8
11
12
#ifndef POINTOBJSYMBOL_H
13
#define POINTOBJSYMBOL_H
14
15
#include "
symbology/nameLabelSymbol.h
"
16
17
18
19
class
DtLineSymbol
;
20
class
DtTTSSymbol
;
21
class
QPolygon;
22
26
27
#include "
symbology/symbologyDefines.h
"
28
class
DT_DLL_symbology
DtPointObjectSymbol
:
public
DtNameLabelSymbol
29
{
30
public
:
31
enum
DtPointObjectAlignment
32
{
33
DtPointObjectCentered = 0,
34
DtPointObjectBottomCentered = 1
35
};
36
37
public
:
38
40
DtPointObjectSymbol
(
DtSymbolDrawer
& d);
41
43
virtual
~
DtPointObjectSymbol
();
44
46
DtPointObjectSymbol
(
const
DtPointObjectSymbol
& orig);
47
49
DtPointObjectSymbol
&
operator=
(
const
DtPointObjectSymbol
& rhs);
50
51
virtual
void
setHighlight
(
const
bool
highlight);
52
virtual
bool
highlight
()
const
;
53
virtual
void
setOrigin
(
const
QPoint & center);
54
virtual
void
setOrigin
(
int
x,
int
y );
55
virtual
const
DtDisplayPoint
centerPoint
()
const
;
56
virtual
const
QPoint
origin
()
const
;
57
virtual
bool
select
(
const
QPoint&
point
);
58
virtual
bool
select
(
const
QPoint&
point
,
const
QSize& s);
59
virtual
QRect
selBbox
()
const
;
60
virtual
void
shift
(QPoint p);
61
virtual
DtSymbol
*
clone
()
const
;
62
64
virtual
bool
adjustPoints
(QPolygon& pnts,
bool
constrain);
65
virtual
bool
supportsRightClickDialog
()
const
;
66
67
void
setAlignment(DtPointObjectAlignment);
68
DtPointObjectAlignment alignment()
const
;
69
70
virtual
void
draw
(
DtSymbol
* symbol, QPainter& paint)
const
;
71
virtual
void
setRotateToHeading(
bool
b);
72
virtual
bool
rotateToHeading()
const
;
73
virtual
void
setRotationValue(
double
d);
74
virtual
double
rotationValue()
const
;
75
76
private
:
78
DtPointObjectSymbol
();
79
80
public
:
81
static
DtSymbol
*
create
(
DtSymbolDrawer
& drawer);
82
83
protected
:
84
DtPointObjectAlignment
myAlignment
;
85
double
myRotationValue
;
86
bool
myRotateToHeading
;
87
};
88
89
inline
void
DtPointObjectSymbol::setAlignment
(
DtPointObjectAlignment
i)
90
{
91
myAlignment
= i;
92
}
93
94
inline
DtPointObjectSymbol::DtPointObjectAlignment
DtPointObjectSymbol::alignment
()
const
95
{
96
return
myAlignment
;
97
}
98
99
#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
)