Krita Source Code Documentation
Loading...
Searching...
No Matches
kis_figure_painting_tool_helper.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2011 Dmitry Kazakov <dimula73@gmail.com>
3 *
4 * SPDX-License-Identifier: GPL-2.0-or-later
5 */
6
7#ifndef __KIS_FIGURE_PAINTING_TOOL_HELPER_H
8#define __KIS_FIGURE_PAINTING_TOOL_HELPER_H
9
10#include "kis_types.h"
11#include "kritaui_export.h"
14#include "KisToolShapeUtils.h"
15
18
19class KRITAUI_EXPORT KisFigurePaintingToolHelper
20{
21public:
23 KisImageWSP image,
24 KisNodeSP currentNode,
25 KoCanvasResourceProvider *resourceManager,
28 QTransform fillTransform = QTransform());
30
31 void paintLine(const KisPaintInformation &pi0,
32 const KisPaintInformation &pi1);
33 void paintPolyline(const vQPointF &points);
34 void paintPolygon(const vQPointF &points);
35 void paintRect(const QRectF &rect);
36 void paintEllipse(const QRectF &rect);
37 void paintPainterPath(const QPainterPath &path);
38 void setFGColorOverride(const KoColor &color);
39 void setBGColorOverride(const KoColor &color);
40 void setSelectionOverride(KisSelectionSP m_selection);
41 void setBrush(const KisPaintOpPresetSP &brush);
42 void paintPainterPathQPen(const QPainterPath, const QPen &pen, const KoColor &color);
43 void paintPainterPathQPenFill(const QPainterPath, const QPen &pen, const KoColor &color);
44
45private:
46 void setupPaintStyles(KisResourcesSnapshotSP resources,
49 QTransform fillTransform);
50
51private:
55};
56
57#endif /* __KIS_FIGURE_PAINTING_TOOL_HELPER_H */