QCAD Application Framework
CAD Application Development and Automation.
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
RDimRadialData.h
Go to the documentation of this file.
1 #ifndef RDIMRADIALDATA_H
2 #define RDIMRADIALDATA_H
3 
4 #include "RDocument.h"
5 #include "RDimensionData.h"
6 #include "RVector.h"
7 
15  friend class RDimRadialEntity;
16 
17 protected:
19 
20 public:
22  RDimRadialData(const RDimensionData& dimData,
23  const RVector& chordPoint);
24 
25  virtual bool isValid() const;
26 
27  void setCenter(const RVector& p) {
29  }
30 
31  RVector getCenter() const {
32  return getDefinitionPoint();
33  }
34 
35  void setChordPoint(const RVector& p) {
36  chordPoint = p;
37  }
38 
40  return chordPoint;
41  }
42 
43  virtual QList<RVector> getReferencePoints(
45 
46  virtual bool moveReferencePoint(const RVector& referencePoint,
47  const RVector& targetPoint);
48 
49  virtual bool move(const RVector& offset);
50  virtual bool rotate(double rotation, const RVector& center);
51  virtual bool scale(const RVector& scaleFactors, const RVector& center);
52  virtual bool mirror(const RLine& axis);
53 
54  virtual QList<QSharedPointer<RShape> > getShapes(const RBox& queryBox = RDEFAULT_RBOX) const;
55  virtual QString getAutoMeasurement() const;
56 
57 private:
60 };
61 
63 Q_DECLARE_METATYPE(QSharedPointer<RDimRadialData>)
64 
65 #endif