7#ifndef _KOPENCILTOOL_H_
8#define _KOPENCILTOOL_H_
12#include <kconfiggroup.h>
20#include "kritabasicflakes_export.h"
36 void activate(
const QSet<KoShape*> &shapes)
override;
47 virtual void addPathShape(
KoPathShape* path,
bool closePath);
51 void setFittingError(qreal fittingError);
52 qreal getFittingError();
53 void setStrokeColor(QColor color);
56 void selectMode(
int mode);
57 void setOptimize(
int state);
58 void setDelta(
double delta);
61 virtual void slotUpdatePencilCursor();
65 qreal lineAngle(
const QPointF &
p1,
const QPointF &
p2);
66 void addPoint(
const QPointF & point);
67 void finish(
bool closePath);
70 KoPathPoint* endPointAtPosition(
const QPointF &position);
78 bool m_optimizeRaw {
false};
79 bool m_optimizeCurve {
false};
80 qreal m_combineAngle {15.0};
81 qreal m_fittingError {5.0};
A KoPathPoint represents a point in a path.
The position of a path point within a path shape.