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

Public Member Functions

QVector< int > calculateMappedIndexes (int col, int row, int *numExistingPoints) const
 
QPointF getSrcPointForce (const QPoint &cellPt) const
 
 MapIndexesOp (KisCageTransformWorker::Private *d)
 
const QPolygonF srcCropPolygon () const
 
int tryGetValidIndex (const QPoint &cellPt) const
 

Public Attributes

KisCageTransformWorker::Private * m_d
 
QPolygonF m_srcCagePolygon
 

Detailed Description

Definition at line 242 of file kis_cage_transform_worker.cpp.

Constructor & Destructor Documentation

◆ MapIndexesOp()

KisCageTransformWorker::Private::MapIndexesOp::MapIndexesOp ( KisCageTransformWorker::Private * d)
inline

Definition at line 244 of file kis_cage_transform_worker.cpp.

245 : m_d(d),
246 m_srcCagePolygon(QPolygonF(m_d->origCage))
247 {
248 }

References m_d, and m_srcCagePolygon.

Member Function Documentation

◆ calculateMappedIndexes()

QVector< int > KisCageTransformWorker::Private::MapIndexesOp::calculateMappedIndexes ( int col,
int row,
int * numExistingPoints ) const
inline

Definition at line 250 of file kis_cage_transform_worker.cpp.

251 {
252
253 return m_d->calculateMappedIndexes(col, row, numExistingPoints);
254 }

References m_d.

◆ getSrcPointForce()

QPointF KisCageTransformWorker::Private::MapIndexesOp::getSrcPointForce ( const QPoint & cellPt) const
inline

Definition at line 260 of file kis_cage_transform_worker.cpp.

260 {
261 return m_d->allSrcPoints[GridIterationTools::pointToIndex(cellPt, m_d->gridSize)];
262 }
int pointToIndex(const QPoint &cellPt, const QSize &gridSize)

References m_d, and GridIterationTools::pointToIndex().

◆ srcCropPolygon()

const QPolygonF KisCageTransformWorker::Private::MapIndexesOp::srcCropPolygon ( ) const
inline

Definition at line 264 of file kis_cage_transform_worker.cpp.

264 {
265 return m_srcCagePolygon;
266 }

References m_srcCagePolygon.

◆ tryGetValidIndex()

int KisCageTransformWorker::Private::MapIndexesOp::tryGetValidIndex ( const QPoint & cellPt) const
inline

Definition at line 256 of file kis_cage_transform_worker.cpp.

256 {
257 return m_d->tryGetValidIndex(cellPt);
258 }

References m_d.

Member Data Documentation

◆ m_d

KisCageTransformWorker::Private* KisCageTransformWorker::Private::MapIndexesOp::m_d

Definition at line 268 of file kis_cage_transform_worker.cpp.

◆ m_srcCagePolygon

QPolygonF KisCageTransformWorker::Private::MapIndexesOp::m_srcCagePolygon

Definition at line 269 of file kis_cage_transform_worker.cpp.


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