QCAD Application Framework
CAD Application Development and Automation.
Main Page
Related Pages
Modules
Classes
Files
File List
File Members
All
Classes
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
RDimRotatedEntity.h
Go to the documentation of this file.
1
#ifndef RDIMROTATEDENTITY_H
2
#define RDIMROTATEDENTITY_H
3
4
#include "
RDimensionEntity.h
"
5
#include "
RDimRotatedData.h
"
6
7
class
RDocument
;
8
class
RExporter
;
9
17
class
RDimRotatedEntity
:
public
RDimensionEntity
{
18
19
Q_DECLARE_TR_FUNCTIONS(
RDimLinearEntity
)
20
21
public
:
22
static
RPropertyTypeId
PropertyCustom
;
23
static
RPropertyTypeId
PropertyHandle
;
24
static
RPropertyTypeId
PropertyType
;
25
static
RPropertyTypeId
PropertyBlock
;
26
static
RPropertyTypeId
PropertyLayer
;
27
static
RPropertyTypeId
PropertyLinetype
;
28
static
RPropertyTypeId
PropertyLineweight
;
29
static
RPropertyTypeId
PropertyColor
;
30
static
RPropertyTypeId
PropertyDrawOrder
;
31
32
static
RPropertyTypeId
PropertyMiddleOfTextX
;
33
static
RPropertyTypeId
PropertyMiddleOfTextY
;
34
static
RPropertyTypeId
PropertyMiddleOfTextZ
;
35
static
RPropertyTypeId
PropertyText
;
36
static
RPropertyTypeId
PropertyUpperTolerance
;
37
static
RPropertyTypeId
PropertyLowerTolerance
;
38
39
static
RPropertyTypeId
PropertyDimensionLinePosX
;
40
static
RPropertyTypeId
PropertyDimensionLinePosY
;
41
static
RPropertyTypeId
PropertyDimensionLinePosZ
;
42
43
static
RPropertyTypeId
PropertyExtensionPoint1X
;
44
static
RPropertyTypeId
PropertyExtensionPoint1Y
;
45
static
RPropertyTypeId
PropertyExtensionPoint1Z
;
46
47
static
RPropertyTypeId
PropertyExtensionPoint2X
;
48
static
RPropertyTypeId
PropertyExtensionPoint2Y
;
49
static
RPropertyTypeId
PropertyExtensionPoint2Z
;
50
51
static
RPropertyTypeId
PropertyAngle
;
52
53
public
:
54
RDimRotatedEntity
(
RDocument
*
document
,
const
RDimRotatedData
&
data
,
55
RObject::Id
objectId
=
RObject::INVALID_ID
);
56
virtual
~RDimRotatedEntity
();
57
58
static
void
init
();
59
60
virtual
RDimRotatedEntity
*
clone
()
const
{
61
return
new
RDimRotatedEntity
(*
this
);
62
}
63
64
virtual
RS::EntityType
getType
()
const
{
65
return
RS::EntityDimRotated
;
66
}
67
68
bool
setProperty
(
RPropertyTypeId
propertyTypeId,
const
QVariant& value);
69
QPair<QVariant, RPropertyAttributes>
getProperty
(
70
RPropertyTypeId
propertyTypeId,
71
bool
humanReadable =
false
,
bool
noAttributes =
false
);
72
73
virtual
RDimRotatedData
&
getData
() {
74
return
data
;
75
}
76
77
void
setData
(
RDimRotatedData
& d) {
78
data
= d;
79
}
80
81
virtual
const
RDimRotatedData
&
getData
()
const
{
82
return
data
;
83
}
84
85
void
setExtensionPoint1
(
const
RVector
& p) {
86
data
.
setExtensionPoint1
(p);
87
}
88
89
RVector
getExtensionPoint1
()
const
{
90
return
data
.
getExtensionPoint1
();
91
}
92
93
void
setExtensionPoint2
(
const
RVector
& p) {
94
data
.
setExtensionPoint2
(p);
95
}
96
97
RVector
getExtensionPoint2
()
const
{
98
return
data
.
getExtensionPoint2
();
99
}
100
101
void
setAngle
(
double
a) {
102
data
.
setRotation
(a);
103
}
104
105
double
getAngle
()
const
{
106
return
data
.
getRotation
();
107
}
108
109
protected
:
110
virtual
void
print
(QDebug dbg)
const
;
111
112
protected
:
113
RDimRotatedData
data
;
114
};
115
116
Q_DECLARE_METATYPE
(
RDimRotatedEntity
*)
117
Q_DECLARE_METATYPE
(QSharedPointer<
RDimRotatedEntity
>)
118
Q_DECLARE_METATYPE
(QSharedPointer<
RDimRotatedEntity
>*)
119
120
#endif
src
entity
RDimRotatedEntity.h
Generated on Tue Jun 26 2012 18:41:08 for QCAD Application Framework by
1.8.1.1