Krita Source Code Documentation
Loading...
Searching...
No Matches
kis_grid_paintop.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2009, 2010 Lukáš Tvrdý (lukast.dev@gmail.com)
3 *
4 * SPDX-License-Identifier: GPL-2.0-or-later
5 */
6
7#ifndef KIS_GRID_PAINTOP_H_
8#define KIS_GRID_PAINTOP_H_
9
10//#define BENCHMARK
11
12#include <klocalizedstring.h>
14#include <kis_types.h>
15#include <KisColorOptionData.h>
16#include <KisGridOpOptionData.h>
18
20
21class KisPainter;
22
23
25{
26
27public:
28
30 ~KisGridPaintOp() override;
31
32protected:
34
36
37private:
38 KisSpacingInformation computeSpacing(qreal lodScale) const;
39
40private:
46 qreal m_spacing;
51
52
53#ifdef BENCHMARK
54 int m_total;
55 int m_count;
56#endif
57
58};
59
60#endif // KIS_GRID_PAINTOP_H_
KisPainter * m_painter
KisColorOptionData m_colorProperties
KisGridPaintOpSettingsSP m_settings
KisSpacingInformation computeSpacing(qreal lodScale) const
KisGridPaintOp(const KisPaintOpSettingsSP settings, KisPainter *painter, KisNodeSP node, KisImageSP image)
KisSpacingInformation updateSpacingImpl(const KisPaintInformation &info) const override
~KisGridPaintOp() override
KisGridOpOptionData m_properties
KisGridShapeOptionData m_shapeProperties
KisSpacingInformation paintAt(const KisPaintInformation &info) override
KisPaintDeviceSP m_dab
KisPainter * painter