52 #ifndef VPIECENODE_P_H
53 #define VPIECENODE_P_H
55 #include <QSharedData>
56 #include <QDataStream>
57 #include "../ifc/ifcdef.h"
58 #include "../vmisc/def.h"
59 #include "../vmisc/diagnostic.h"
60 #include "../vmisc/vabstractapplication.h"
61 #include "../vmisc/vcommonsettings.h"
64 QT_WARNING_DISABLE_GCC(
"-Weffc++")
65 QT_WARNING_DISABLE_GCC("-Wnon-virtual-dtor")
76 , m_isMainPathNode(true)
82 , m_showNotch(
qApp->Settings()->showSeamAllowanceNotch())
83 , m_showSeamlineNotch(
qApp->Settings()->showSeamlineNotch())
84 , m_notchLength(
qApp->Settings()->getDefaultNotchLength())
85 , m_notchWidth(
qApp->Settings()->getDefaultNotchWidth())
92 , m_typeTool(typeTool)
96 , m_isMainPathNode(true)
102 , m_showNotch(
qApp->Settings()->showSeamAllowanceNotch())
103 , m_showSeamlineNotch(
qApp->Settings()->showSeamlineNotch())
104 , m_notchLength(
qApp->Settings()->getDefaultNotchLength())
105 , m_notchWidth(
qApp->Settings()->getDefaultNotchWidth())
118 , m_typeTool(node.m_typeTool)
119 , m_reverse(node.m_reverse)
120 , m_excluded(node.m_excluded)
121 , m_isNotch(node.m_isNotch)
122 , m_isMainPathNode(node.m_isMainPathNode)
123 , m_beforeWidthFormula(node.m_beforeWidthFormula)
124 , m_afterWidthFormula(node.m_afterWidthFormula)
125 , m_angleType(node.m_angleType)
126 , m_notchType(node.m_notchType)
127 , m_notchSubType(node.m_notchSubType)
128 , m_showNotch(node.m_showNotch)
129 , m_showSeamlineNotch(node.m_showSeamlineNotch)
130 , m_notchLength(node.m_notchLength)
131 , m_notchWidth(node.m_notchWidth)
132 , m_notchAngle(node.m_notchAngle)
133 , m_notchCount(node.m_notchCount)
138 friend QDataStream& operator<<(QDataStream& out, const
VPieceNodeData& p);
139 friend QDataStream& operator>>(QDataStream& in,
VPieceNodeData& p);
149 bool m_isMainPathNode;
151 QString m_beforeWidthFormula;
152 QString m_afterWidthFormula;
159 bool m_showSeamlineNotch;
174 <<
static_cast<int>(p.m_typeTool)
178 << p.m_beforeWidthFormula
179 << p.m_afterWidthFormula
180 <<
static_cast<int>(p.m_angleType)
181 <<
static_cast<int>(p.m_notchType)
182 <<
static_cast<int>(p.m_notchSubType)
184 << p.m_showSeamlineNotch
198 int notchSubType = 0;
bool m_isNotch
m_excluded true if item excluded from main path. Excluded item is not visible and also will not has a...
VPieceNodeData(const VPieceNodeData &node)
QString m_afterWidthFormula
PieceNodeAngle m_angleType
NotchSubType m_notchSubType
QString m_beforeWidthFormula
m_isMainPathNode need fin know if allowed for this notch to be double.
Tool m_typeTool
id object id.
VPieceNodeData(quint32 id, Tool typeTool, bool reverse)
bool m_excluded
reverse true if need reverse points list for node.
~VPieceNodeData() Q_DECL_EQ_DEFAULT
bool m_reverse
typeTool type of tool
NotchType stringToNotchType(const QString &value)
const QString currentSeamAllowance
QDataStream & operator>>(QDataStream &in, VPieceNodeData &p)