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
RPointEntity.h
Go to the documentation of this file.
1
#ifndef RPOINTENTITY_H
2
#define RPOINTENTITY_H
3
4
#include "
REntity.h
"
5
#include "
RPointData.h
"
6
7
class
RDocument
;
8
class
RExporter
;
9
17
class
RPointEntity
:
public
REntity
{
18
19
public
:
20
static
RPropertyTypeId
PropertyCustom
;
21
static
RPropertyTypeId
PropertyHandle
;
22
static
RPropertyTypeId
PropertyType
;
23
static
RPropertyTypeId
PropertyBlock
;
24
static
RPropertyTypeId
PropertyLayer
;
25
static
RPropertyTypeId
PropertyLinetype
;
26
static
RPropertyTypeId
PropertyLineweight
;
27
static
RPropertyTypeId
PropertyColor
;
28
static
RPropertyTypeId
PropertyDrawOrder
;
29
static
RPropertyTypeId
PropertyPositionX
;
30
static
RPropertyTypeId
PropertyPositionY
;
31
static
RPropertyTypeId
PropertyPositionZ
;
32
33
public
:
34
RPointEntity
(
RDocument
*
document
,
const
RPointData
&
data
,
35
RObject::Id
objectId
=
RObject::INVALID_ID
);
36
virtual
~RPointEntity
();
37
38
static
void
init
();
39
40
virtual
RPointEntity
*
clone
()
const
{
41
return
new
RPointEntity
(*
this
);
42
}
43
44
virtual
RS::EntityType
getType
()
const
{
45
return
RS::EntityPoint
;
46
}
47
48
bool
setProperty
(
RPropertyTypeId
propertyTypeId,
const
QVariant& value);
49
QPair<QVariant, RPropertyAttributes>
getProperty
(
50
RPropertyTypeId
propertyTypeId,
51
bool
humanReadable =
false
,
bool
noAttributes =
false
);
52
53
virtual
void
exportEntity
(
RExporter
& e,
bool
preview=
false
)
const
;
54
55
virtual
RPointData
&
getData
() {
56
return
data
;
57
}
58
59
virtual
const
RPointData
&
getData
()
const
{
60
return
data
;
61
}
62
63
RVector
getPosition
()
const
{
64
return
data
.
getPosition
();
65
}
66
67
protected
:
68
virtual
void
print
(QDebug dbg)
const
;
69
70
protected
:
71
RPointData
data
;
72
};
73
74
Q_DECLARE_METATYPE
(
RPointEntity
*)
75
Q_DECLARE_METATYPE
(QSharedPointer<
RPointEntity
>)
76
Q_DECLARE_METATYPE
(QSharedPointer<
RPointEntity
>*)
77
78
#endif
src
entity
RPointEntity.h
Generated on Tue Jun 26 2012 18:41:08 for QCAD Application Framework by
1.8.1.1