QCAD Application Framework
CAD Application Development and Automation.
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
RDimRotatedEntity.h
Go to the documentation of this file.
1 #ifndef RDIMROTATEDENTITY_H
2 #define RDIMROTATEDENTITY_H
3 
4 #include "RDimensionEntity.h"
5 #include "RDimRotatedData.h"
6 
7 class RDocument;
8 class RExporter;
9 
18 
19  Q_DECLARE_TR_FUNCTIONS(RDimLinearEntity)
20 
21 public:
31 
38 
42 
46 
50 
52 
53 public:
56  virtual ~RDimRotatedEntity();
57 
58  static void init();
59 
60  virtual RDimRotatedEntity* clone() const {
61  return new RDimRotatedEntity(*this);
62  }
63 
64  virtual RS::EntityType getType() const {
65  return RS::EntityDimRotated;
66  }
67 
68  bool setProperty(RPropertyTypeId propertyTypeId, const QVariant& value);
69  QPair<QVariant, RPropertyAttributes> getProperty(
70  RPropertyTypeId propertyTypeId,
71  bool humanReadable = false, bool noAttributes = false);
72 
73  virtual RDimRotatedData& getData() {
74  return data;
75  }
76 
78  data = d;
79  }
80 
81  virtual const RDimRotatedData& getData() const {
82  return data;
83  }
84 
85  void setExtensionPoint1(const RVector& p) {
87  }
88 
90  return data.getExtensionPoint1();
91  }
92 
93  void setExtensionPoint2(const RVector& p) {
95  }
96 
98  return data.getExtensionPoint2();
99  }
100 
101  void setAngle(double a) {
102  data.setRotation(a);
103  }
104 
105  double getAngle() const {
106  return data.getRotation();
107  }
108 
109 protected:
110  virtual void print(QDebug dbg) const;
111 
112 protected:
114 };
115 
117 Q_DECLARE_METATYPE(QSharedPointer<RDimRotatedEntity>)
118 Q_DECLARE_METATYPE(QSharedPointer<RDimRotatedEntity>*)
119 
120 #endif