QCAD
Open Source 2D CAD
Loading...
Searching...
No Matches
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
28public:
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 }
36 return exporter.getLineTypePatternScale(p);
37 }
38
39 virtual void exportPainterPaths(const QList<RPainterPath>& paths, double z = 0.0) {
40 exporter.exportPainterPaths(paths, z);
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
50private:
53};
54
55#endif
#define RNANDOUBLE
Definition RMath.h:74
Copyright (c) 2011-2018 by Andrew Mustun.
Definition RArcExporter.h:27
virtual void exportPainterPaths(const QList< RPainterPath > &paths, double z=0.0)
Definition RArcExporter.h:39
double getLineTypePatternScale(const RLinetypePattern &p) const
Definition RArcExporter.h:35
virtual void exportXLine(const RXLine &)
Exports an infinite line.
Definition RArcExporter.h:45
virtual void exportTriangle(const RTriangle &)
Exports a triangle with the current attributes.
Definition RArcExporter.h:48
virtual void exportPoint(const RPoint &)
Exports a point with the current attributes.
Definition RArcExporter.h:47
RExporter & exporter
Definition RArcExporter.h:51
RArc arc
Definition RArcExporter.h:52
virtual void exportRay(const RRay &)
Exports an infinite ray.
Definition RArcExporter.h:46
virtual RLinetypePattern getLinetypePattern()
Definition RArcExporter.h:32
Low-level mathematical representation of an arc.
Definition RArc.h:42
Abstract base class for exporters.
Definition RExporter.h:78
virtual void exportPainterPaths(const QList< RPainterPath > &paths, double z=0.0)
Definition RExporter.cpp:1640
virtual RLinetypePattern getLinetypePattern()
Definition RExporter.cpp:981
virtual void exportLineSegment(const RLine &line, double angle=RNANDOUBLE)=0
Exports a line segment (a line without pattern).
virtual double getLineTypePatternScale(const RLinetypePattern &p) const
Definition RExporter.cpp:1694
Low-level mathematical representation of a line.
Definition RLine.h:41
Copyright (c) 2011-2018 by Andrew Mustun.
Definition RLinetypePattern.h:42
Low-level mathematical representation of a point.
Definition RPoint.h:40
Low-level mathematical representation of a ray.
Definition RRay.h:41
Low-level mathematical representation of a triangle.
Definition RTriangle.h:49
Represents a 3d vector (x/y/z).
Definition RVector.h:47
Low-level mathematical representation of an infinite line.
Definition RXLine.h:42
#define QCADCORE_EXPORT
Definition core_global.h:10