18 #ifndef QGSDXFPAINTENGINE_H 19 #define QGSDXFPAINTENGINE_H 21 #include <QPaintEngine> 42 QPaintEngine::Type
type()
const override;
47 void drawPolygon(
const QPointF * points,
int pointCount, PolygonDrawMode mode )
override;
73 double currentWidth()
const;
75 void moveTo(
double dx,
double dy );
76 void lineTo(
double dx,
double dy );
77 void curveTo(
double dx,
double dy );
85 static double bernsteinPoly(
int n,
int i,
double t );
86 static int lower(
int n,
int i );
87 static double power(
double a,
int b );
96 #endif // QGSDXFPAINTENGINE_H virtual void drawPixmap(const QRectF &r, const QPixmap &pm, const QRectF &sr)=0
virtual void drawPath(const QPainterPath &path)
A paint device for drawing into dxf files.
virtual bool begin(QPaintDevice *pdev)=0
int ANALYSIS_EXPORT faculty(int n)
Faculty function.
Point geometry type, with support for z-dimension and m-values.
virtual void drawLines(const QLine *lines, int lineCount)
virtual Type type() const=0
void setShift(QPointF shift)
double ANALYSIS_EXPORT power(double a, int b)
Power function for integer coefficients.
int ANALYSIS_EXPORT lower(int n, int i)
Lower function.
virtual void drawPolygon(const QPointF *points, int pointCount, PolygonDrawMode mode)
virtual void updateState(const QPaintEngineState &state)=0
void setLayer(const QString &layer)