21#ifndef KIS_TOOL_FREEHAND_H_
22#define KIS_TOOL_FREEHAND_H_
25#include "kis_tool_paint.h"
27#include "koffice_export.h"
35class KRITACORE_EXPORT KisToolFreehand : public KisToolPaint {
38 typedef KisToolPaint super;
41 KisToolFreehand( const TQString transactionText);
42 virtual ~KisToolFreehand();
46 virtual void buttonPress(KisButtonPressEvent *e);
47 virtual void move(KisMoveEvent *e);
48 virtual void buttonRelease(KisButtonReleaseEvent *e);
50 virtual enumToolType toolType() { return TOOL_FREEHAND; }
53 virtual void paintAt( const KisPoint &pos,
54 const double pressure,
58 virtual void paintLine( const KisPoint & pos1,
59 const double pressure1,
63 const double pressure2,
69 inline KisPainter * painter() { return m_painter; };
70 virtual void initPaint(KisEvent *e);
71 virtual void endPaint();
73 KisImageSP currentImage();
75 void paintOutline( const KisPoint& point);
79 double m_prevPressure;
84 bool m_paintIncremental;
85 bool m_paintOnSelection;
87 KisPaintDeviceSP m_target;
88 KisLayerSP m_tempLayer;
89 KisPaintDeviceSP m_source;
91 TQString m_transactionText;
95 KisImageSP m_currentImage;
97 bool m_paintedOutline;
KisCanvasSubject is part of the Observer pattern.
This layer is of a type that can be painted on.
KisPainter contains the graphics primitives necessary to draw on a KisPaintDevice.
A double-based point class that can return it's coordinates approximated to integers.
|