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
RDimRadialEntity.h
Go to the documentation of this file.
1
#ifndef RDIMRADIALENTITY_H
2
#define RDIMRADIALENTITY_H
3
4
#include "
RDimensionEntity.h
"
5
#include "
RDimRadialData.h
"
6
7
class
RDocument
;
8
class
RExporter
;
9
17
class
RDimRadialEntity
:
public
RDimensionEntity
{
18
19
Q_DECLARE_TR_FUNCTIONS(
RDimRadialEntity
)
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
PropertyCenterPointX
;
40
static
RPropertyTypeId
PropertyCenterPointY
;
41
static
RPropertyTypeId
PropertyCenterPointZ
;
42
43
static
RPropertyTypeId
PropertyChordPointX
;
44
static
RPropertyTypeId
PropertyChordPointY
;
45
static
RPropertyTypeId
PropertyChordPointZ
;
46
47
public
:
48
RDimRadialEntity
(
RDocument
*
document
,
const
RDimRadialData
&
data
,
49
RObject::Id
objectId
=
RObject::INVALID_ID
);
50
virtual
~RDimRadialEntity
();
51
52
static
void
init
();
53
54
virtual
RDimRadialEntity
*
clone
()
const
{
55
return
new
RDimRadialEntity
(*
this
);
56
}
57
58
virtual
RS::EntityType
getType
()
const
{
59
return
RS::EntityDimRadial
;
60
}
61
62
bool
setProperty
(
RPropertyTypeId
propertyTypeId,
const
QVariant& value);
63
QPair<QVariant, RPropertyAttributes>
getProperty
(
64
RPropertyTypeId
propertyTypeId,
65
bool
humanReadable =
false
,
bool
noAttributes =
false
);
66
67
virtual
RDimRadialData
&
getData
() {
68
return
data
;
69
}
70
71
void
setData
(
RDimRadialData
& d) {
72
data
= d;
73
}
74
75
virtual
const
RDimRadialData
&
getData
()
const
{
76
return
data
;
77
}
78
79
void
setChordPoint
(
const
RVector
& p) {
80
data
.
setChordPoint
(p);
81
}
82
83
RVector
getChordPoint
()
const
{
84
return
data
.
getChordPoint
();
85
}
86
87
protected
:
88
virtual
void
print
(QDebug dbg)
const
;
89
90
protected
:
91
RDimRadialData
data
;
92
};
93
94
Q_DECLARE_METATYPE
(
RDimRadialEntity
*)
95
Q_DECLARE_METATYPE
(QSharedPointer<
RDimRadialEntity
>)
96
Q_DECLARE_METATYPE
(QSharedPointer<
RDimRadialEntity
>*)
97
98
#endif
src
entity
RDimRadialEntity.h
Generated on Tue Jun 26 2012 18:41:08 for QCAD Application Framework by
1.8.1.1