10#ifndef _PARALLELRULER_ASSISTANT_H_
11#define _PARALLELRULER_ASSISTANT_H_
25 QPointF
adjustPosition(
const QPointF& point,
const QPointF& strokeBegin,
const bool snapToAny, qreal moveThresholdPt)
override;
26 void adjustLine(QPointF &point, QPointF& strokeBegin)
override;
43 QPointF
project(
const QPointF& pt,
const QPointF& strokeBegin, qreal moveThresholdPt);
53 QString
id()
const override;
54 QString
name()
const override;
bool isLocal() const
isLocal
KisPaintingAssistant * createPaintingAssistant() const override
ParallelRulerAssistantFactory()
~ParallelRulerAssistantFactory() override
QString id() const override
QString name() const override
QPointF getDefaultEditorPosition() const override
QPointF project(const QPointF &pt, const QPointF &strokeBegin, qreal moveThresholdPt)
void adjustLine(QPointF &point, QPointF &strokeBegin) override
KisPaintingAssistantSP clone(QMap< KisPaintingAssistantHandleSP, KisPaintingAssistantHandleSP > &handleMap) const override
int numHandles() const override
void drawCache(QPainter &gc, const KisCoordinatesConverter *converter, bool assistantVisible=true) override
performance layer where the graphics can be drawn from a cache instead of generated every render upda...
void drawAssistant(QPainter &gc, const QRectF &updateRect, const KisCoordinatesConverter *converter, bool cached=true, KisCanvas2 *canvas=0, bool assistantVisible=true, bool previewVisible=true) override
bool loadCustomXml(QXmlStreamReader *xml) override
KisPaintingAssistantHandleSP secondLocalHandle() const override
secondLocalHandle Note: this doesn't guarantee it will be the bottomRight corner! For that,...
QPointF adjustPosition(const QPointF &point, const QPointF &strokeBegin, const bool snapToAny, qreal moveThresholdPt) override
void saveCustomXml(QXmlStreamWriter *xml) override
KisPaintingAssistantHandleSP firstLocalHandle() const override
firstLocalHandle Note: this doesn't guarantee it will be the topleft corner! For that,...
bool canBeLocal() const override
canBeLocal
bool isAssistantComplete() const override