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, bool allowForZeroLength = false) {
48  Q_UNUSED(arc)
49  Q_UNUSED(allowForZeroLength)
50  }
51  virtual void exportTriangle(const RTriangle& triangle) {
52  Q_UNUSED(triangle)
53  }
54 
55  RPainterPath getPainterPath();
57  exportZeroLinesAsPoints = on;
58  }
59 
60 private:
63 };
64 
65 #endif