QCAD
Open Source 2D CAD
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
RPainterPathEngine.h
Go to the documentation of this file.
1 
20 #ifndef RPAINTERPATHENGINE_H
21 #define RPAINTERPATHENGINE_H
22 
23 #include "core_global.h"
24 
25 #include <QPaintEngine>
26 //#include "private/qtextengine_p.h"
27 //#include "private/qfontengine_p.h"
28 
29 #include "RPainterPath.h"
30 
36 class QCADCORE_EXPORT RPainterPathEngine : public QPaintEngine {
37 public:
39  virtual ~RPainterPathEngine();
40 
41  virtual bool begin(QPaintDevice *device);
42  virtual bool end();
43 
44  virtual void updateState(const QPaintEngineState &state);
45 
46  //virtual void drawTextItem(const QPointF &p, const QTextItem &textItem);
47 
48  virtual void drawPixmap(const QRectF &r, const QPixmap &pm, const QRectF &sr);
49 
50  virtual QPaintEngine::Type type() const;
51 
52  virtual void drawPath(const QPainterPath& path);
53 
54  QList<RPainterPath> getPainterPaths();
55 
56  virtual void drawPolygon(const QPointF *points, int pointCount, PolygonDrawMode mode);
57 
58 private:
59  QList<RPainterPath> paths;
60  QTransform transform;
61 };
62 
63 #endif