7#ifndef _KOPENCILTOOL_H_
8#define _KOPENCILTOOL_H_
12#include <kconfiggroup.h>
19#include "kritabasicflakes_export.h"
35 void activate(
const QSet<KoShape*> &shapes)
override;
46 virtual void addPathShape(
KoPathShape* path,
bool closePath);
50 void setFittingError(qreal fittingError);
51 qreal getFittingError();
54 void selectMode(
int mode);
55 void setOptimize(
int state);
56 void setDelta(
double delta);
59 virtual void slotUpdatePencilCursor();
63 qreal lineAngle(
const QPointF &
p1,
const QPointF &
p2);
64 void addPoint(
const QPointF & point);
65 void finish(
bool closePath);
68 KoPathPoint* endPointAtPosition(
const QPointF &position);
76 bool m_optimizeRaw {
false};
77 bool m_optimizeCurve {
false};
78 qreal m_combineAngle {15.0};
79 qreal m_fittingError {5.0};
A KoPathPoint represents a point in a path.
The position of a path point within a path shape.