#include <vposter.h>
Public Member Functions | |
VPoster (const QPrinter *printer) | |
QVector< PosterData > | Calc (const QRect &imageRect, int page, PageOrientation orientation) const |
QVector< QGraphicsItem * > | Borders (QGraphicsItem *parent, const PosterData &img, int sheets) const |
Private Member Functions | |
int | CountRows (int height, PageOrientation orientation) const |
int | CountColumns (int width, PageOrientation orientation) const |
PosterData | Cut (int i, int j, const QRect &imageRect, PageOrientation orientation) const |
QRect | PageRect () const |
Static Private Member Functions | |
static qreal | ToPixel (qreal val) |
Private Attributes | |
const QPrinter * | printer |
quint32 | allowance |
allowance is the width of the strip that holds the tiled grid information and that is used for the gluing. More... | |
|
explicit |
Definition at line 70 of file vposter.cpp.
QVector< QGraphicsItem * > VPoster::Borders | ( | QGraphicsItem * | parent, |
const PosterData & | img, | ||
int | sheets | ||
) | const |
Definition at line 104 of file vposter.cpp.
References allowance, PosterData::column, PosterData::columns, PosterData::index, PosterData::rect, PosterData::row, and PosterData::rows.
QVector< PosterData > VPoster::Calc | ( | const QRect & | imageRect, |
int | page, | ||
PageOrientation | orientation | ||
) | const |
Definition at line 76 of file vposter.cpp.
References PosterData::columns, CountColumns(), CountRows(), Cut(), PosterData::index, printer, and PosterData::rows.
|
private |
Definition at line 239 of file vposter.cpp.
References allowance, Landscape, and PageRect().
Referenced by Calc().
|
private |
Definition at line 192 of file vposter.cpp.
References allowance, Landscape, and PageRect().
Referenced by Calc().
|
private |
Definition at line 266 of file vposter.cpp.
References allowance, Landscape, PageRect(), PosterData::row, and SCASSERT.
Referenced by Calc().
|
private |
Definition at line 298 of file vposter.cpp.
References printer, and ToPixel().
Referenced by CountColumns(), CountRows(), and Cut().
|
staticprivate |
|
private |
allowance is the width of the strip that holds the tiled grid information and that is used for the gluing.
Definition at line 99 of file vposter.h.
Referenced by Borders(), CountColumns(), CountRows(), and Cut().
|
private |
Definition at line 94 of file vposter.h.
Referenced by Calc(), and PageRect().