Krita Source Code Documentation
Loading...
Searching...
No Matches
AllPointsFetcherOp Struct Reference

Public Member Functions

 AllPointsFetcherOp (QRectF srcRect, QSize gridSize)
 
void nextLine ()
 
void processPoint (int col, int row, int prevCol, int prevRow, int colIndex, int rowIndex)
 

Public Attributes

QSize m_gridSize
 
QVector< QPointF > m_points
 
QRectF m_srcRect
 

Detailed Description

Definition at line 132 of file kis_liquify_transform_worker.cpp.

Constructor & Destructor Documentation

◆ AllPointsFetcherOp()

AllPointsFetcherOp::AllPointsFetcherOp ( QRectF srcRect,
QSize gridSize )
inline

Member Function Documentation

◆ nextLine()

void AllPointsFetcherOp::nextLine ( )
inline

Definition at line 156 of file kis_liquify_transform_worker.cpp.

156 {
157 }

◆ processPoint()

void AllPointsFetcherOp::processPoint ( int col,
int row,
int prevCol,
int prevRow,
int colIndex,
int rowIndex )
inline

Definition at line 136 of file kis_liquify_transform_worker.cpp.

138 {
139
140 Q_UNUSED(prevCol);
141 Q_UNUSED(prevRow);
142
143 // it would give us an integer point that signifies a start of the pixel
144 // but we want a decimal value at the end
145 if (colIndex == m_gridSize.width() - 1) {
146 col++;
147 }
148 if (rowIndex == m_gridSize.height() - 1) {
149 row++;
150 }
151
152 QPointF pt(col, row);
153 m_points << pt;
154 }

References m_gridSize, and m_points.

Member Data Documentation

◆ m_gridSize

QSize AllPointsFetcherOp::m_gridSize

Definition at line 161 of file kis_liquify_transform_worker.cpp.

◆ m_points

QVector<QPointF> AllPointsFetcherOp::m_points

Definition at line 159 of file kis_liquify_transform_worker.cpp.

◆ m_srcRect

QRectF AllPointsFetcherOp::m_srcRect

Definition at line 160 of file kis_liquify_transform_worker.cpp.


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