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
RDimOrdinateEntity.h
Go to the documentation of this file.
1
#ifndef RDIMORDINATEENTITY_H
2
#define RDIMORDINATEENTITY_H
3
4
#include "
RDimensionEntity.h
"
5
#include "
RDimOrdinateData.h
"
6
7
class
RDocument
;
8
class
RExporter
;
9
17
class
RDimOrdinateEntity
:
public
RDimensionEntity
{
18
19
Q_DECLARE_TR_FUNCTIONS(
RDimOrdinateEntity
)
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
PropertyOriginX
;
40
static
RPropertyTypeId
PropertyOriginY
;
41
static
RPropertyTypeId
PropertyOriginZ
;
42
43
static
RPropertyTypeId
PropertyOrdinate
;
44
45
static
RPropertyTypeId
PropertyLeaderEndPointX
;
46
static
RPropertyTypeId
PropertyLeaderEndPointY
;
47
static
RPropertyTypeId
PropertyLeaderEndPointZ
;
48
49
static
RPropertyTypeId
PropertyDefiningPointX
;
50
static
RPropertyTypeId
PropertyDefiningPointY
;
51
static
RPropertyTypeId
PropertyDefiningPointZ
;
52
53
public
:
54
RDimOrdinateEntity
(
RDocument
*
document
,
const
RDimOrdinateData
&
data
,
55
RObject::Id
objectId
=
RObject::INVALID_ID
);
56
virtual
~RDimOrdinateEntity
();
57
58
static
void
init
();
59
60
virtual
RDimOrdinateEntity
*
clone
()
const
{
61
return
new
RDimOrdinateEntity
(*
this
);
62
}
63
64
virtual
RS::EntityType
getType
()
const
{
65
return
RS::EntityDimOrdinate
;
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
RDimOrdinateData
&
getData
() {
74
return
data
;
75
}
76
77
void
setData
(
RDimOrdinateData
& d) {
78
data
= d;
79
}
80
81
virtual
const
RDimOrdinateData
&
getData
()
const
{
82
return
data
;
83
}
84
85
void
setLeaderEndPoint
(
const
RVector
& p) {
86
data
.
setLeaderEndPoint
(p);
87
}
88
89
RVector
getLeaderEndPoint
()
const
{
90
return
data
.
getLeaderEndPoint
();
91
}
92
93
void
setDefiningPoint
(
const
RVector
& p) {
94
data
.
setDefiningPoint
(p);
95
}
96
97
RVector
getDefiningPoint
()
const
{
98
return
data
.
getDefiningPoint
();
99
}
100
101
protected
:
102
virtual
void
print
(QDebug dbg)
const
;
103
104
protected
:
105
RDimOrdinateData
data
;
106
};
107
108
Q_DECLARE_METATYPE
(
RDimOrdinateEntity
*)
109
Q_DECLARE_METATYPE
(QSharedPointer<
RDimOrdinateEntity
>)
110
Q_DECLARE_METATYPE
(QSharedPointer<
RDimOrdinateEntity
>*)
111
112
#endif
src
entity
RDimOrdinateEntity.h
Generated on Tue Jun 26 2012 18:41:08 for QCAD Application Framework by
1.8.1.1