Seamly2D
Code documentation
vgrainlinedata.h
Go to the documentation of this file.
1 /************************************************************************
2  **
3  ** @file vgrainlinedata.h
4  ** @author Bojan Kverh
5  ** @date September 06, 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 VGRAINLINEGEOMETRY_H
30 #define VGRAINLINEGEOMETRY_H
31 
32 #include <QString>
33 #include <QPointF>
34 
35 #include "vabstractfloatitemdata.h"
36 #include "floatitemdef.h"
37 
39 
40 /**
41  * @brief The VGrainlineData class holds information about a grainline like
42  * position, size, rotation and visibility
43  */
45 {
46 public:
48  VGrainlineData(const VGrainlineData &data);
49 
50  virtual ~VGrainlineData();
51 
53 #ifdef Q_COMPILER_RVALUE_REFS
54  VGrainlineData &operator=(VGrainlineData &&data) Q_DECL_NOTHROW;
55 #endif
56 
57  void Swap(VGrainlineData &data) Q_DECL_NOTHROW;
58 
59  // methods, which set and return values of different parameters
60  QString GetLength() const;
61  void SetLength(const QString& qsLen);
62 
63  QString GetRotation() const;
64  void SetRotation(const QString& qsRot);
65 
66  ArrowType GetArrowType() const;
67  void SetArrowType(ArrowType eAT);
68 
69  quint32 centerAnchorPoint() const;
70  void setCenterAnchorPoint(quint32 centerAnchor);
71 
72  quint32 topAnchorPoint() const;
73  void setTopAnchorPoint(quint32 topAnchorPoint);
74 
75  quint32 bottomAnchorPoint() const;
77 
78 private:
79  QSharedDataPointer<VGrainlineDataPrivate> d;
80 };
81 
82 #endif // VGRAINLINEGEOMETRY_H
83 
The VGrainlineData class holds information about a grainline like position, size, rotation and visibi...
ArrowType GetArrowType() const
QSharedDataPointer< VGrainlineDataPrivate > d
VGrainlineData & operator=(const VGrainlineData &data)
void setBottomAnchorPoint(quint32 bottomAnchorPoint)
virtual ~VGrainlineData()
void SetRotation(const QString &qsRot)
quint32 centerAnchorPoint() const
QString GetRotation() const
void SetLength(const QString &qsLen)
void SetArrowType(ArrowType eAT)
quint32 bottomAnchorPoint() const
void Swap(VGrainlineData &data) Q_DECL_NOTHROW
quint32 topAnchorPoint() const
void setCenterAnchorPoint(quint32 centerAnchor)
QString GetLength() const
void setTopAnchorPoint(quint32 topAnchorPoint)
ArrowType
Definition: floatitemdef.h:60