| 1 | /*************************************************************************** |
| 2 | * This file is part of Robocut. * |
| 3 | * Copyright (C) 2010 Tim Hutt <[email protected]> * |
| 4 | * Copyright (C) 2010 Markus Schulz <[email protected]> * |
| 5 | * * |
| 6 | * This program is free software; you can redistribute it and/or modify * |
| 7 | * it under the terms of the GNU General Public License as published by * |
| 8 | * the Free Software Foundation; either version 3 of the License, or * |
| 9 | * (at your option) any later version. * |
| 10 | * * |
| 11 | * This program is distributed in the hope that it will be useful, * |
| 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of * |
| 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * |
| 14 | * GNU General Public License for more details. * |
| 15 | * * |
| 16 | * You should have received a copy of the GNU General Public License * |
| 17 | * along with this program; if not, write to the * |
| 18 | * Free Software Foundation, Inc., * |
| 19 | * 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. * |
| 20 | ***************************************************************************/ |
| 21 | |
| 22 | #pragma once |
| 23 | |
| 24 | #include <QPaintEngine> |
| 25 | #include <QPaintDevice> |
| 26 | #include <QPainterPath> |
| 27 | #include "PathPaintPage.h"cxx . . $ `<file>/PathPaintPage.h`/ |
| 28 | |
| 29 | // This is a simple paint engine that records all the paths painted. |
| 30 | // It is used with QSvgPainter to record the paths in an SVG. |
| 31 | // The only device it can draw to is PathPaintDevice |
| 32 | class PathPaintEnginecxx . . $ PathPaintEngine# : public QPaintEnginecxx . . $ QPaintEngine# |
| 33 | { |
| 34 | public: |
| 35 | PathPaintEnginecxx . . $ PathPaintEngine#PathPaintEngine(dd2eedc069b0ab5f).(QPaintDevicecxx . . $ QPaintDevice#* pdev); |
| 36 | bool begincxx . . $ PathPaintEngine#begin(3d42010d693361d5).(QPaintDevicecxx . . $ QPaintDevice#* pdev); |
| 37 | |
| 38 | void drawPathcxx . . $ PathPaintEngine#drawPath(30c23ba204361e3b).(const QPainterPathcxx . . $ QPainterPath#& path); |
| 39 | |
| 40 | void drawPixmapcxx . . $ PathPaintEngine#drawPixmap(75213d7598e6f7bf).(const QRectFcxx . . $ QRectF#& r, const QPixmapcxx . . $ QPixmap#& pm, const QRectFcxx . . $ QRectF#& sr); |
| 41 | |
| 42 | void drawPolygoncxx . . $ PathPaintEngine#drawPolygon(6c5cabee4d370237).(const QPointFcxx . . $ QPointF#* points, int pointCount, PolygonDrawModecxx . . $ QPaintEngine#PolygonDrawMode# mode); |
| 43 | |
| 44 | bool endcxx . . $ PathPaintEngine#end(c9857a73d68e59ba).(); |
| 45 | |
| 46 | Typecxx . . $ QPaintEngine#Type# typecxx . . $ PathPaintEngine#type(368383b1e95331b7).() const; |
| 47 | void updateStatecxx . . $ PathPaintEngine#updateState(699f0c2cebb1474d).(const QPaintEngineStatecxx . . $ QPaintEngineState#& state); |
| 48 | private: |
| 49 | PathPaintDevicecxx . . $ PathPaintDevice#* devcxx . . $ PathPaintEngine#dev.; |
| 50 | QTransformcxx . . $ QTransform# transformcxx . . $ PathPaintEngine#transform.; |
| 51 | QVectorcxx . . $ QVector#<qrealcxx . . $ qreal#> dashPatterncxx . . $ PathPaintEngine#dashPattern.; |
| 52 | bool isCosmeticcxx . . $ PathPaintEngine#isCosmetic.; |
| 53 | qrealcxx . . $ qreal# getDistancecxx . . $ PathPaintEngine#getDistance(20ac751146d29a5f).(const QPointFcxx . . $ QPointF# &p1, const QPointFcxx . . $ QPointF# &p2); |
| 54 | QPointFcxx . . $ QPointF# getPointAtLenghtcxx . . $ PathPaintEngine#getPointAtLenght(39f5c5059530c0e3).(const QPointFcxx . . $ QPointF# &p1, const QPointFcxx . . $ QPointF# &p2, qrealcxx . . $ qreal# &l1); |
| 55 | }; |
| 56 |