2015-04-16 15:54:40 +02:00
|
|
|
/************************************************************************
|
|
|
|
**
|
|
|
|
** @file tst_vabstractdetail.h
|
|
|
|
** @author Roman Telezhynskyi <dismine(at)gmail.com>
|
|
|
|
** @date 16 4, 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_VABSTRACTDETAIL_H
|
|
|
|
#define TST_VABSTRACTDETAIL_H
|
|
|
|
|
2016-08-04 18:28:28 +02:00
|
|
|
#include "../vmisc/abstracttest.h"
|
2015-04-16 15:54:40 +02:00
|
|
|
|
2015-05-07 15:12:53 +02:00
|
|
|
class TST_VAbstractDetail : public AbstractTest
|
2015-04-16 15:54:40 +02:00
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
public:
|
2016-02-24 16:31:44 +01:00
|
|
|
explicit TST_VAbstractDetail(QObject *parent = nullptr);
|
2015-04-16 15:54:40 +02:00
|
|
|
|
|
|
|
signals:
|
|
|
|
|
|
|
|
private slots:
|
|
|
|
void EquidistantRemoveLoop() const;
|
2015-11-22 16:08:22 +01:00
|
|
|
void SumTrapezoids() const;
|
2016-01-09 22:53:17 +01:00
|
|
|
void PathRemoveLoop_data() const;
|
|
|
|
void PathRemoveLoop() const;
|
2016-03-10 08:42:09 +01:00
|
|
|
void BrokenDetailEquidistant() const;
|
2015-04-16 15:54:40 +02:00
|
|
|
|
|
|
|
private:
|
|
|
|
void Case1() const;
|
|
|
|
void Case2() const;
|
2015-11-22 16:08:22 +01:00
|
|
|
void Case3() const;
|
|
|
|
void Case4() const;
|
|
|
|
void Case5() const;
|
2015-04-16 15:54:40 +02:00
|
|
|
|
|
|
|
QVector<QPointF> InputPointsCase1() const;
|
|
|
|
QVector<QPointF> OutputPointsCase1() const;
|
|
|
|
|
|
|
|
QVector<QPointF> InputPointsCase2() const;
|
|
|
|
QVector<QPointF> OutputPointsCase2() const;
|
|
|
|
|
2015-11-22 16:08:22 +01:00
|
|
|
QVector<QPointF> InputPointsCase3() const;
|
|
|
|
QVector<QPointF> InputPointsCase4() const;
|
|
|
|
QVector<QPointF> InputPointsCase5() const;
|
|
|
|
|
2015-04-16 15:54:40 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // TST_VABSTRACTDETAIL_H
|