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