Changeset View
Changeset View
Standalone View
Standalone View
plugins/assistants/Assistants/VanishingPointAssistant.h
Context not available. | |||||
50 | QPointF buttonPosition() const override; | 50 | QPointF buttonPosition() const override; | ||
---|---|---|---|---|---|
51 | int numHandles() const override { return 1; } | 51 | int numHandles() const override { return 1; } | ||
52 | 52 | | |||
53 | bool isAssistantComplete() const; | 53 | float referenceLineDensity(); | ||
54 | void setReferenceLineDensity(float value); | ||||
55 | | ||||
56 | bool isAssistantComplete() const; | ||||
57 | | ||||
58 | void saveCustomXml(QXmlStreamWriter* xml) override; | ||||
59 | bool loadCustomXml(QXmlStreamReader* xml) override; | ||||
54 | 60 | | |||
55 | protected: | 61 | protected: | ||
56 | void drawAssistant(QPainter& gc, const QRectF& updateRect, const KisCoordinatesConverter* converter, bool cached = true,KisCanvas2* canvas=0, bool assistantVisible=true, bool previewVisible=true) override; | 62 | void drawAssistant(QPainter& gc, const QRectF& updateRect, const KisCoordinatesConverter* converter, bool cached = true,KisCanvas2* canvas=0, bool assistantVisible=true, bool previewVisible=true) override; | ||
Context not available. | |||||
58 | private: | 64 | private: | ||
59 | QPointF project(const QPointF& pt, const QPointF& strokeBegin); | 65 | QPointF project(const QPointF& pt, const QPointF& strokeBegin); | ||
60 | KisCanvas2 *m_canvas; | 66 | KisCanvas2 *m_canvas; | ||
67 | | ||||
68 | float m_referenceLineDensity = 15.0; | ||||
69 | | ||||
61 | }; | 70 | }; | ||
62 | 71 | | |||
63 | class VanishingPointAssistantFactory : public KisPaintingAssistantFactory | 72 | class VanishingPointAssistantFactory : public KisPaintingAssistantFactory | ||
Context not available. |