56 #include <qcompilerdetection.h>
90 static int Bias(
int length,
int maxLength);
125 virtual void run() Q_DECL_OVERRIDE;
142 void Rotate(
int increase);
QVector< VLayoutPiece > pieces
qreal angle_between
angle_between keep angle between global edge and piece edge. Need for optimization rotation.
CrossingType Crossing(const VLayoutPiece &piece) const
static int Bias(int length, int maxLength)
VPosition(const VContour &gContour, int j, const VLayoutPiece &piece, int i, std::atomic_bool *stop, bool rotate, int rotationIncrease, bool saveLength)
static QPainterPath ShowDirection(const QLineF &edge)
void Rotate(int increase)
bool CheckRotationEdges(VLayoutPiece &piece, int j, int dEdge, int angle) const
VBestSquare getBestResult() const
quint32 getPaperIndex() const
void CombineEdges(VLayoutPiece &piece, const QLineF &globalEdge, const int &dEdge)
static void DrawDebug(const VContour &contour, const VLayoutPiece &piece, int frame, quint32 paperIndex, int piecesCount, const QVector< VLayoutPiece > &pieces=QVector< VLayoutPiece >())
virtual void run() Q_DECL_OVERRIDE
static QPainterPath drawPieces(const QVector< VLayoutPiece > &pieces)
void setPieces(const QVector< VLayoutPiece > &pieces)
static QPainterPath DrawContour(const QVector< QPointF > &points)
void RotateEdges(VLayoutPiece &piece, const QLineF &globalEdge, int dEdge, int angle) const
void setFrame(const quint32 &value)
bool CheckCombineEdges(VLayoutPiece &piece, int j, int &dEdge)
bool SheetContains(const QRectF &rect) const
void setPaperIndex(const quint32 &value)
virtual ~VPosition() Q_DECL_OVERRIDE
quint32 getPieceCount() const
void setPieceCount(const quint32 &value)
void SaveCandidate(VBestSquare &bestResult, const VLayoutPiece &piece, int globalI, int detJ, BestFrom type)