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