86 lines
2.6 KiB
C
86 lines
2.6 KiB
C
|
/************************************************************************
|
||
|
**
|
||
|
** @file
|
||
|
** @author Roman Telezhynskyi <dismine(at)gmail.com>
|
||
|
** @date 23 2, 2017
|
||
|
**
|
||
|
** @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) 2017 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 VGRAINLINEDATA_P_H
|
||
|
#define VGRAINLINEDATA_P_H
|
||
|
|
||
|
#include <QPointF>
|
||
|
#include <QSharedData>
|
||
|
|
||
|
#include "../vmisc/diagnostic.h"
|
||
|
#include "floatitemdef.h"
|
||
|
#include "../ifc/ifcdef.h"
|
||
|
|
||
|
QT_WARNING_PUSH
|
||
|
QT_WARNING_DISABLE_GCC("-Weffc++")
|
||
|
|
||
|
class VGrainlineDataPrivate : public QSharedData
|
||
|
{
|
||
|
public:
|
||
|
VGrainlineDataPrivate()
|
||
|
: m_qsLength(),
|
||
|
m_dRotation(),
|
||
|
m_eArrowType(ArrowType::atBoth),
|
||
|
m_topPin(NULL_ID),
|
||
|
m_bottomPin(NULL_ID)
|
||
|
{}
|
||
|
|
||
|
VGrainlineDataPrivate(const VGrainlineDataPrivate &data)
|
||
|
: QSharedData(data),
|
||
|
m_qsLength(data.m_qsLength),
|
||
|
m_dRotation(data.m_dRotation),
|
||
|
m_eArrowType(data.m_eArrowType),
|
||
|
m_topPin(data.m_topPin),
|
||
|
m_bottomPin(data.m_bottomPin)
|
||
|
{}
|
||
|
|
||
|
~VGrainlineDataPrivate();
|
||
|
|
||
|
/** @brief m_dLength formula to calculate the length of grainline */
|
||
|
QString m_qsLength;
|
||
|
/** @brief m_dRotation formula to calculate the rotation of grainline in [degrees] */
|
||
|
QString m_dRotation;
|
||
|
/** @brief m_eArrowType type of arrow on the grainline */
|
||
|
ArrowType m_eArrowType;
|
||
|
/** @brief m_topPin top pin id */
|
||
|
quint32 m_topPin;
|
||
|
/** @brief m_bottomPin bottom pin id */
|
||
|
quint32 m_bottomPin;
|
||
|
|
||
|
private:
|
||
|
VGrainlineDataPrivate &operator=(const VGrainlineDataPrivate &) Q_DECL_EQ_DELETE;
|
||
|
};
|
||
|
|
||
|
VGrainlineDataPrivate::~VGrainlineDataPrivate()
|
||
|
{}
|
||
|
|
||
|
QT_WARNING_POP
|
||
|
|
||
|
#endif // VGRAINLINEDATA_P_H
|
||
|
|