Changeset View
Changeset View
Standalone View
Standalone View
libs/image/tests/kis_distance_information_test.h
- This file was added.
1 | #ifndef KIS_DISTANCE_INFORMATION_TEST_H | ||||
---|---|---|---|---|---|
2 | #define KIS_DISTANCE_INFORMATION_TEST_H | ||||
3 | | ||||
4 | #include <QtTest> | ||||
5 | | ||||
6 | class KisPaintInformation; | ||||
7 | class KisDistanceInformation; | ||||
8 | | ||||
9 | class KisDistanceInformationTest : public QObject | ||||
10 | { | ||||
11 | Q_OBJECT | ||||
12 | private Q_SLOTS: | ||||
13 | void testInitInfo(); | ||||
14 | void testInterpolation(); | ||||
15 | | ||||
16 | private: | ||||
17 | void testInitInfoEquality() const; | ||||
18 | void testInitInfoXMLClone() const; | ||||
19 | | ||||
20 | /** | ||||
21 | * Performs one interpolation using the specified KisDistanceInformation and checks the results. | ||||
22 | * @param interpFactor The interpolation factor that the KisDistanceInformation is expected to | ||||
23 | * return. | ||||
24 | * @param needSpacingUpdate Indicates whether the KisDistanceInformation is expected to need a | ||||
25 | * spacing update after the interpolation. | ||||
26 | */ | ||||
27 | void testInterpolationImpl(const KisPaintInformation &p1, const KisPaintInformation &p2, | ||||
28 | KisDistanceInformation &dist, qreal interpFactor, | ||||
29 | bool needSpacingUpdate, qreal interpTolerance) const; | ||||
30 | }; | ||||
31 | | ||||
32 | #endif // KIS_DISTANCE_INFORMATION_TEST_H |