Krita Source Code Documentation
Loading...
Searching...
No Matches
kis_polygonal_gradient_shape_strategy.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2014 Dmitry Kazakov <dimula73@gmail.com>
3 *
4 * SPDX-License-Identifier: GPL-2.0-or-later
5 */
6
7#ifndef __KIS_POLYGONAL_GRADIENT_SHAPE_STRATEGY_H
8#define __KIS_POLYGONAL_GRADIENT_SHAPE_STRATEGY_H
9
11
12#include <QPainterPath>
13
14#include "kritaimage_export.h"
15
16
18{
19public:
20 KisPolygonalGradientShapeStrategy(const QPainterPath &selectionPath,
21 qreal exponent);
23
24 double valueAt(double x, double y) const override;
25
26 static QPointF testingCalculatePathCenter(int numSamples, const QPainterPath &path, qreal exponent, bool searchForMax);
27
28private:
29 QPainterPath m_selectionPath;
30
35};
36
37#endif /* __KIS_POLYGONAL_GRADIENT_SHAPE_STRATEGY_H */
virtual double valueAt(double x, double y) const =0