QCAD
Open Source 2D CAD
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
RPainterPathExporter.h
Go to the documentation of this file.
1 
20 #ifndef RPAINTERPATHEXPORTER_H
21 #define RPAINTERPATHEXPORTER_H
22 
23 #include "core_global.h"
24 
25 #include "RArc.h"
26 #include "RExporter.h"
27 #include "RPainterPath.h"
28 #include "RRay.h"
29 #include "RXLine.h"
30 
35 public:
36  RPainterPathExporter() : RExporter(), exportZeroLinesAsPoints(true) { }
37 
38  virtual void exportLineSegment(const RLine& line, double angle = RNANDOUBLE);
39  virtual void exportPainterPaths(const QList<RPainterPath>& paths);
40 
41  virtual void exportXLine(const RXLine& xLine) {
42  Q_UNUSED(xLine)
43  }
44 
45  virtual void exportRay(const RRay& ray) {
46  Q_UNUSED(ray)
47  }
48 
49  virtual void exportPoint(const RPoint& point) {
50  Q_UNUSED(point)
51  }
52  virtual void exportArcSegment(const RArc& arc, bool allowForZeroLength = false) {
53  Q_UNUSED(arc)
54  Q_UNUSED(allowForZeroLength)
55  }
56  virtual void exportTriangle(const RTriangle& triangle) {
57  Q_UNUSED(triangle)
58  }
59 
60  //void clear();
61  RPainterPath getPainterPath();
63  exportZeroLinesAsPoints = on;
64  }
65 
66 private:
69 };
70 
71 #endif