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 
32 public:
33  RPainterPathExporter() : RExporter(), exportZeroLinesAsPoints(true) { }
34 
35  virtual void exportLineSegment(const RLine& line, double angle = RNANDOUBLE);
36  virtual void exportXLine(const RXLine& xLine) {
37  Q_UNUSED(xLine)
38  }
39 
40  virtual void exportRay(const RRay& ray) {
41  Q_UNUSED(ray)
42  }
43 
44  virtual void exportPoint(const RPoint& point) {
45  Q_UNUSED(point)
46  }
47  virtual void exportArcSegment(const RArc& arc) {
48  Q_UNUSED(arc)
49  }
50  virtual void exportTriangle(const RTriangle& triangle) {
51  Q_UNUSED(triangle)
52  }
53 
54  RPainterPath getPainterPath();
56  exportZeroLinesAsPoints = on;
57  }
58 
59 private:
62 };
63 
64 #endif