Seamly2D
Code documentation
VLayoutPaper Class Reference

#include <vlayoutpaper.h>

Collaboration diagram for VLayoutPaper:

Public Member Functions

 VLayoutPaper ()
 
 VLayoutPaper (int height, int width)
 
 VLayoutPaper (const VLayoutPaper &paper)
 
 ~VLayoutPaper ()
 
VLayoutPaperoperator= (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< VLayoutPiecegetPieces () 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< VLayoutPaperDatad
 

Detailed Description

Definition at line 73 of file vlayoutpaper.h.

Constructor & Destructor Documentation

◆ VLayoutPaper() [1/3]

VLayoutPaper::VLayoutPaper ( )

Definition at line 84 of file vlayoutpaper.cpp.

◆ VLayoutPaper() [2/3]

VLayoutPaper::VLayoutPaper ( int  height,
int  width 
)

Definition at line 89 of file vlayoutpaper.cpp.

◆ VLayoutPaper() [3/3]

VLayoutPaper::VLayoutPaper ( const VLayoutPaper paper)

Definition at line 94 of file vlayoutpaper.cpp.

◆ ~VLayoutPaper()

VLayoutPaper::~VLayoutPaper ( )

Definition at line 110 of file vlayoutpaper.cpp.

Member Function Documentation

◆ AddToSheet()

bool VLayoutPaper::AddToSheet ( const VLayoutPiece piece,
std::atomic_bool &  stop 
)
private

◆ arrangePiece()

bool VLayoutPaper::arrangePiece ( const VLayoutPiece piece,
std::atomic_bool &  stop 
)

◆ Count()

int VLayoutPaper::Count ( ) const

Definition at line 247 of file vlayoutpaper.cpp.

References d.

Referenced by VLayoutGenerator::Generate().

◆ GetHeight()

int VLayoutPaper::GetHeight ( ) const

Definition at line 114 of file vlayoutpaper.cpp.

References d.

◆ GetLayoutWidth()

qreal VLayoutPaper::GetLayoutWidth ( ) const

Definition at line 138 of file vlayoutpaper.cpp.

References d.

◆ GetPaperItem()

QGraphicsRectItem * VLayoutPaper::GetPaperItem ( bool  autoCrop,
bool  textAsPaths 
) const

Definition at line 349 of file vlayoutpaper.cpp.

References d, and getPieceItems().

◆ getPieceItems()

QList< QGraphicsItem * > VLayoutPaper::getPieceItems ( bool  textAsPaths) const

Definition at line 380 of file vlayoutpaper.cpp.

References d.

Referenced by GetPaperItem().

◆ getPieces()

QVector< VLayoutPiece > VLayoutPaper::getPieces ( ) const

Definition at line 391 of file vlayoutpaper.cpp.

References d.

◆ GetRotate()

bool VLayoutPaper::GetRotate ( ) const

Definition at line 165 of file vlayoutpaper.cpp.

References d.

◆ GetRotationIncrease()

int VLayoutPaper::GetRotationIncrease ( ) const

Definition at line 178 of file vlayoutpaper.cpp.

References d.

◆ GetShift()

quint32 VLayoutPaper::GetShift ( ) const

Definition at line 153 of file vlayoutpaper.cpp.

References d.

◆ GetWidth()

int VLayoutPaper::GetWidth ( ) const

Definition at line 126 of file vlayoutpaper.cpp.

References d.

◆ IsSaveLength()

bool VLayoutPaper::IsSaveLength ( ) const

Definition at line 199 of file vlayoutpaper.cpp.

References d.

◆ operator=()

VLayoutPaper & VLayoutPaper::operator= ( const VLayoutPaper paper)

Definition at line 99 of file vlayoutpaper.cpp.

References d.

◆ piecesBoundingRect()

QRectF VLayoutPaper::piecesBoundingRect ( ) const

Definition at line 403 of file vlayoutpaper.cpp.

References d.

◆ SaveResult()

◆ SetHeight()

void VLayoutPaper::SetHeight ( int  height)

Definition at line 120 of file vlayoutpaper.cpp.

References d.

◆ SetLayoutWidth()

void VLayoutPaper::SetLayoutWidth ( qreal  width)

◆ SetPaperIndex()

void VLayoutPaper::SetPaperIndex ( quint32  index)

◆ setPieces()

void VLayoutPaper::setPieces ( const QList< VLayoutPiece > &  pieces)

Definition at line 397 of file vlayoutpaper.cpp.

References d.

Referenced by VLayoutGenerator::GatherPages(), and VLayoutGenerator::UnitePages().

◆ SetRotate()

void VLayoutPaper::SetRotate ( bool  value)

◆ SetRotationIncrease()

void VLayoutPaper::SetRotationIncrease ( int  value)

◆ SetSaveLength()

void VLayoutPaper::SetSaveLength ( bool  value)

◆ SetShift()

void VLayoutPaper::SetShift ( quint32  shift)

◆ SetWidth()

void VLayoutPaper::SetWidth ( int  width)

Definition at line 132 of file vlayoutpaper.cpp.

References d.

◆ Swap()

void VLayoutPaper::Swap ( VLayoutPaper paper)

Definition at line 80 of file vlayoutpaper.cpp.

Member Data Documentation

◆ d


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