QCAD
Open Source 2D CAD
Loading...
Searching...
No Matches
REllipseProxy.h
Go to the documentation of this file.
1
20#ifndef RELLIPSEPROXY_H
21#define RELLIPSEPROXY_H
22
23#include "../core_global.h"
24
25#include "RS.h"
26#include "RVector.h"
27
28class REllipse;
29class RSpline;
30class RPolyline;
31class RShape;
32
33
41public:
42 virtual ~REllipseProxy() {}
43
44 virtual QList<RSpline> approximateWithSplines(const REllipse& ellipse) const = 0;
45 virtual RPolyline approximateWithArcs(const REllipse& ellipse, int segments) const = 0;
46
47 virtual REllipse createInscribed(const RVector& pp1, const RVector& pp2, const RVector& pp3, const RVector& pp4, const RVector& centerHint = RVector::invalid) const = 0;
48 virtual REllipse createFrom4Points(const RVector& pp1, const RVector& pp2, const RVector& pp3, const RVector& pp4) const = 0;
49};
50
51#endif
Low-level mathematical representation of an ellipse or ellipse arc.
Definition REllipse.h:43
Proxy for advanced ellipse functionality.
Definition REllipseProxy.h:40
virtual REllipse createInscribed(const RVector &pp1, const RVector &pp2, const RVector &pp3, const RVector &pp4, const RVector &centerHint=RVector::invalid) const =0
virtual QList< RSpline > approximateWithSplines(const REllipse &ellipse) const =0
virtual REllipse createFrom4Points(const RVector &pp1, const RVector &pp2, const RVector &pp3, const RVector &pp4) const =0
virtual ~REllipseProxy()
Definition REllipseProxy.h:42
virtual RPolyline approximateWithArcs(const REllipse &ellipse, int segments) const =0
Low-level mathematical representation of an open polyline or closed polyline (= polygon).
Definition RPolyline.h:50
Interface for geometrical shape classes.
Definition RShape.h:72
Low-level mathematical representation of a spline.
Definition RSpline.h:59
Represents a 3d vector (x/y/z).
Definition RVector.h:47
static const RVector invalid
invalid vector
Definition RVector.h:335
#define QCADCORE_EXPORT
Definition core_global.h:10