1 /****************************************************************************
2 ** $Id: rs_painteradapter.h 1866 2004-04-04 22:48:00Z andrew $
4 ** Copyright (C) 2001-2003 RibbonSoft. All rights reserved.
6 ** This file is part of the qcadlib Library project.
8 ** This file may be distributed and/or modified under the terms of the
9 ** GNU General Public License version 2 as published by the Free Software
10 ** Foundation and appearing in the file LICENSE.GPL included in the
11 ** packaging of this file.
13 ** Licensees holding valid qcadlib Professional Edition licenses may use
14 ** this file in accordance with the qcadlib Commercial License
15 ** Agreement provided with the Software.
17 ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
18 ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
20 ** See http://www.ribbonsoft.com for further details.
22 ** Contact info@ribbonsoft.com if any conditions of this licensing are
25 **********************************************************************/
28 #ifndef RS_PAINTERADAPTER_H
29 #define RS_PAINTERADAPTER_H
31 #include "rs_painter.h"
33 #include <Q3PointArray>
36 * An abstract adapter class for painter object. The methods in this class are empty.
37 * This class exists as convenience for creating painter objects.
39 class RS_PainterAdapter: public RS_Painter
42 RS_PainterAdapter() : RS_Painter() {}
43 virtual ~RS_PainterAdapter() {}
45 // virtual void moveTo(int, int) {}
46 // virtual void lineTo(int, int) {}
48 virtual void drawGridPoint(const Vector&) {}
49 virtual void drawPoint(const Vector&) {}
50 virtual void drawLine(const Vector&, const Vector&) {}
51 virtual void drawRect(const Vector&, const Vector&) {}
52 virtual void drawArc(const Vector&, double, double, double,
53 const Vector&, const Vector&, bool ) {}
54 virtual void drawArc(const Vector&, double,
55 double, double, bool ) {}
56 void createArc(Q3PointArray& , const Vector&, double, double, double, bool) {}
57 virtual void drawCircle(const Vector&, double) {}
58 virtual void drawEllipse(const Vector&,
59 double, double, double, double, double, bool) {}
60 virtual void drawImg(QImage& , const Vector&,
61 double, const Vector&, int, int, int, int) {}
63 // virtual void drawTextH(int, int, int, int, const QString&) {}
64 // virtual void drawTextV(int, int, int, int, const QString&) {}
66 virtual void fillRect(int, int, int, int, const RS_Color&) {}
68 virtual void fillTriangle(const Vector&, const Vector&, const Vector&) {}
70 virtual void setPreviewPen() {}
71 virtual RS_Pen getPen() { return RS_Pen(); }
72 virtual void setPen(const RS_Pen&) {}
73 virtual void setPen(const RS_Color&) {}
74 virtual void setPen(int, int, int) {}
75 virtual void disablePen() {}
76 virtual void setBrush(const RS_Color&) {}
77 virtual void drawPolygon(const Q3PointArray& ) {}
78 virtual void erase() {}
79 virtual int getWidth() { return 0; }
80 virtual int getHeight() { return 0; }
82 virtual void setXORMode() {}
83 virtual void setNormalMode() {}
85 virtual void setClipRect(int, int, int, int) {}
86 virtual void resetClipping() {}