2016-02-15 15:30:48 +01:00
|
|
|
/************************************************************************
|
|
|
|
**
|
|
|
|
** @file vabstractcurve_p.h
|
|
|
|
** @author Roman Telezhynskyi <dismine(at)gmail.com>
|
|
|
|
** @date 15 2, 2016
|
|
|
|
**
|
|
|
|
** @brief
|
|
|
|
** @copyright
|
2017-10-05 11:20:01 +02:00
|
|
|
** This source code is part of the Valentina project, a pattern making
|
2016-02-15 15:30:48 +01:00
|
|
|
** program, whose allow create and modeling patterns of clothing.
|
|
|
|
** Copyright (C) 2016 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 VABSTRACTCURVE_P_H
|
|
|
|
#define VABSTRACTCURVE_P_H
|
|
|
|
|
|
|
|
#include <QSharedData>
|
|
|
|
|
2016-05-19 12:11:50 +02:00
|
|
|
#include "../ifc/ifcdef.h"
|
2016-08-06 20:42:40 +02:00
|
|
|
#include "../vmisc/diagnostic.h"
|
2016-05-19 12:11:50 +02:00
|
|
|
|
2016-08-06 20:42:40 +02:00
|
|
|
QT_WARNING_PUSH
|
|
|
|
QT_WARNING_DISABLE_GCC("-Weffc++")
|
2017-05-30 17:44:16 +02:00
|
|
|
QT_WARNING_DISABLE_GCC("-Wnon-virtual-dtor")
|
2016-02-15 15:30:48 +01:00
|
|
|
|
|
|
|
class VAbstractCurveData : public QSharedData
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
|
|
|
|
VAbstractCurveData ()
|
2017-05-16 12:07:53 +02:00
|
|
|
: duplicate(0),
|
|
|
|
color(ColorBlack),
|
2017-10-11 12:51:06 +02:00
|
|
|
penStyle(TypeLineLine),
|
|
|
|
approximationScale(defCurveApproximationScale)
|
2016-02-15 15:30:48 +01:00
|
|
|
{}
|
|
|
|
|
|
|
|
VAbstractCurveData(const VAbstractCurveData &curve)
|
2017-05-16 12:07:53 +02:00
|
|
|
: QSharedData(curve),
|
|
|
|
duplicate(curve.duplicate),
|
|
|
|
color(curve.color),
|
2017-10-11 12:51:06 +02:00
|
|
|
penStyle(curve.penStyle),
|
|
|
|
approximationScale(curve.approximationScale)
|
2016-02-15 15:30:48 +01:00
|
|
|
{}
|
|
|
|
|
|
|
|
virtual ~VAbstractCurveData();
|
|
|
|
|
|
|
|
/** @brief duplicate helps create unique name for curves that connects the same start and finish points. */
|
|
|
|
quint32 duplicate;
|
|
|
|
|
2016-05-19 12:11:50 +02:00
|
|
|
QString color;
|
2017-05-16 12:07:53 +02:00
|
|
|
QString penStyle;
|
2016-05-19 12:11:50 +02:00
|
|
|
|
2017-10-11 12:51:06 +02:00
|
|
|
qreal approximationScale;
|
|
|
|
|
2016-02-15 15:30:48 +01:00
|
|
|
private:
|
2019-07-01 10:33:29 +02:00
|
|
|
Q_DISABLE_ASSIGN(VAbstractCurveData)
|
2016-02-15 15:30:48 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
VAbstractCurveData::~VAbstractCurveData()
|
|
|
|
{}
|
|
|
|
|
2016-08-06 20:42:40 +02:00
|
|
|
QT_WARNING_POP
|
2016-02-15 15:30:48 +01:00
|
|
|
|
|
|
|
#endif // VABSTRACTCURVE_P_H
|