Seamly2D
Code documentation
VPieceNode Class Reference

#include <vpiecenode.h>

Collaboration diagram for VPieceNode:

Public Member Functions

 VPieceNode ()
 
 VPieceNode (quint32 id, Tool typeTool, bool reverse=false)
 
 VPieceNode (const VPieceNode &node)
 
 ~VPieceNode ()
 
VPieceNodeoperator= (const VPieceNode &node)
 
void Swap (VPieceNode &node) Q_DECL_NOTHROW
 
quint32 GetId () const
 
void SetId (quint32 id)
 
Tool GetTypeTool () const
 
void SetTypeTool (Tool value)
 
bool GetReverse () const
 
void SetReverse (bool reverse)
 
bool isExcluded () const
 
void SetExcluded (bool exclude)
 
qreal GetSABefore (const VContainer *data) const
 
qreal GetSABefore (const VContainer *data, Unit unit) const
 
QString GetFormulaSABefore () const
 
void setBeforeSAFormula (const QString &formula)
 
qreal GetSAAfter (const VContainer *data) const
 
qreal GetSAAfter (const VContainer *data, Unit unit) const
 
QString GetFormulaSAAfter () const
 
void setAfterSAFormula (const QString &formula)
 
PieceNodeAngle GetAngleType () const
 
void SetAngleType (PieceNodeAngle type)
 
bool isNotch () const
 
void setNotch (bool notch)
 
bool IsMainPathNode () const
 
void SetMainPathNode (bool value)
 
NotchType getNotchType () const
 
void setNotchType (NotchType notchType)
 
NotchSubType getNotchSubType () const
 
void setNotchSubType (NotchSubType notchSubType)
 
bool showSeamlineNotch () const
 
void setShowSeamlineNotch (bool value)
 
bool showNotch () const
 
void setShowNotch (bool value)
 
qreal getNotchLength () const
 
void setNotchLength (qreal notchLength)
 
qreal getNotchWidth () const
 
void setNotchWidth (qreal notchWidth)
 
qreal getNotchAngle () const
 
void setNotchAngle (qreal notchAngle)
 
int getNotchCount () const
 
void setNotchCount (int notchCount)
 

Private Attributes

QSharedDataPointer< VPieceNodeDatad
 

Friends

QDataStream & operator<< (QDataStream &out, const VPieceNode &)
 
QDataStream & operator>> (QDataStream &in, VPieceNode &p)
 

Detailed Description

Definition at line 64 of file vpiecenode.h.

Constructor & Destructor Documentation

◆ VPieceNode() [1/3]

VPieceNode::VPieceNode ( )

Definition at line 104 of file vpiecenode.cpp.

◆ VPieceNode() [2/3]

VPieceNode::VPieceNode ( quint32  id,
Tool  typeTool,
bool  reverse = false 
)

Definition at line 109 of file vpiecenode.cpp.

◆ VPieceNode() [3/3]

VPieceNode::VPieceNode ( const VPieceNode node)

Definition at line 114 of file vpiecenode.cpp.

◆ ~VPieceNode()

VPieceNode::~VPieceNode ( )

Definition at line 130 of file vpiecenode.cpp.

Member Function Documentation

◆ GetAngleType()

◆ GetFormulaSAAfter()

QString VPieceNode::GetFormulaSAAfter ( ) const

◆ GetFormulaSABefore()

QString VPieceNode::GetFormulaSABefore ( ) const

◆ GetId()

quint32 VPieceNode::GetId ( ) const

Definition at line 149 of file vpiecenode.cpp.

References d.

Referenced by QT_WARNING_POP::AddNodeArc(), QT_WARNING_POP::AddNodeElArc(), QT_WARNING_POP::AddNodePoint(), QT_WARNING_POP::AddNodeSpline(), QT_WARNING_POP::AddNodeSplinePath(), VAbstractTool::AddSANode(), anonymous_namespace{vpiecepath.cpp}::CurveEndPoint(), anonymous_namespace{vpiecepath.cpp}::CurvePoint(), anonymous_namespace{vpiecepath.cpp}::CurveStartPoint(), VToolInternalPath::DecrementNodes(), PatternPieceTool::EnableToolMove(), QT_WARNING_POP::FindIndexJ(), DialogInternalPath::getItemById(), PatternPieceDialog::getItemById(), DialogInternalPath::GetLastId(), InsertNodesDialog::getLastNodeId(), DialogTool::getNodeInfo(), VPiece::getNodeSAPoints(), PatternPieceDialog::getPreviousId(), VToolInternalPath::IncrementNodes(), PatternPieceDialog::initializeCSAPoint(), PatternPieceTool::initializeNode(), DialogInternalPath::initializeNodesList(), PatternPieceDialog::initializeNodesList(), DialogInternalPath::initializeNotchesList(), PatternPieceDialog::initializeNotchesList(), InsertNodesDialog::insertCurveNodes(), DialogTool::isEachPointNameUnique(), VPiecePath::MissingNodes(), DialogTool::newNodeItem(), VPiecePath::NodeNextPoint(), VPiecePath::NodePreviousPoint(), VPiecePath::PathNodePoints(), VPiecePath::PathPoints(), PatternPieceTool::pieceLockedChanged(), QT_WARNING_POP::PointsOnEdge(), VAbstractTool::PrepareNode(), VPiecePath::PreparePointEkv(), VPiecePath::RemoveEdge(), anonymous_namespace{dialogtool.cpp}::RowId(), VPiece::SeamAllowancePoints(), VPiecePath::SeamAllowancePoints(), QT_WARNING_POP::unitePieces(), PatternPieceTool::UpdateExcludeState(), QT_WARNING_POP::UpdateNodeArc(), QT_WARNING_POP::UpdateNodeElArc(), QT_WARNING_POP::UpdateNodePoint(), QT_WARNING_POP::UpdateNodeSpline(), and QT_WARNING_POP::UpdateNodeSplinePath().

◆ getNotchAngle()

qreal VPieceNode::getNotchAngle ( ) const

◆ getNotchCount()

int VPieceNode::getNotchCount ( ) const

◆ getNotchLength()

qreal VPieceNode::getNotchLength ( ) const

◆ getNotchSubType()

◆ getNotchType()

◆ getNotchWidth()

qreal VPieceNode::getNotchWidth ( ) const

◆ GetReverse()

◆ GetSAAfter() [1/2]

qreal VPieceNode::GetSAAfter ( const VContainer data) const

◆ GetSAAfter() [2/2]

qreal VPieceNode::GetSAAfter ( const VContainer data,
Unit  unit 
) const

◆ GetSABefore() [1/2]

qreal VPieceNode::GetSABefore ( const VContainer data) const

◆ GetSABefore() [2/2]

qreal VPieceNode::GetSABefore ( const VContainer data,
Unit  unit 
) const

◆ GetTypeTool()

◆ isExcluded()

◆ IsMainPathNode()

bool VPieceNode::IsMainPathNode ( ) const

Definition at line 302 of file vpiecenode.cpp.

References d.

◆ isNotch()

◆ operator=()

VPieceNode & VPieceNode::operator= ( const VPieceNode node)

Definition at line 119 of file vpiecenode.cpp.

References d.

◆ setAfterSAFormula()

void VPieceNode::setAfterSAFormula ( const QString &  formula)

◆ SetAngleType()

void VPieceNode::SetAngleType ( PieceNodeAngle  type)

◆ setBeforeSAFormula()

◆ SetExcluded()

◆ SetId()

void VPieceNode::SetId ( quint32  id)

Definition at line 155 of file vpiecenode.cpp.

References d.

Referenced by QT_WARNING_POP::AddNodeToNewPath(), and VAbstractTool::PrepareNodes().

◆ SetMainPathNode()

void VPieceNode::SetMainPathNode ( bool  value)

Definition at line 308 of file vpiecenode.cpp.

References d.

◆ setNotch()

void VPieceNode::setNotch ( bool  notch)

◆ setNotchAngle()

void VPieceNode::setNotchAngle ( qreal  notchAngle)

Definition at line 387 of file vpiecenode.cpp.

References d.

Referenced by PatternPieceDialog::notchAngleChanged(), and VAbstractPattern::ParseSANode().

◆ setNotchCount()

void VPieceNode::setNotchCount ( int  notchCount)

Definition at line 399 of file vpiecenode.cpp.

References d.

Referenced by PatternPieceDialog::notchCountChanged(), and VAbstractPattern::ParseSANode().

◆ setNotchLength()

void VPieceNode::setNotchLength ( qreal  notchLength)

Definition at line 363 of file vpiecenode.cpp.

References d.

Referenced by PatternPieceDialog::notchLengthChanged(), and VAbstractPattern::ParseSANode().

◆ setNotchSubType()

void VPieceNode::setNotchSubType ( NotchSubType  notchSubType)

◆ setNotchType()

◆ setNotchWidth()

void VPieceNode::setNotchWidth ( qreal  notchWidth)

Definition at line 375 of file vpiecenode.cpp.

References d.

Referenced by PatternPieceDialog::notchWidthChanged(), and VAbstractPattern::ParseSANode().

◆ SetReverse()

void VPieceNode::SetReverse ( bool  reverse)

◆ setShowNotch()

void VPieceNode::setShowNotch ( bool  value)

Definition at line 344 of file vpiecenode.cpp.

References d.

Referenced by VAbstractPattern::ParseSANode(), and PatternPieceDialog::showNotchChanged().

◆ setShowSeamlineNotch()

void VPieceNode::setShowSeamlineNotch ( bool  value)

Definition at line 356 of file vpiecenode.cpp.

References d.

Referenced by VAbstractPattern::ParseSANode(), and PatternPieceDialog::showSeamlineNotchChanged().

◆ SetTypeTool()

void VPieceNode::SetTypeTool ( Tool  value)

Definition at line 167 of file vpiecenode.cpp.

References d.

◆ showNotch()

bool VPieceNode::showNotch ( ) const

Definition at line 338 of file vpiecenode.cpp.

References d.

Referenced by VAbstractTool::AddSANode(), and PatternPieceDialog::notchChanged().

◆ showSeamlineNotch()

bool VPieceNode::showSeamlineNotch ( ) const

Definition at line 350 of file vpiecenode.cpp.

References d.

Referenced by VAbstractTool::AddSANode(), and PatternPieceDialog::notchChanged().

◆ Swap()

void VPieceNode::Swap ( VPieceNode node)

Definition at line 100 of file vpiecenode.cpp.

Friends And Related Function Documentation

◆ operator<<

QDataStream& operator<< ( QDataStream &  out,
const VPieceNode p 
)
friend

Definition at line 135 of file vpiecenode.cpp.

◆ operator>>

QDataStream& operator>> ( QDataStream &  in,
VPieceNode p 
)
friend

Definition at line 142 of file vpiecenode.cpp.

Member Data Documentation

◆ d


The documentation for this class was generated from the following files: