QCAD Application Framework
CAD Application Development and Automation.
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
RDimOrdinateEntity.h
Go to the documentation of this file.
1 #ifndef RDIMORDINATEENTITY_H
2 #define RDIMORDINATEENTITY_H
3 
4 #include "RDimensionEntity.h"
5 #include "RDimOrdinateData.h"
6 
7 class RDocument;
8 class RExporter;
9 
18 
19  Q_DECLARE_TR_FUNCTIONS(RDimOrdinateEntity)
20 
21 public:
31 
38 
42 
44 
48 
52 
53 public:
56  virtual ~RDimOrdinateEntity();
57 
58  static void init();
59 
60  virtual RDimOrdinateEntity* clone() const {
61  return new RDimOrdinateEntity(*this);
62  }
63 
64  virtual RS::EntityType getType() const {
65  return RS::EntityDimOrdinate;
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 
74  return data;
75  }
76 
78  data = d;
79  }
80 
81  virtual const RDimOrdinateData& getData() const {
82  return data;
83  }
84 
85  void setLeaderEndPoint(const RVector& p) {
87  }
88 
90  return data.getLeaderEndPoint();
91  }
92 
93  void setDefiningPoint(const RVector& p) {
95  }
96 
98  return data.getDefiningPoint();
99  }
100 
101 protected:
102  virtual void print(QDebug dbg) const;
103 
104 protected:
106 };
107 
109 Q_DECLARE_METATYPE(QSharedPointer<RDimOrdinateEntity>)
110 Q_DECLARE_METATYPE(QSharedPointer<RDimOrdinateEntity>*)
111 
112 #endif