QCAD
Open Source 2D CAD
RArcExporter.h
Go to the documentation of this file.
1 
19 #ifndef RARCEXPORTER_H
20 #define RARCEXPORTER_H
21 
22 #include "core_global.h"
23 
24 #include "RArc.h"
25 #include "RExporter.h"
26 
28 public:
29  RArcExporter(RExporter& exporter, const RArc& arc, double offset);
30  virtual void exportLineSegment(const RLine& line, double angle = RNANDOUBLE);
31 
33  return exporter.getLinetypePattern();
34  }
35  double getLineTypePatternScale(const RLinetypePattern& p) const {
36  return exporter.getLineTypePatternScale(p);
37  }
38 
39  virtual void exportPainterPaths(const QList<RPainterPath>& paths) {
40  exporter.exportPainterPaths(paths);
41  }
42 
43  virtual void exportPainterPaths(const QList<RPainterPath>& paths, double angle, const RVector& pos);
44 
45  virtual void exportXLine(const RXLine& ) {}
46  virtual void exportRay(const RRay& ) {}
47  virtual void exportPoint(const RPoint& ) {}
48  virtual void exportTriangle(const RTriangle& ) {}
49 
50 private:
53 };
54 
55 #endif
virtual void exportPainterPaths(const QList< RPainterPath > &paths)
Definition: RExporter.cpp:1558
Represents a 3d vector (x/y/z).
Definition: RVector.h:46
virtual void exportLineSegment(const RLine &line, double angle=RNANDOUBLE)=0
Exports a line segment (a line without pattern).
Low-level mathematical representation of a triangle.
Definition: RTriangle.h:46
Low-level mathematical representation of an arc.
Definition: RArc.h:40
virtual void exportTriangle(const RTriangle &)
Exports a triangle with the current attributes.
Definition: RArcExporter.h:48
virtual void exportXLine(const RXLine &)
Exports an infinite line.
Definition: RArcExporter.h:45
virtual void exportPoint(const RPoint &)
Exports a point with the current attributes.
Definition: RArcExporter.h:47
#define QCADCORE_EXPORT
Definition: core_global.h:10
Copyright (c) 2011-2017 by Andrew Mustun.
Definition: RLinetypePattern.h:45
double getLineTypePatternScale(const RLinetypePattern &p) const
Definition: RArcExporter.h:35
#define RNANDOUBLE
Definition: RMath.h:71
virtual double getLineTypePatternScale(const RLinetypePattern &p) const
Definition: RExporter.cpp:1592
Low-level mathematical representation of an infinite line.
Definition: RXLine.h:42
virtual void exportRay(const RRay &)
Exports an infinite ray.
Definition: RArcExporter.h:46
Low-level mathematical representation of a line.
Definition: RLine.h:41
Copyright (c) 2011-2017 by Andrew Mustun.
Definition: RPoint.h:38
virtual RLinetypePattern getLinetypePattern()
Definition: RArcExporter.h:32
virtual RLinetypePattern getLinetypePattern()
Definition: RExporter.cpp:893
Abstract base class for exporters.
Definition: RExporter.h:71
RExporter & exporter
Definition: RArcExporter.h:51
virtual void exportPainterPaths(const QList< RPainterPath > &paths)
Definition: RArcExporter.h:39
Copyright (c) 2011-2017 by Andrew Mustun.
Definition: RArcExporter.h:27
Low-level mathematical representation of a ray.
Definition: RRay.h:42
RArc arc
Definition: RArcExporter.h:52