Skip to content

armgit / krita

Public Imported from GitHub
0

Krita is a free and open source cross-platform application that offers an end-to-end solution for creating digital art files from scratch built on the KDE and Qt frameworks.

C++
1.3 KB
Raw Blame
/*
 *  SPDX-FileCopyrightText: 2025 Agata Cacko <[email protected]>
 *
 *  SPDX-License-Identifier: GPL-2.0-or-later
 */

#ifndef KIS_GRID_INTERPOLATION_TOOLS_TEST_H
#define KIS_GRID_INTERPOLATION_TOOLS_TEST_H

#include <simpletest.h>

class KisGridInterpolationToolsTest : public QObject
{
    Q_OBJECT
private Q_SLOTS:

    void testCalcGridDimension();
    void testCalcGridSize();
    // void testProcessGrid();
    void testCalculateCellIndexes_data();
    void testCalculateCellIndexes();
    void testPointToIndex_data();
    void testPointToIndex();
    void testPointPolygonIndexToColRow_data();
    void testPointPolygonIndexToColRow();
    void testGetOrthogonalPointApproximation();
    void testCalculateCorrectSubGrid_data();
    void testCalculateCorrectSubGrid();
    void testCutOutSubgridFromBounds_data();
    void testCutOutSubgridFromBounds();
    /*
    void testAdjustAlignedPolygon();
    void testRestoreOriginalPolygonFromAligned();
    void testIterateThroughGrid();

    void testCellOpStruct();
    void testPaintDevicePolygonOpStruct();
    void testQImagePolygonOpStruct();
    void testIncompletePolygonPolicy();
    void testAlwaysCompletePolygonPolicy();
    void testRegularGridIndexesOp();
    */

    void testCanProcessPolygonsInRandomOrder();
    void testQImagePolygonOpStructFastAreaCopy();


};

#endif