QCAD Application Framework
CAD Application Development and Automation.
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
RDimLinearEntity.h
Go to the documentation of this file.
1 #ifndef RDIMLINEARENTITY_H
2 #define RDIMLINEARENTITY_H
3 
4 #include "RDimensionEntity.h"
5 #include "RDimLinearData.h"
6 
7 class RDocument;
8 class RExporter;
9 
18 
19  Q_DECLARE_TR_FUNCTIONS(RDimLinearEntity)
20 
21 public:
31 
38 
42 
46 
50 
51 public:
53  virtual ~RDimLinearEntity();
54 
55  static void init();
56 
57  bool setProperty(RPropertyTypeId propertyTypeId, const QVariant& value);
58  QPair<QVariant, RPropertyAttributes> getProperty(
59  RPropertyTypeId propertyTypeId,
60  bool humanReadable = false, bool noAttributes = false);
61 
62  virtual RDimLinearData& getData() = 0;
63  virtual const RDimLinearData& getData() const = 0;
64 
65  void setExtensionPoint1(const RVector& p) {
67  }
68 
70  return getData().getExtensionPoint1();
71  }
72 
73  void setExtensionPoint2(const RVector& p) {
75  }
76 
78  return getData().getExtensionPoint2();
79  }
80 
81 protected:
82  virtual void print(QDebug dbg) const;
83 };
84 
86 Q_DECLARE_METATYPE(QSharedPointer<RDimLinearEntity>)
87 Q_DECLARE_METATYPE(QSharedPointer<RDimLinearEntity>*)
88 
89 #endif