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
RDimLinearEntity.h
Go to the documentation of this file.
1
#ifndef RDIMLINEARENTITY_H
2
#define RDIMLINEARENTITY_H
3
4
#include "
RDimensionEntity.h
"
5
#include "
RDimLinearData.h
"
6
7
class
RDocument
;
8
class
RExporter
;
9
17
class
RDimLinearEntity
:
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
public
:
52
RDimLinearEntity
(
RDocument
*
document
,
RObject::Id
objectId
=
RObject::INVALID_ID
);
53
virtual
~RDimLinearEntity
();
54
55
static
void
init
();
56
57
bool
setProperty
(
RPropertyTypeId
propertyTypeId,
const
QVariant& value);
58
QPair<QVariant, RPropertyAttributes>
getProperty
(
59
RPropertyTypeId
propertyTypeId,
60
bool
humanReadable =
false
,
bool
noAttributes =
false
);
61
62
virtual
RDimLinearData
&
getData
() = 0;
63
virtual
const
RDimLinearData
&
getData
()
const
= 0;
64
65
void
setExtensionPoint1
(
const
RVector
& p) {
66
getData
().
setExtensionPoint1
(p);
67
}
68
69
RVector
getExtensionPoint1
()
const
{
70
return
getData
().
getExtensionPoint1
();
71
}
72
73
void
setExtensionPoint2
(
const
RVector
& p) {
74
getData
().
setExtensionPoint2
(p);
75
}
76
77
RVector
getExtensionPoint2
()
const
{
78
return
getData
().
getExtensionPoint2
();
79
}
80
81
protected
:
82
virtual
void
print
(QDebug dbg)
const
;
83
};
84
85
Q_DECLARE_METATYPE
(
RDimLinearEntity
*)
86
Q_DECLARE_METATYPE
(QSharedPointer<
RDimLinearEntity
>)
87
Q_DECLARE_METATYPE
(QSharedPointer<
RDimLinearEntity
>*)
88
89
#endif
src
entity
RDimLinearEntity.h
Generated on Tue Jun 26 2012 18:41:07 for QCAD Application Framework by
1.8.1.1