valentina/src/libs/vpatterndb/vpiecepath_p.h

72 lines
2.8 KiB
C
Raw Normal View History

/************************************************************************
**
** @file
** @author Roman Telezhynskyi <dismine(at)gmail.com>
** @date 22 11, 2016
**
** @brief
** @copyright
** This source code is part of the Valentina project, a pattern making
** program, whose allow create and modeling patterns of clothing.
** Copyright (C) 2016 Valentina project
** <https://gitlab.com/smart-pattern/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 VPIECEPATH_P_H
#define VPIECEPATH_P_H
#include <QSharedData>
#include <QVector>
#include "vpiecenode.h"
QT_WARNING_PUSH
QT_WARNING_DISABLE_GCC("-Weffc++")
2017-05-30 17:44:16 +02:00
QT_WARNING_DISABLE_GCC("-Wnon-virtual-dtor")
class VPiecePathData : public QSharedData
{
public:
2023-07-13 16:49:20 +02:00
VPiecePathData() = default;
explicit VPiecePathData(PiecePathType type);
VPiecePathData(const VPiecePathData &path) = default;
~VPiecePathData() = default;
2023-07-13 16:49:20 +02:00
QVector<VPieceNode> m_nodes{}; // NOLINT(misc-non-private-member-variables-in-classes)
PiecePathType m_type{PiecePathType::Unknown}; // NOLINT(misc-non-private-member-variables-in-classes)
QString m_name{}; // NOLINT(misc-non-private-member-variables-in-classes)
Qt::PenStyle m_penType{Qt::SolidLine}; // NOLINT(misc-non-private-member-variables-in-classes)
bool m_cut{false}; // NOLINT(misc-non-private-member-variables-in-classes)
QString m_visibilityTrigger{'1'}; // NOLINT(misc-non-private-member-variables-in-classes)
bool m_firstToCuttingContour{false}; // NOLINT(misc-non-private-member-variables-in-classes)
bool m_lastToCuttingContour{false}; // NOLINT(misc-non-private-member-variables-in-classes)
2024-01-06 13:20:56 +01:00
bool m_notMirrored{false}; // NOLINT(misc-non-private-member-variables-in-classes)
private:
2023-05-02 16:38:30 +02:00
Q_DISABLE_ASSIGN_MOVE(VPiecePathData) // NOLINT
};
QT_WARNING_POP
2023-07-13 16:49:20 +02:00
//---------------------------------------------------------------------------------------------------------------------
inline VPiecePathData::VPiecePathData(PiecePathType type)
: m_type(type)
{
}
2023-07-13 16:49:20 +02:00
#endif // VPIECEPATH_P_H