QCAD Application Framework
CAD Application Development and Automation.
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
RDimAlignedEntity.h
Go to the documentation of this file.
1 #ifndef RDIMALIGNEDENTITY_H
2 #define RDIMALIGNEDENTITY_H
3 
4 #include "RDimensionEntity.h"
5 #include "RDimAlignedData.h"
6 
7 class RDocument;
8 class RExporter;
9 
18 
19  Q_DECLARE_TR_FUNCTIONS(RDimAlignedEntity)
20 
21 public:
31 
38 
48 
49 public:
52  virtual ~RDimAlignedEntity();
53 
54  static void init();
55 
56  virtual RDimAlignedEntity* clone() const {
57  return new RDimAlignedEntity(*this);
58  }
59 
60  virtual RS::EntityType getType() const {
61  return RS::EntityDimAligned;
62  }
63 
64  bool setProperty(RPropertyTypeId propertyTypeId, const QVariant& value);
65  QPair<QVariant, RPropertyAttributes> getProperty(
66  RPropertyTypeId propertyTypeId,
67  bool humanReadable = false, bool noAttributes = false);
68 
69  virtual RDimAlignedData& getData() {
70  return data;
71  }
72 
74  data = d;
75  }
76 
77  virtual const RDimAlignedData& getData() const {
78  return data;
79  }
80 
81  void setExtensionPoint1(const RVector& p) {
83  }
84 
86  return data.getExtensionPoint1();
87  }
88 
89  void setExtensionPoint2(const RVector& p) {
91  }
92 
94  return data.getExtensionPoint2();
95  }
96 
97 protected:
98  virtual void print(QDebug dbg) const;
99 
100 protected:
102 };
103 
105 Q_DECLARE_METATYPE(QSharedPointer<RDimAlignedEntity>)
106 Q_DECLARE_METATYPE(QSharedPointer<RDimAlignedEntity>*)
107 
108 #endif