QCAD Application Framework
CAD Application Development and Automation.
 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 
15  friend class RDimRotatedEntity;
16 
17 protected:
19 
20 public:
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(
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 
55 Q_DECLARE_METATYPE(QSharedPointer<RDimRotatedData>)
56 
57 #endif