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