2017-02-23 13:04:49 +01:00
|
|
|
/************************************************************************
|
|
|
|
**
|
|
|
|
** @file
|
|
|
|
** @author Roman Telezhynskyi <dismine(at)gmail.com>
|
|
|
|
** @date 23 2, 2017
|
|
|
|
**
|
|
|
|
** @brief
|
|
|
|
** @copyright
|
2017-10-05 11:20:01 +02:00
|
|
|
** This source code is part of the Valentina project, a pattern making
|
2017-02-23 13:04:49 +01:00
|
|
|
** program, whose allow create and modeling patterns of clothing.
|
|
|
|
** Copyright (C) 2017 Valentina project
|
2020-01-31 07:00:05 +01:00
|
|
|
** <https://gitlab.com/smart-pattern/valentina> All Rights Reserved.
|
2017-02-23 13:04:49 +01:00
|
|
|
**
|
|
|
|
** 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 VGRAINLINEDATA_P_H
|
|
|
|
#define VGRAINLINEDATA_P_H
|
|
|
|
|
|
|
|
#include <QPointF>
|
|
|
|
#include <QSharedData>
|
|
|
|
|
2019-07-01 12:49:10 +02:00
|
|
|
#include "../vmisc/defglobal.h"
|
2022-08-08 14:25:14 +02:00
|
|
|
#include "../vmisc/typedef.h"
|
2022-08-17 14:51:35 +02:00
|
|
|
#if QT_VERSION < QT_VERSION_CHECK(5, 5, 0)
|
|
|
|
#include "../vmisc/diagnostic.h"
|
|
|
|
#endif // QT_VERSION < QT_VERSION_CHECK(5, 5, 0)
|
2017-02-23 13:04:49 +01:00
|
|
|
#include "floatitemdef.h"
|
|
|
|
|
|
|
|
QT_WARNING_PUSH
|
|
|
|
QT_WARNING_DISABLE_GCC("-Weffc++")
|
2017-05-30 17:44:16 +02:00
|
|
|
QT_WARNING_DISABLE_GCC("-Wnon-virtual-dtor")
|
2017-02-23 13:04:49 +01:00
|
|
|
|
|
|
|
class VGrainlineDataPrivate : public QSharedData
|
|
|
|
{
|
|
|
|
public:
|
2023-05-02 16:38:30 +02:00
|
|
|
VGrainlineDataPrivate() {} // NOLINT(modernize-use-equals-default)
|
|
|
|
VGrainlineDataPrivate(const VGrainlineDataPrivate &data) = default;
|
2022-08-22 15:36:01 +02:00
|
|
|
~VGrainlineDataPrivate() = default;
|
2017-02-23 13:04:49 +01:00
|
|
|
|
|
|
|
/** @brief m_dLength formula to calculate the length of grainline */
|
2023-05-02 16:38:30 +02:00
|
|
|
QString m_qsLength{}; // NOLINT(misc-non-private-member-variables-in-classes)
|
|
|
|
|
2017-02-23 13:04:49 +01:00
|
|
|
/** @brief m_dRotation formula to calculate the rotation of grainline in [degrees] */
|
2023-05-02 16:38:30 +02:00
|
|
|
QString m_dRotation{}; // NOLINT(misc-non-private-member-variables-in-classes)
|
|
|
|
|
2017-02-23 13:04:49 +01:00
|
|
|
/** @brief m_eArrowType type of arrow on the grainline */
|
2023-05-02 16:38:30 +02:00
|
|
|
GrainlineArrowDirection m_eArrowType{GrainlineArrowDirection::twoWaysUpDown}; // NOLINT(misc-non-private-member-variables-in-classes)
|
|
|
|
|
2017-03-09 12:10:46 +01:00
|
|
|
/** @brief m_centerPin center pin id */
|
2023-05-02 16:38:30 +02:00
|
|
|
quint32 m_centerPin{NULL_ID}; // NOLINT(misc-non-private-member-variables-in-classes)
|
|
|
|
|
2017-02-23 13:04:49 +01:00
|
|
|
/** @brief m_topPin top pin id */
|
2023-05-02 16:38:30 +02:00
|
|
|
quint32 m_topPin{NULL_ID}; // NOLINT(misc-non-private-member-variables-in-classes)
|
|
|
|
|
2017-02-23 13:04:49 +01:00
|
|
|
/** @brief m_bottomPin bottom pin id */
|
2023-05-02 16:38:30 +02:00
|
|
|
quint32 m_bottomPin{NULL_ID}; // NOLINT(misc-non-private-member-variables-in-classes)
|
2017-02-23 13:04:49 +01:00
|
|
|
|
|
|
|
private:
|
2023-05-02 16:38:30 +02:00
|
|
|
Q_DISABLE_ASSIGN_MOVE(VGrainlineDataPrivate) // NOLINT
|
2017-02-23 13:04:49 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
QT_WARNING_POP
|
|
|
|
|
|
|
|
#endif // VGRAINLINEDATA_P_H
|
|
|
|
|