QCAD Application Framework
CAD Application Development and Automation.
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
RDimDiametricEntity.h
Go to the documentation of this file.
1 #ifndef RDIMDIAMETRICENTITY_H
2 #define RDIMDIAMETRICENTITY_H
3 
4 #include "RDimensionEntity.h"
5 #include "RDimDiametricData.h"
6 
7 class RDocument;
8 class RExporter;
9 
18 
19  Q_DECLARE_TR_FUNCTIONS(RDimDiametricEntity)
20 
21 public:
31 
35 
39 
43 
47 
48 public:
51  virtual ~RDimDiametricEntity();
52 
53  static void init();
54 
55  virtual RDimDiametricEntity* clone() const {
56  return new RDimDiametricEntity(*this);
57  }
58 
59  virtual RS::EntityType getType() const {
61  }
62 
63  bool setProperty(RPropertyTypeId propertyTypeId, const QVariant& value);
64  QPair<QVariant, RPropertyAttributes> getProperty(
65  RPropertyTypeId propertyTypeId,
66  bool humanReadable = false, bool noAttributes = false);
67 
69  return data;
70  }
71 
73  data = d;
74  }
75 
76  virtual const RDimDiametricData& getData() const {
77  return data;
78  }
79 
80  void setChordPoint(const RVector& p) {
82  }
83 
85  return data.getChordPoint();
86  }
87 
88  void setFarChordPoint(const RVector& p) {
90  }
91 
93  return data.getFarChordPoint();
94  }
95 
96 protected:
97  virtual void print(QDebug dbg) const;
98 
99 protected:
101 };
102 
105 Q_DECLARE_METATYPE(QSharedPointer<RDimDiametricEntity>*)
106 
107 #endif