#include <vbank.h>
Public Member Functions | |
VBank () | |
qreal | GetLayoutWidth () const |
void | SetLayoutWidth (const qreal &value) |
void | setPieces (const QVector< VLayoutPiece > &pieces) |
int | GetTiket () |
VLayoutPiece | getPiece (int i) const |
void | Arranged (int i) |
void | NotArranged (int i) |
bool | Prepare () |
void | Reset () |
void | SetCaseType (Cases caseType) |
int | allPieceCount () const |
int | LeftArrange () const |
int | ArrangedCount () const |
qreal | GetBiggestDiagonal () const |
Private Member Functions | |
void | PrepareGroup () |
void | PrepareThreeGroups () |
void | PrepareTwoGroups () |
void | PrepareDescGroup () |
int | GetNextThreeGroups () const |
int | GetNextTwoGroups () const |
int | GetNextDescGroup () const |
void | SqMaxMin (qint64 &sMax, qint64 &sMin) const |
Private Attributes | |
QVector< VLayoutPiece > | pieces |
QHash< int, qint64 > | unsorted |
QHash< int, qint64 > | big |
QHash< int, qint64 > | middle |
QHash< int, qint64 > | small |
qreal | layoutWidth |
Cases | caseType |
bool | prepare |
qreal | diagonal |
QT_WARNING_PUSH QT_WARNING_POP VBank::VBank | ( | ) |
int VBank::allPieceCount | ( | ) | const |
Definition at line 263 of file vbank.cpp.
References big, middle, small, and unsorted.
Referenced by ArrangedCount(), VLayoutGenerator::Generate(), and VLayoutGenerator::PieceCount().
void VBank::Arranged | ( | int | i | ) |
int VBank::ArrangedCount | ( | ) | const |
Definition at line 281 of file vbank.cpp.
References allPieceCount(), and pieces.
Referenced by VLayoutGenerator::Generate().
qreal VBank::GetBiggestDiagonal | ( | ) | const |
Definition at line 275 of file vbank.cpp.
References diagonal.
Referenced by VLayoutGenerator::Generate().
qreal VBank::GetLayoutWidth | ( | ) | const |
Definition at line 90 of file vbank.cpp.
References layoutWidth.
Referenced by VLayoutGenerator::GatherPages(), VLayoutGenerator::Generate(), and VLayoutGenerator::UnitePages().
|
private |
|
private |
|
private |
VLayoutPiece VBank::getPiece | ( | int | i | ) | const |
Definition at line 143 of file vbank.cpp.
References pieces.
Referenced by VLayoutGenerator::Generate().
int VBank::GetTiket | ( | ) |
Definition at line 110 of file vbank.cpp.
References CaseDesc, CaseThreeGroup, CaseTwoGroup, caseType, GetNextDescGroup(), GetNextThreeGroups(), GetNextTwoGroups(), LeftArrange(), prepare, PrepareGroup(), and unsorted.
Referenced by VLayoutGenerator::Generate().
int VBank::LeftArrange | ( | ) | const |
Definition at line 269 of file vbank.cpp.
References big, middle, and small.
Referenced by VLayoutGenerator::Generate(), and GetTiket().
void VBank::NotArranged | ( | int | i | ) |
bool VBank::Prepare | ( | ) |
Definition at line 201 of file vbank.cpp.
References diagonal, layoutWidth, pieces, prepare, PrepareGroup(), and unsorted.
Referenced by VLayoutGenerator::Generate().
|
private |
Definition at line 362 of file vbank.cpp.
Referenced by PrepareGroup().
|
private |
Definition at line 287 of file vbank.cpp.
References CaseDesc, CaseThreeGroup, CaseTwoGroup, caseType, PrepareDescGroup(), PrepareThreeGroups(), and PrepareTwoGroups().
Referenced by GetTiket(), and Prepare().
|
private |
Definition at line 306 of file vbank.cpp.
References big, middle, small, SqMaxMin(), and unsorted.
Referenced by PrepareGroup().
|
private |
Definition at line 337 of file vbank.cpp.
References big, small, SqMaxMin(), and unsorted.
Referenced by PrepareGroup().
void VBank::Reset | ( | ) |
Definition at line 246 of file vbank.cpp.
References big, diagonal, middle, prepare, small, and unsorted.
Referenced by SetLayoutWidth(), and setPieces().
void VBank::SetCaseType | ( | Cases | caseType | ) |
Definition at line 257 of file vbank.cpp.
References caseType.
Referenced by VLayoutGenerator::SetCaseType().
void VBank::SetLayoutWidth | ( | const qreal & | value | ) |
Definition at line 96 of file vbank.cpp.
References layoutWidth, and Reset().
Referenced by VLayoutGenerator::SetLayoutWidth().
void VBank::setPieces | ( | const QVector< VLayoutPiece > & | pieces | ) |
Definition at line 103 of file vbank.cpp.
References pieces, and Reset().
Referenced by VLayoutGenerator::setPieces().
|
private |
Definition at line 432 of file vbank.cpp.
References unsorted.
Referenced by PrepareThreeGroups(), and PrepareTwoGroups().
|
private |
Definition at line 103 of file vbank.h.
Referenced by allPieceCount(), Arranged(), GetNextDescGroup(), GetNextThreeGroups(), GetNextTwoGroups(), LeftArrange(), NotArranged(), PrepareDescGroup(), PrepareThreeGroups(), PrepareTwoGroups(), and Reset().
|
private |
Definition at line 109 of file vbank.h.
Referenced by GetTiket(), PrepareGroup(), and SetCaseType().
|
private |
Definition at line 111 of file vbank.h.
Referenced by GetBiggestDiagonal(), Prepare(), and Reset().
|
private |
Definition at line 107 of file vbank.h.
Referenced by GetLayoutWidth(), Prepare(), and SetLayoutWidth().
|
private |
Definition at line 104 of file vbank.h.
Referenced by allPieceCount(), Arranged(), GetNextThreeGroups(), LeftArrange(), NotArranged(), PrepareThreeGroups(), and Reset().
|
private |
Definition at line 100 of file vbank.h.
Referenced by ArrangedCount(), getPiece(), Prepare(), and setPieces().
|
private |
Definition at line 110 of file vbank.h.
Referenced by GetTiket(), Prepare(), and Reset().
|
private |
Definition at line 105 of file vbank.h.
Referenced by allPieceCount(), Arranged(), GetNextThreeGroups(), GetNextTwoGroups(), LeftArrange(), NotArranged(), PrepareThreeGroups(), PrepareTwoGroups(), and Reset().
|
private |
Definition at line 101 of file vbank.h.
Referenced by allPieceCount(), GetTiket(), NotArranged(), Prepare(), PrepareDescGroup(), PrepareThreeGroups(), PrepareTwoGroups(), Reset(), and SqMaxMin().