18#ifndef KIS_GRADIENT_PAINTER_H_
19#define KIS_GRADIENT_PAINTER_H_
23#include "kis_global.h"
26#include "kis_painter.h"
27#include <koffice_export.h>
33class KRITACORE_EXPORT KisGradientPainter : public KisPainter
36 typedef KisPainter super;
41 KisGradientPainter(KisPaintDeviceSP device);
44 enum enumGradientShape {
46 GradientShapeBiLinear,
50 GradientShapeConicalSymetric
53 enum enumGradientRepeat {
55 GradientRepeatForwards,
56 GradientRepeatAlternate
59 void setGradient(KisGradient& gradient) { m_gradient = &gradient; }
60 void setGradient(KisGradient* gradient) { m_gradient = gradient; }
67 bool paintGradient( const KisPoint& gradientVectorStart,
68 const KisPoint& gradientVectorEnd,
69 enumGradientShape shape,
70 enumGradientRepeat repeat,
71 double antiAliasThreshold,
80 KisGradient *m_gradient;
KisPainter contains the graphics primitives necessary to draw on a KisPaintDevice.
|