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
10
#include "
kis_gradient_shape_strategy.h
"
11
12
#include <QPainterPath>
13
14
#include "kritaimage_export.h"
15
16
17
class
KRITAIMAGE_EXPORT
KisPolygonalGradientShapeStrategy
:
public
KisGradientShapeStrategy
18
{
19
public
:
20
KisPolygonalGradientShapeStrategy
(
const
QPainterPath &selectionPath,
21
qreal exponent);
22
~KisPolygonalGradientShapeStrategy
()
override
;
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
28
private
:
29
QPainterPath
m_selectionPath
;
30
31
qreal
m_exponent
;
32
qreal
m_minWeight
;
33
qreal
m_maxWeight
;
34
qreal
m_scaleCoeff
;
35
};
36
37
#endif
/* __KIS_POLYGONAL_GRADIENT_SHAPE_STRATEGY_H */
KisGradientShapeStrategy
Definition
kis_gradient_shape_strategy.h:15
KisGradientShapeStrategy::valueAt
virtual double valueAt(double x, double y) const =0
KisPolygonalGradientShapeStrategy
Definition
kis_polygonal_gradient_shape_strategy.h:18
KisPolygonalGradientShapeStrategy::m_maxWeight
qreal m_maxWeight
Definition
kis_polygonal_gradient_shape_strategy.h:33
KisPolygonalGradientShapeStrategy::m_exponent
qreal m_exponent
Definition
kis_polygonal_gradient_shape_strategy.h:31
KisPolygonalGradientShapeStrategy::m_selectionPath
QPainterPath m_selectionPath
Definition
kis_polygonal_gradient_shape_strategy.h:29
KisPolygonalGradientShapeStrategy::m_scaleCoeff
qreal m_scaleCoeff
Definition
kis_polygonal_gradient_shape_strategy.h:34
KisPolygonalGradientShapeStrategy::m_minWeight
qreal m_minWeight
Definition
kis_polygonal_gradient_shape_strategy.h:32
kis_gradient_shape_strategy.h
libs
image
kis_polygonal_gradient_shape_strategy.h
Generated at
2025-11-04 02:30:02+01:00
from
Krita
branch
master
, commit
c9dde2e79561a8aea4a7e8d9ac99c98a7bac9e52