Krita Source Code Documentation
Loading...
Searching...
No Matches
KisLiquifyPaintHelper::Private Struct Reference

Public Member Functions

 Private (const KisCoordinatesConverter *_converter)
 
void updatePreviousPaintInfo (const KisPaintInformation &info)
 

Public Attributes

const KisCoordinatesConverterconverter
 
KisDistanceInformation currentDistance
 
bool hasPaintedAtLeastOnce
 
QScopedPointer< KisPaintingInformationBuilderinfoBuilder
 
KisPaintOpUtils::PositionHistory lastOutlinePos
 
QScopedPointer< KisLiquifyPaintoppaintOp
 
KisDistanceInformation previousDistanceInfo
 
KisPaintInformation previousPaintInfo
 
QElapsedTimer strokeTime
 

Detailed Description

Definition at line 21 of file kis_liquify_paint_helper.cpp.

Constructor & Destructor Documentation

◆ Private()

KisLiquifyPaintHelper::Private::Private ( const KisCoordinatesConverter * _converter)
inline

Member Function Documentation

◆ updatePreviousPaintInfo()

void KisLiquifyPaintHelper::Private::updatePreviousPaintInfo ( const KisPaintInformation & info)

Definition at line 56 of file kis_liquify_paint_helper.cpp.

57{
58 QPointF prevPos = lastOutlinePos.pushThroughHistory(info.pos(), converter->effectiveZoom());
59 qreal angle = KisAlgebra2D::directionBetweenPoints(prevPos, info.pos(), 0);
60
62 KisDistanceInformation(prevPos, angle);
63
64 previousPaintInfo = info;
65}
const QPointF & pos() const
QPointF pushThroughHistory(const QPointF &pt, qreal zoom)
qreal directionBetweenPoints(const QPointF &p1, const QPointF &p2, qreal defaultAngle)
KisPaintOpUtils::PositionHistory lastOutlinePos

References converter, KisAlgebra2D::directionBetweenPoints(), KisCoordinatesConverter::effectiveZoom(), lastOutlinePos, KisPaintInformation::pos(), previousDistanceInfo, previousPaintInfo, and KisPaintOpUtils::PositionHistory::pushThroughHistory().

Member Data Documentation

◆ converter

const KisCoordinatesConverter* KisLiquifyPaintHelper::Private::converter

Definition at line 34 of file kis_liquify_paint_helper.cpp.

◆ currentDistance

KisDistanceInformation KisLiquifyPaintHelper::Private::currentDistance

Definition at line 33 of file kis_liquify_paint_helper.cpp.

◆ hasPaintedAtLeastOnce

bool KisLiquifyPaintHelper::Private::hasPaintedAtLeastOnce

Definition at line 39 of file kis_liquify_paint_helper.cpp.

◆ infoBuilder

QScopedPointer<KisPaintingInformationBuilder> KisLiquifyPaintHelper::Private::infoBuilder

Definition at line 35 of file kis_liquify_paint_helper.cpp.

◆ lastOutlinePos

KisPaintOpUtils::PositionHistory KisLiquifyPaintHelper::Private::lastOutlinePos

Definition at line 42 of file kis_liquify_paint_helper.cpp.

◆ paintOp

QScopedPointer<KisLiquifyPaintop> KisLiquifyPaintHelper::Private::paintOp

Definition at line 32 of file kis_liquify_paint_helper.cpp.

◆ previousDistanceInfo

KisDistanceInformation KisLiquifyPaintHelper::Private::previousDistanceInfo

Definition at line 41 of file kis_liquify_paint_helper.cpp.

◆ previousPaintInfo

KisPaintInformation KisLiquifyPaintHelper::Private::previousPaintInfo

Definition at line 30 of file kis_liquify_paint_helper.cpp.

◆ strokeTime

QElapsedTimer KisLiquifyPaintHelper::Private::strokeTime

Definition at line 37 of file kis_liquify_paint_helper.cpp.


The documentation for this struct was generated from the following file: