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
RDimRotatedData.h
Go to the documentation of this file.
1
#ifndef RDIMROTATEDDATA_H
2
#define RDIMROTATEDDATA_H
3
4
#include "
RDocument.h
"
5
#include "
RDimLinearData.h
"
6
#include "
RVector.h
"
7
14
class
RDimRotatedData
:
public
RDimLinearData
{
15
friend
class
RDimRotatedEntity
;
16
17
protected
:
18
RDimRotatedData
(
RDocument
*
document
,
const
RDimRotatedData
&
data
);
19
20
public
:
21
RDimRotatedData
();
22
RDimRotatedData
(
const
RDimensionData
& dimData,
23
const
RVector
&
extensionPoint1
,
24
const
RVector
&
extensionPoint2
,
25
double
rotation
);
26
27
virtual
bool
isValid
()
const
;
28
29
void
setRotation
(
double
r) {
30
rotation
= r;
31
}
32
33
double
getRotation
()
const
{
34
return
rotation
;
35
}
36
37
virtual
QList<RVector>
getReferencePoints
(
38
RS::ProjectionRenderingHint
hint =
RS::RenderTop
)
const
;
39
40
// virtual bool moveReferencePoint(const RVector& referencePoint,
41
// const RVector& targetPoint);
42
43
virtual
bool
rotate
(
double
rotation
,
const
RVector
& center);
44
virtual
bool
mirror
(
const
RLine
& axis);
45
46
virtual
QList<QSharedPointer<RShape> >
getShapes
(
const
RBox
& queryBox =
RDEFAULT_RBOX
)
const
;
47
virtual
QString
getAutoMeasurement
()
const
;
48
49
private
:
51
double
rotation
;
52
};
53
54
Q_DECLARE_METATYPE
(
RDimRotatedData
*)
55
Q_DECLARE_METATYPE
(QSharedPointer<
RDimRotatedData
>)
56
57
#endif
src
entity
RDimRotatedData.h
Generated on Tue Jun 26 2012 18:41:08 for QCAD Application Framework by
1.8.1.1