File indexing completed on 2024-05-26 04:26:30

0001 /*
0002     Copyright (C) 2012 <hanna.et.scott@gmail.com> 
0003 
0004     SPDX-License-Identifier: LGPL-2.1-or-later
0005 
0006 */
0007 
0008 #ifndef TESTSNAPSTRATEGY_H
0009 #define TESTSNAPSTRATEGY_H
0010 
0011 #include <QObject>
0012 
0013 class TestSnapStrategy : public QObject
0014 {
0015     Q_OBJECT
0016   private Q_SLOTS:
0017     //tests
0018     /**
0019      * This method is for testing the function snap in OrthogonalSnapStrategy - function is located in KoSnapStrategy.h
0020      * 
0021      * @param 
0022      * @return 
0023      * @see KoSnapStrategy.h
0024      */
0025     void testOrthogonalSnap();
0026     /**
0027      * This method is for testing the function snap in NodeSnapStrategy - function is located in KoSnapStrategy.h
0028      * 
0029      * @param 
0030      * @return 
0031      * @see KoSnapStrategy.h
0032      */
0033     void testNodeSnap();
0034     /**
0035      * This method is for testing the function snap in ExtensionSnapStrategy - function is located in KoSnapStrategy.h
0036      * 
0037      * @param 
0038      * @return 
0039      * @see KoSnapStrategy.h
0040      */
0041     void testExtensionSnap();
0042     /**
0043      * This method is for testing the function snap in IntersectionSnapStrategy - function is located in KoSnapStrategy.h
0044      * 
0045      * @param 
0046      * @return 
0047      * @see KoSnapStrategy.h
0048      */
0049     void testIntersectionSnap();
0050     /**
0051      * This method is for testing the function snap in GridSnapStrategy - function is located in KoSnapStrategy.h
0052      * 
0053      * @param 
0054      * @return 
0055      * @see KoSnapStrategy.h
0056      */
0057     void testGridSnap();
0058         /**
0059      * This method is for testing the function snap in BoundingBoxSnapStrategy - function is located in KoSnapStrategy.h
0060      * 
0061      * @param 
0062      * @return 
0063      * @see KoSnapStrategy.h
0064      */
0065     void testBoundingBoxSnap();
0066         /**
0067      * This method is for testing the function snap in LineGuideSnapStrategy - function is located in KoSnapStrategy.h
0068      * 
0069      * @param 
0070      * @return 
0071      * @see KoSnapStrategy.h
0072      */
0073     void testLineGuideSnap();
0074 
0075     /**
0076      * This method is for testing the function decoration in OrthogonalSnapStrategy - function is located in KoSnapStrategy.h
0077      * 
0078      * @param 
0079      * @return 
0080      * @see KoSnapStrategy.h
0081      */
0082     void testOrthogonalDecoration();
0083     /**
0084      * This method is for testing the function decoration in NodeSnapStrategy - function is located in KoSnapStrategy.h
0085      * 
0086      * @param 
0087      * @return 
0088      * @see KoSnapStrategy.h
0089      */
0090     void testNodeDecoration();
0091     /**
0092      * This method is for testing the function decoration in ExtensionSnapStrategy - function is located in KoSnapStrategy.h
0093      * 
0094      * @param 
0095      * @return 
0096      * @see KoSnapStrategy.h
0097      */
0098     void testExtensionDecoration();
0099     /**
0100      * This method is for testing the function decoration in IntersectionSnapStrategy - function is located in KoSnapStrategy.h
0101      * 
0102      * @param 
0103      * @return 
0104      * @see KoSnapStrategy.h
0105      */
0106     void testIntersectionDecoration();
0107     /**
0108      * This method is for testing the function decoration GridSnapStrategy - function is located in KoSnapStrategy.h
0109      * 
0110      * @param 
0111      * @return 
0112      * @see KoSnapStrategy.h
0113      */
0114     void testGridDecoration();
0115     /**
0116      * This method is for testing the function decoration in BoundingBoxSnapStrategy - function is located in KoSnapStrategy.h
0117      * 
0118      * @param 
0119      * @return 
0120      * @see KoSnapStrategy.h
0121      */
0122     void testBoundingBoxDecoration();
0123     /**
0124      * This method is for testing the function decoration in LineGuideSnapStrategy - function is located in KoSnapStrategy.h
0125      * 
0126      * @param 
0127      * @return 
0128      * @see KoSnapStrategy.h
0129      */
0130     void testLineGuideDecoration();
0131     /**
0132      * This method is for testing the function squareDistance in KoSnapStrategy
0133      * 
0134      * @param 
0135      * @return 
0136      * @see KoSnapStrategy.h
0137      */    
0138     void testSquareDistance();
0139     /**
0140      * This method is for testing the function scalarProduct in KoSnapStrategy
0141      * 
0142      * @param 
0143      * @return 
0144      * @see KoSnapStrategy.h
0145      */   
0146     void testScalarProduct();  
0147     /**
0148      * This method is for testing the function snapToExtension in ExtensionSnapStrategy - function is located in KoSnapStrategy.h
0149      * 
0150      * @param 
0151      * @return 
0152      * @see KoSnapStrategy.h
0153      */   
0154     void testSnapToExtension();
0155     /**
0156      * This method is for testing the function project in ExtensionSnapStrategy - function is located in KoSnapStrategy.h
0157      * 
0158      * @param 
0159      * @return 
0160      * @see KoSnapStrategy.h
0161      */   
0162     void testProject();
0163     /**
0164      * This method is for testing the function extensionDirection in ExtensionSnapStrategy - function is located in KoSnapStrategy.h
0165      * 
0166      * @param 
0167      * @return 
0168      * @see KoSnapStrategy.h
0169      */   
0170     void testExtensionDirection();
0171     /**
0172      * This method is for testing the function squareDistanceToLine in BoundingBoxSnapStrategy - function is located in KoSnapStrategy.h
0173      * 
0174      * @param 
0175      * @return 
0176      * @see KoSnapStrategy.h
0177      */   
0178     void testSquareDistanceToLine();
0179         
0180 };
0181 
0182 #endif // TESTSNAPSTRATEGY_H