QCAD
Open Source 2D CAD
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
RDimAlignedData.h
Go to the documentation of this file.
1 
20 #ifndef RDIMALIGNEDDATA_H
21 #define RDIMALIGNEDDATA_H
22 
23 #include "entity_global.h"
24 
25 #include "RDocument.h"
26 #include "RDimLinearData.h"
27 #include "RVector.h"
28 
36  friend class RDimAlignedEntity;
37 
38 protected:
40 
41 public:
43  RDimAlignedData(const RDimensionData& dimData,
44  const RVector& extensionPoint1,
45  const RVector& extensionPoint2);
46 
47  virtual QList<RVector> getReferencePoints(
49 
50  virtual bool moveReferencePoint(const RVector& referencePoint,
51  const RVector& targetPoint);
52 
53  virtual void recomputeDefinitionPoint(
54  const RVector& oldExtPoint1, const RVector& oldExtPoint2,
55  const RVector& newExtPoint1, const RVector& newExtPoint2);
56 
57  virtual QList<QSharedPointer<RShape> > getShapes(const RBox& queryBox = RDEFAULT_RBOX, bool ignoreComplex = false) const;
58  virtual double getMeasuredValue() const;
59  virtual QString getAutoLabel() const;
60 
61 private:
62  // for caching only:
65 };
66 
69 Q_DECLARE_METATYPE(QSharedPointer<RDimAlignedData>)
70 
71 #endif