digiKam
DigikamGenericPrintCreatorPlugin::AtkinsPageLayout Class Reference

Public Member Functions

void addLayoutItem (int key, const QSizeF &itemSize)
 
 AtkinsPageLayout (const QRectF &pageRect)
 
QRectF itemRect (int key)
 
 ~AtkinsPageLayout ()
 

Detailed Description

Implements the algorithm described in "Adaptive Photo Collection Page Layout", C. Brian Atkins Imaging Technology Department HP Labs Palo Alto, CA 94304 cbatk.nosp@m.ins@.nosp@m.hpl.h.nosp@m.p.co.nosp@m.m

PDF available at this url: hpl.hp.com/research/isl/layout/

Constructor & Destructor Documentation

◆ AtkinsPageLayout()

DigikamGenericPrintCreatorPlugin::AtkinsPageLayout::AtkinsPageLayout ( const QRectF &  pageRect)
explicit

Create a page layout object which lays out in the given page rectangle

◆ ~AtkinsPageLayout()

DigikamGenericPrintCreatorPlugin::AtkinsPageLayout::~AtkinsPageLayout ( )

Member Function Documentation

◆ addLayoutItem()

void DigikamGenericPrintCreatorPlugin::AtkinsPageLayout::addLayoutItem ( int  key,
const QSizeF &  itemSize 
)

Add an object of size itemSize to this page. The specified key parameter is used to retrieve the layout rectangle with itemRect().

◆ itemRect()

QRectF DigikamGenericPrintCreatorPlugin::AtkinsPageLayout::itemRect ( int  key)

Retrieve the layout rectangle for the item that was added with the given key. Call this method to retrieve the result after you have added all items with the addLayoutItem method. The returned rectangle has the same origin as the page rectangle.


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