#include <kis_polygonal_gradient_shape_strategy.h>
◆ KisPolygonalGradientShapeStrategy()
| KisPolygonalGradientShapeStrategy::KisPolygonalGradientShapeStrategy |
( |
const QPainterPath & | selectionPath, |
|
|
qreal | exponent ) |
Definition at line 357 of file kis_polygonal_gradient_shape_strategy.cpp.
360{
362
365
367}
QPainterPath m_selectionPath
QPainterPath simplifyPath(const QPainterPath &path, qreal sizePortion, qreal minLinearSize, int minNumSamples)
qreal calculateMaxWeight(const QPainterPath &selectionPath, qreal exponent, bool searchForMax)
References Private::calculateMaxWeight(), m_exponent, m_maxWeight, m_minWeight, m_scaleCoeff, m_selectionPath, and simplifyPath().
◆ ~KisPolygonalGradientShapeStrategy()
| KisPolygonalGradientShapeStrategy::~KisPolygonalGradientShapeStrategy |
( |
| ) |
|
|
override |
◆ testingCalculatePathCenter()
| QPointF KisPolygonalGradientShapeStrategy::testingCalculatePathCenter |
( |
int | numSamples, |
|
|
const QPainterPath & | path, |
|
|
qreal | exponent, |
|
|
bool | searchForMax ) |
|
static |
Definition at line 386 of file kis_polygonal_gradient_shape_strategy.cpp.
387{
388 QPointF result;
389
392 exponent, searchForMax,
393 extremumValue,
394 &result);
395
396 if (!success) {
397 dbgKrita <<
"WARNING: Couldn't calculate findBestStartingPoint for:";
402
403 }
404
405 return result;
406}
bool findBestStartingPoint(int numSamples, const QPainterPath &path, qreal exponent, bool searchForMax, qreal initialExtremumValue, QPointF *result)
qreal initialExtremumValue(bool searchForMax)
References dbgKrita, Private::findBestStartingPoint(), Private::initialExtremumValue(), and ppVar.
◆ valueAt()
| double KisPolygonalGradientShapeStrategy::valueAt |
( |
double | x, |
|
|
double | y ) const |
|
overridevirtual |
◆ m_exponent
| qreal KisPolygonalGradientShapeStrategy::m_exponent |
|
private |
◆ m_maxWeight
| qreal KisPolygonalGradientShapeStrategy::m_maxWeight |
|
private |
◆ m_minWeight
| qreal KisPolygonalGradientShapeStrategy::m_minWeight |
|
private |
◆ m_scaleCoeff
| qreal KisPolygonalGradientShapeStrategy::m_scaleCoeff |
|
private |
◆ m_selectionPath
| QPainterPath KisPolygonalGradientShapeStrategy::m_selectionPath |
|
private |
The documentation for this class was generated from the following files: