Seamly2D
Code documentation
vpiecelabeldata.h
Go to the documentation of this file.
1 /************************************************************************
2  **
3  ** @file vpiecelabeldata.h
4  ** @author Bojan Kverh
5  ** @date June 16, 2016
6  **
7  ** @brief
8  ** @copyright
9  ** This source code is part of the Valentine project, a pattern making
10  ** program, whose allow create and modeling patterns of clothing.
11  ** Copyright (C) 2013-2015 Seamly2D project
12  ** <https://github.com/fashionfreedom/seamly2d> All Rights Reserved.
13  **
14  ** Seamly2D is free software: you can redistribute it and/or modify
15  ** it under the terms of the GNU General Public License as published by
16  ** the Free Software Foundation, either version 3 of the License, or
17  ** (at your option) any later version.
18  **
19  ** Seamly2D is distributed in the hope that it will be useful,
20  ** but WITHOUT ANY WARRANTY; without even the implied warranty of
21  ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22  ** GNU General Public License for more details.
23  **
24  ** You should have received a copy of the GNU General Public License
25  ** along with Seamly2D. If not, see <http://www.gnu.org/licenses/>.
26  **
27  *************************************************************************/
28 
29 #ifndef VPATTERNPIECEDATA_H
30 #define VPATTERNPIECEDATA_H
31 
32 #include <QString>
33 
34 #include "vpatternlabeldata.h"
35 #include "floatitemdef.h"
36 
38 struct VLabelTemplateLine;
39 
40 /**
41  * @brief The VPieceLabelData class holds some information about a single
42  * piece like letter, name, material type, cut number and placement.
43  */
45 {
46 public:
48  VPieceLabelData(const VPieceLabelData &data);
49 
50  virtual ~VPieceLabelData();
51 
53 #ifdef Q_COMPILER_RVALUE_REFS
54  VPieceLabelData &operator=(VPieceLabelData &&data) Q_DECL_NOTHROW;
55 #endif
56 
57  void Swap(VPieceLabelData &data) Q_DECL_NOTHROW;
58 
59  void Clear();
60 
61  // methods, which operate on other members
62  QString GetLetter() const;
63  void SetLetter(const QString &qsLetter);
64 
65  QString GetAnnotation() const;
66  void SetAnnotation(const QString &val);
67 
68  QString GetOrientation() const;
69  void SetOrientation(const QString &val);
70 
71  QString GetRotationWay() const;
72  void SetRotationWay(const QString &val);
73 
74  QString GetTilt() const;
75  void SetTilt(const QString &val);
76 
77  QString GetFoldPosition() const;
78  void SetFoldPosition(const QString &val);
79 
80  int GetQuantity() const;
81  void SetQuantity(int val);
82 
83  bool IsOnFold() const;
84  void SetOnFold(bool onFold);
85 
88 
89 private:
90  QSharedDataPointer<VPieceLabelDataPrivate> d;
91 };
92 
93 #endif // VPATTERNPIECEDATA_H
The VPatternLabelData class holds the information about pattern info label geometry.
The VPieceLabelData class holds some information about a single piece like letter,...
QSharedDataPointer< VPieceLabelDataPrivate > d
void SetAnnotation(const QString &val)
void SetOnFold(bool onFold)
void SetLabelTemplate(const QVector< VLabelTemplateLine > &lines)
VPieceLabelData & operator=(const VPieceLabelData &data)
virtual ~VPieceLabelData()
QString GetOrientation() const
void SetTilt(const QString &val)
void SetRotationWay(const QString &val)
void SetFoldPosition(const QString &val)
QVector< VLabelTemplateLine > GetLabelTemplate() const
void SetQuantity(int val)
bool IsOnFold() const
int GetQuantity() const
void Swap(VPieceLabelData &data) Q_DECL_NOTHROW
QString GetRotationWay() const
void SetOrientation(const QString &val)
void SetLetter(const QString &qsLetter)
QString GetAnnotation() const
QString GetTilt() const
QString GetLetter() const
QString GetFoldPosition() const