Seamly2D
Code documentation
anonymous_namespace{vlayoutpiece.cpp} Namespace Reference

Functions

QVector< VLayoutPiecePathConvertInternalPaths (const VPiece &piece, const VContainer *pattern, const bool isCut)
 
bool FindLabelGeometry (const VPatternLabelData &labelData, const VContainer *pattern, qreal &rotationAngle, qreal &labelWidth, qreal &labelHeight, QPointF &pos)
 
bool FindGrainlineGeometry (const VGrainlineData &data, const VContainer *pattern, qreal &length, qreal &rotationAngle, QPointF &pos)
 
bool IsItemContained (const QRectF &parentBoundingRect, const QVector< QPointF > &shape, qreal &dX, qreal &dY)
 
QVector< QPointF > CorrectPosition (const QRectF &parentBoundingRect, QVector< QPointF > points)
 
QVector< VSAPointPrepareAllowance (const QVector< QPointF > &points)
 
QPointF RotatePoint (const QPointF &ptCenter, const QPointF &pt, qreal rotationAngle)
 VLayoutPiece::RotatePoint rotates a point around the center for given angle. More...
 
QStringList PieceLabelText (const QVector< QPointF > &labelShape, const VTextManager &tm)
 

Function Documentation

◆ ConvertInternalPaths()

QVector<VLayoutPiecePath> anonymous_namespace{vlayoutpiece.cpp}::ConvertInternalPaths ( const VPiece piece,
const VContainer pattern,
const bool  isCut 
)

◆ CorrectPosition()

QVector<QPointF> anonymous_namespace{vlayoutpiece.cpp}::CorrectPosition ( const QRectF &  parentBoundingRect,
QVector< QPointF >  points 
)

◆ FindGrainlineGeometry()

◆ FindLabelGeometry()

◆ IsItemContained()

bool anonymous_namespace{vlayoutpiece.cpp}::IsItemContained ( const QRectF &  parentBoundingRect,
const QVector< QPointF > &  shape,
qreal &  dX,
qreal &  dY 
)

Definition at line 273 of file vlayoutpiece.cpp.

Referenced by CorrectPosition().

◆ PieceLabelText()

QStringList anonymous_namespace{vlayoutpiece.cpp}::PieceLabelText ( const QVector< QPointF > &  labelShape,
const VTextManager tm 
)

◆ PrepareAllowance()

QVector<VSAPoint> anonymous_namespace{vlayoutpiece.cpp}::PrepareAllowance ( const QVector< QPointF > &  points)

Definition at line 336 of file vlayoutpiece.cpp.

Referenced by VLayoutPiece::SetLayoutAllowancePoints().

◆ RotatePoint()

QPointF anonymous_namespace{vlayoutpiece.cpp}::RotatePoint ( const QPointF &  ptCenter,
const QPointF &  pt,
qreal  rotationAngle 
)

VLayoutPiece::RotatePoint rotates a point around the center for given angle.

Parameters
ptCentercenter around which the point is rotated
ptpoint, which is rotated around the center
rotationAngleangle of rotation
Returns
position of point pt after rotating it around the center for rotation radians

Definition at line 354 of file vlayoutpiece.cpp.

Referenced by VLayoutPiece::SetPatternInfo(), and VLayoutPiece::SetPieceText().