2015-05-07 15:12:53 +02:00
|
|
|
/************************************************************************
|
|
|
|
**
|
|
|
|
** @file tst_vspline.h
|
|
|
|
** @author Roman Telezhynskyi <dismine(at)gmail.com>
|
|
|
|
** @date 7 5, 2015
|
|
|
|
**
|
|
|
|
** @brief
|
|
|
|
** @copyright
|
|
|
|
** This source code is part of the Valentine project, a pattern making
|
|
|
|
** program, whose allow create and modeling patterns of clothing.
|
|
|
|
** Copyright (C) 2015 Valentina project
|
|
|
|
** <https://bitbucket.org/dismine/valentina> All Rights Reserved.
|
|
|
|
**
|
|
|
|
** Valentina is free software: you can redistribute it and/or modify
|
|
|
|
** it under the terms of the GNU General Public License as published by
|
|
|
|
** the Free Software Foundation, either version 3 of the License, or
|
|
|
|
** (at your option) any later version.
|
|
|
|
**
|
|
|
|
** Valentina is distributed in the hope that it will be useful,
|
|
|
|
** but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
** GNU General Public License for more details.
|
|
|
|
**
|
|
|
|
** You should have received a copy of the GNU General Public License
|
|
|
|
** along with Valentina. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
**
|
|
|
|
*************************************************************************/
|
|
|
|
|
|
|
|
#ifndef TST_VSPLINE_H
|
|
|
|
#define TST_VSPLINE_H
|
|
|
|
|
2016-08-04 18:28:28 +02:00
|
|
|
#include "../vmisc/abstracttest.h"
|
2015-05-07 15:12:53 +02:00
|
|
|
|
2016-02-24 20:47:39 +01:00
|
|
|
class VSpline;
|
|
|
|
|
2015-05-07 15:12:53 +02:00
|
|
|
class TST_VSpline : public AbstractTest
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
public:
|
2016-02-24 16:31:44 +01:00
|
|
|
explicit TST_VSpline(QObject *parent = nullptr);
|
2015-05-07 15:12:53 +02:00
|
|
|
|
|
|
|
signals:
|
|
|
|
|
|
|
|
private slots:
|
|
|
|
void GetSegmentPoints();
|
2015-12-03 20:56:40 +01:00
|
|
|
void GetSegmentPoints_issue412();
|
2016-01-09 10:42:06 +01:00
|
|
|
void GetSegmentPoints_TestPuzzle();
|
2016-03-10 19:18:26 +01:00
|
|
|
void GetSegmentPoints_NullSegment();
|
2016-05-25 12:55:15 +02:00
|
|
|
void GetSegmentPoints_RotateTool();
|
2016-02-24 20:47:39 +01:00
|
|
|
void CompareThreeWays();
|
2016-03-23 12:23:03 +01:00
|
|
|
void TestParametrT();
|
2016-04-02 13:59:43 +02:00
|
|
|
void TestLengthByPoint_data();
|
|
|
|
void TestLengthByPoint();
|
2016-09-10 20:40:30 +02:00
|
|
|
void TestFlip_data();
|
|
|
|
void TestFlip();
|
2016-02-24 20:47:39 +01:00
|
|
|
|
|
|
|
private:
|
|
|
|
Q_DISABLE_COPY(TST_VSpline)
|
|
|
|
void CompareSplines(const VSpline &spl1, const VSpline &spl2) const;
|
2015-05-07 15:12:53 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // TST_VSPLINE_H
|