|
Krita Source Code Documentation
|
Namespaces | |
| namespace | Private |
Classes | |
| struct | AlwaysCompletePolygonPolicy |
| struct | CellOp |
| struct | IncompletePolygonPolicy |
| struct | PaintDevicePolygonOp |
| struct | QImagePolygonOp |
| struct | RegularGridIndexesOp |
Functions | |
| void | adjustAlignedPolygon (QPolygonF &polygon) |
| int | calcGridDimension (int start, int end, const int pixelPrecision) |
| QSize | calcGridSize (const QRect &srcBounds, const int pixelPrecision) |
| QVector< int > | calculateCellIndexes (int col, int row, const QSize &gridSize) |
| QRect | calculateCorrectSubGrid (QRect originalBoundsForGrid, int pixelPrecision, QRectF currentBounds, QSize gridSize) |
| template<class IndexesOp > | |
| bool | canProcessRectsInRandomOrder (IndexesOp &indexesOp, const QVector< QPointF > &transformedPoints, QRect subgrid) |
| template<class IndexesOp > | |
| bool | canProcessRectsInRandomOrder (IndexesOp &indexesOp, const QVector< QPointF > &transformedPoints, QSize grid) |
| QList< QRectF > | cutOutSubgridFromBounds (QRect subGrid, QRect srcBounds, const QSize &gridSize, const QVector< QPointF > &originalPoints) |
| template<class IndexesOp > | |
| bool | getOrthogonalPointApproximation (const QPoint &cellPt, const QVector< QPointF > &originalPoints, const QVector< QPointF > &transformedPoints, IndexesOp indexesOp, QPointF *srcPoint, QPointF *dstPoint) |
| template<template< class PolygonOp, class IndexesOp > class IncompletePolygonPolicy, class PolygonOp , class IndexesOp > | |
| void | iterateThroughGrid (PolygonOp &polygonOp, IndexesOp &indexesOp, const QSize &gridSize, const QVector< QPointF > &originalPoints, const QVector< QPointF > &transformedPoints) |
| template<template< class PolygonOp, class IndexesOp > class IncompletePolygonPolicy, class PolygonOp , class IndexesOp > | |
| void | iterateThroughGrid (PolygonOp &polygonOp, IndexesOp &indexesOp, const QSize &gridSize, const QVector< QPointF > &originalPoints, const QVector< QPointF > &transformedPoints, const QRect subGrid) |
| int | pointToIndex (const QPoint &cellPt, const QSize &gridSize) |
| template<class ProcessCell > | |
| void | processGrid (ProcessCell &cellOp, const QRect &srcBounds, const int pixelPrecision) |
| template<class ProcessPolygon , class ForwardTransform > | |
| void | processGrid (ProcessPolygon &polygonOp, ForwardTransform &transformOp, const QRect &srcBounds, const int pixelPrecision) |
|
inline |
There is a weird problem in fetching correct bounds of the polygon. If the rightmost (bottommost) point of the polygon is integral, then QRectF() will end exactly on it, but when converting into QRect the last point will not be taken into account. It happens due to the difference between center-point/topleft-point point representation. In many cases the latter is expected, but we don't work with it in Qt/Krita.
Definition at line 849 of file kis_grid_interpolation_tools.h.
|
inline |
Definition at line 33 of file kis_grid_interpolation_tools.h.
|
inline |
Definition at line 53 of file kis_grid_interpolation_tools.h.
References calcGridDimension().
|
inline |
A--—B The polygons will be in the following order: | | | | polygon << A << B << D << C; C--—D
Definition at line 511 of file kis_grid_interpolation_tools.h.
|
inline |
Definition at line 553 of file kis_grid_interpolation_tools.h.
References kisBoundFast().
| bool GridIterationTools::canProcessRectsInRandomOrder | ( | IndexesOp & | indexesOp, |
| const QVector< QPointF > & | transformedPoints, | ||
| QRect | subgrid ) |
Definition at line 867 of file kis_grid_interpolation_tools.h.
References adjustAlignedPolygon(), and KisAlgebra2D::isPolygonTrulyConvex().
| bool GridIterationTools::canProcessRectsInRandomOrder | ( | IndexesOp & | indexesOp, |
| const QVector< QPointF > & | transformedPoints, | ||
| QSize | grid ) |
Definition at line 862 of file kis_grid_interpolation_tools.h.
References canProcessRectsInRandomOrder().
|
inline |
Definition at line 576 of file kis_grid_interpolation_tools.h.
References pointToIndex().
| bool GridIterationTools::getOrthogonalPointApproximation | ( | const QPoint & | cellPt, |
| const QVector< QPointF > & | originalPoints, | ||
| const QVector< QPointF > & | transformedPoints, | ||
| IndexesOp | indexesOp, | ||
| QPointF * | srcPoint, | ||
| QPointF * | dstPoint ) |
Definition at line 625 of file kis_grid_interpolation_tools.h.
References dstPoint, GridIterationTools::Private::PointExtension::far, GridIterationTools::Private::PointExtension::near, and KisAlgebra2D::transformAsBase().
| void GridIterationTools::iterateThroughGrid | ( | PolygonOp & | polygonOp, |
| IndexesOp & | indexesOp, | ||
| const QSize & | gridSize, | ||
| const QVector< QPointF > & | originalPoints, | ||
| const QVector< QPointF > & | transformedPoints ) |
Definition at line 906 of file kis_grid_interpolation_tools.h.
| void GridIterationTools::iterateThroughGrid | ( | PolygonOp & | polygonOp, |
| IndexesOp & | indexesOp, | ||
| const QSize & | gridSize, | ||
| const QVector< QPointF > & | originalPoints, | ||
| const QVector< QPointF > & | transformedPoints, | ||
| const QRect | subGrid ) |
Definition at line 918 of file kis_grid_interpolation_tools.h.
References adjustAlignedPolygon(), and KIS_SAFE_ASSERT_RECOVER.
|
inline |
Definition at line 527 of file kis_grid_interpolation_tools.h.
| void GridIterationTools::processGrid | ( | ProcessCell & | cellOp, |
| const QRect & | srcBounds, | ||
| const int | pixelPrecision ) |
Definition at line 110 of file kis_grid_interpolation_tools.h.
| void GridIterationTools::processGrid | ( | ProcessPolygon & | polygonOp, |
| ForwardTransform & | transformOp, | ||
| const QRect & | srcBounds, | ||
| const int | pixelPrecision ) |
Definition at line 162 of file kis_grid_interpolation_tools.h.
References processGrid().