QGIS API Documentation 3.41.0-Master (45a0abf3bec)
Loading...
Searching...
No Matches
qgsabstractlayoutiterator.h
Go to the documentation of this file.
1/***************************************************************************
2 qgsabstractlayoutiterator.h
3 ---------------------------
4 begin : December 2017
5 copyright : (C) 2017 by Nyall Dawson
6 email : nyall dot dawson at gmail dot com
7 ***************************************************************************/
8/***************************************************************************
9 * *
10 * This program is free software; you can redistribute it and/or modify *
11 * it under the terms of the GNU General Public License as published by *
12 * the Free Software Foundation; either version 2 of the License, or *
13 * (at your option) any later version. *
14 * *
15 ***************************************************************************/
16#ifndef QGSABSTRACTLAYOUTITERATOR_H
17#define QGSABSTRACTLAYOUTITERATOR_H
18
19#include "qgis_core.h"
20#include <QString>
21
22class QgsLayout;
23
30{
31
32 public:
33
34 virtual ~QgsAbstractLayoutIterator() = default;
35
39 virtual QgsLayout *layout() = 0;
40
46 virtual bool beginRender() = 0;
47
51 virtual bool endRender() = 0;
52
56 virtual int count() const = 0;
57
61 virtual bool next() = 0;
62
67 virtual QString filePath( const QString &baseFilePath, const QString &extension ) = 0;
68
69};
70
71#endif //QGSABSTRACTLAYOUTITERATOR_H
72
73
74
An abstract base class for QgsLayout based classes which can be exported by QgsLayoutExporter.
virtual bool endRender()=0
Ends the render, performing any required cleanup tasks.
virtual QgsLayout * layout()=0
Returns the layout associated with the iterator.
virtual bool next()=0
Iterates to next feature, returning false if no more features exist to iterate over.
virtual ~QgsAbstractLayoutIterator()=default
virtual bool beginRender()=0
Called when rendering begins, before iteration commences.
virtual QString filePath(const QString &baseFilePath, const QString &extension)=0
Returns the file path for the current feature, based on a specified base file path and extension.
virtual int count() const =0
Returns the number of features to iterate over.
Base class for layouts, which can contain items such as maps, labels, scalebars, etc.
Definition qgslayout.h:49