#include <vlayoutpaper.h>
Public Member Functions | |
| VLayoutPaper () | |
| VLayoutPaper (int height, int width) | |
| VLayoutPaper (const VLayoutPaper &paper) | |
| ~VLayoutPaper () | |
| VLayoutPaper & | operator= (const VLayoutPaper &paper) |
| void | Swap (VLayoutPaper &paper) Q_DECL_NOTHROW |
| int | GetHeight () const |
| void | SetHeight (int height) |
| int | GetWidth () const |
| void | SetWidth (int width) |
| qreal | GetLayoutWidth () const |
| void | SetLayoutWidth (qreal width) |
| quint32 | GetShift () const |
| void | SetShift (quint32 shift) |
| bool | GetRotate () const |
| void | SetRotate (bool value) |
| int | GetRotationIncrease () const |
| void | SetRotationIncrease (int value) |
| bool | IsSaveLength () const |
| void | SetSaveLength (bool value) |
| void | SetPaperIndex (quint32 index) |
| bool | arrangePiece (const VLayoutPiece &piece, std::atomic_bool &stop) |
| int | Count () const |
| Q_REQUIRED_RESULT QGraphicsRectItem * | GetPaperItem (bool autoCrop, bool textAsPaths) const |
| Q_REQUIRED_RESULT QList< QGraphicsItem * > | getPieceItems (bool textAsPaths) const |
| QVector< VLayoutPiece > | getPieces () const |
| void | setPieces (const QList< VLayoutPiece > &pieces) |
| QRectF | piecesBoundingRect () const |
Private Member Functions | |
| bool | AddToSheet (const VLayoutPiece &piece, std::atomic_bool &stop) |
| bool | SaveResult (const VBestSquare &bestResult, const VLayoutPiece &piece) |
Private Attributes | |
| QSharedDataPointer< VLayoutPaperData > | d |
Definition at line 73 of file vlayoutpaper.h.
| VLayoutPaper::VLayoutPaper | ( | ) |
Definition at line 84 of file vlayoutpaper.cpp.
| VLayoutPaper::VLayoutPaper | ( | int | height, |
| int | width | ||
| ) |
Definition at line 89 of file vlayoutpaper.cpp.
| VLayoutPaper::VLayoutPaper | ( | const VLayoutPaper & | paper | ) |
Definition at line 94 of file vlayoutpaper.cpp.
| VLayoutPaper::~VLayoutPaper | ( | ) |
Definition at line 110 of file vlayoutpaper.cpp.
|
private |
Definition at line 253 of file vlayoutpaper.cpp.
References d, VLayoutPiece::LayoutEdgesCount(), VBestSquare::NewResult(), VLayoutPiece::pieceEdgesCount(), SaveResult(), VPosition::setFrame(), VPosition::setPaperIndex(), VPosition::setPieceCount(), and VPosition::setPieces().
Referenced by arrangePiece().
| bool VLayoutPaper::arrangePiece | ( | const VLayoutPiece & | piece, |
| std::atomic_bool & | stop | ||
| ) |
Definition at line 217 of file vlayoutpaper.cpp.
References AddToSheet(), d, VAbstractPiece::IsForbidFlipping(), VLayoutPiece::LayoutEdgesCount(), and VLayoutPiece::pieceEdgesCount().
Referenced by VLayoutGenerator::Generate().
| int VLayoutPaper::Count | ( | ) | const |
Definition at line 247 of file vlayoutpaper.cpp.
References d.
Referenced by VLayoutGenerator::Generate().
| int VLayoutPaper::GetHeight | ( | ) | const |
Definition at line 114 of file vlayoutpaper.cpp.
References d.
| qreal VLayoutPaper::GetLayoutWidth | ( | ) | const |
Definition at line 138 of file vlayoutpaper.cpp.
References d.
| QGraphicsRectItem * VLayoutPaper::GetPaperItem | ( | bool | autoCrop, |
| bool | textAsPaths | ||
| ) | const |
Definition at line 349 of file vlayoutpaper.cpp.
References d, and getPieceItems().
| QList< QGraphicsItem * > VLayoutPaper::getPieceItems | ( | bool | textAsPaths | ) | const |
| QVector< VLayoutPiece > VLayoutPaper::getPieces | ( | ) | const |
Definition at line 391 of file vlayoutpaper.cpp.
References d.
| bool VLayoutPaper::GetRotate | ( | ) | const |
Definition at line 165 of file vlayoutpaper.cpp.
References d.
| int VLayoutPaper::GetRotationIncrease | ( | ) | const |
Definition at line 178 of file vlayoutpaper.cpp.
References d.
| quint32 VLayoutPaper::GetShift | ( | ) | const |
Definition at line 153 of file vlayoutpaper.cpp.
References d.
| int VLayoutPaper::GetWidth | ( | ) | const |
Definition at line 126 of file vlayoutpaper.cpp.
References d.
| bool VLayoutPaper::IsSaveLength | ( | ) | const |
Definition at line 199 of file vlayoutpaper.cpp.
References d.
| VLayoutPaper & VLayoutPaper::operator= | ( | const VLayoutPaper & | paper | ) |
Definition at line 99 of file vlayoutpaper.cpp.
References d.
| QRectF VLayoutPaper::piecesBoundingRect | ( | ) | const |
Definition at line 403 of file vlayoutpaper.cpp.
References d.
|
private |
Definition at line 321 of file vlayoutpaper.cpp.
References d, VPosition::DrawDebug(), VBestSquare::GContourEdge(), VBestSquare::isMirror(), VBestSquare::pieceEdge(), VLayoutPiece::SetMirror(), VLayoutPiece::setTransform(), VBestSquare::Transform(), VBestSquare::Type(), and VBestSquare::ValidResult().
Referenced by AddToSheet().
| void VLayoutPaper::SetHeight | ( | int | height | ) |
Definition at line 120 of file vlayoutpaper.cpp.
References d.
| void VLayoutPaper::SetLayoutWidth | ( | qreal | width | ) |
Definition at line 144 of file vlayoutpaper.cpp.
References d.
Referenced by VLayoutGenerator::GatherPages(), VLayoutGenerator::Generate(), and VLayoutGenerator::UnitePages().
| void VLayoutPaper::SetPaperIndex | ( | quint32 | index | ) |
Definition at line 211 of file vlayoutpaper.cpp.
References d.
Referenced by VLayoutGenerator::GatherPages(), VLayoutGenerator::Generate(), and VLayoutGenerator::UnitePages().
| void VLayoutPaper::setPieces | ( | const QList< VLayoutPiece > & | pieces | ) |
Definition at line 397 of file vlayoutpaper.cpp.
References d.
Referenced by VLayoutGenerator::GatherPages(), and VLayoutGenerator::UnitePages().
| void VLayoutPaper::SetRotate | ( | bool | value | ) |
Definition at line 171 of file vlayoutpaper.cpp.
References d.
Referenced by VLayoutGenerator::GatherPages(), VLayoutGenerator::Generate(), and VLayoutGenerator::UnitePages().
| void VLayoutPaper::SetRotationIncrease | ( | int | value | ) |
Definition at line 184 of file vlayoutpaper.cpp.
References d.
Referenced by VLayoutGenerator::GatherPages(), VLayoutGenerator::Generate(), and VLayoutGenerator::UnitePages().
| void VLayoutPaper::SetSaveLength | ( | bool | value | ) |
Definition at line 205 of file vlayoutpaper.cpp.
References d.
Referenced by VLayoutGenerator::GatherPages(), VLayoutGenerator::Generate(), and VLayoutGenerator::UnitePages().
| void VLayoutPaper::SetShift | ( | quint32 | shift | ) |
Definition at line 159 of file vlayoutpaper.cpp.
References d.
Referenced by VLayoutGenerator::GatherPages(), VLayoutGenerator::Generate(), and VLayoutGenerator::UnitePages().
| void VLayoutPaper::SetWidth | ( | int | width | ) |
Definition at line 132 of file vlayoutpaper.cpp.
References d.
| void VLayoutPaper::Swap | ( | VLayoutPaper & | paper | ) |
Definition at line 80 of file vlayoutpaper.cpp.
|
private |
Definition at line 123 of file vlayoutpaper.h.
Referenced by AddToSheet(), arrangePiece(), Count(), GetHeight(), GetLayoutWidth(), GetPaperItem(), getPieceItems(), getPieces(), GetRotate(), GetRotationIncrease(), GetShift(), GetWidth(), IsSaveLength(), operator=(), piecesBoundingRect(), SaveResult(), SetHeight(), SetLayoutWidth(), SetPaperIndex(), setPieces(), SetRotate(), SetRotationIncrease(), SetSaveLength(), SetShift(), and SetWidth().