Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
with
602 additions
and 8 deletions.
- +1 −0 python/core/core_auto.sip
- +103 −0 python/core/layout/qgsabstractlayoutiterator.sip
- +43 −1 python/core/layout/qgslayoutatlas.sip
- +10 −0 python/core/layout/qgslayoutcontext.sip
- +1 −0 src/core/CMakeLists.txt
- +82 −0 src/core/layout/qgsabstractlayoutiterator.h
- +294 −4 src/core/layout/qgslayoutatlas.cpp
- +48 −2 src/core/layout/qgslayoutatlas.h
- +7 −0 src/core/layout/qgslayoutcontext.cpp
- +13 −1 src/core/layout/qgslayoutcontext.h
@@ -0,0 +1,103 @@ | ||
/************************************************************************ | ||
* This file has been generated automatically from * | ||
* * | ||
* src/core/layout/qgsabstractlayoutiterator.h * | ||
* * | ||
* Do not edit manually ! Edit header and run scripts/sipify.pl again * | ||
************************************************************************/ | ||
|
||
|
||
|
||
class QgsAbstractLayoutIterator | ||
{ | ||
%Docstring | ||
************************************************************************* | ||
* | ||
This program is free software; you can redistribute it and/or modify * | ||
it under the terms of the GNU General Public License as published by * | ||
the Free Software Foundation; either version 2 of the License, or * | ||
(at your option) any later version. * | ||
* | ||
************************************************************************** | ||
%End | ||
|
||
%TypeHeaderCode | ||
#include "qgsabstractlayoutiterator.h" | ||
%End | ||
public: | ||
|
||
virtual ~QgsAbstractLayoutIterator(); | ||
|
||
virtual bool beginRender() = 0; | ||
%Docstring | ||
Called when rendering begins, before iteration commences. Returns true if successful, false if no iteration | ||
is available or required. | ||
|
||
.. seealso:: :py:func:`endRender()` | ||
%End | ||
|
||
virtual bool endRender() = 0; | ||
%Docstring | ||
Ends the render, performing any required cleanup tasks. | ||
%End | ||
|
||
virtual int count() const = 0; | ||
%Docstring | ||
Returns the number of features to iterate over. | ||
%End | ||
|
||
virtual bool next() = 0; | ||
%Docstring | ||
Iterates to next feature, returning false if no more features exist to iterate over. | ||
|
||
.. seealso:: :py:func:`previous()` | ||
|
||
.. seealso:: :py:func:`last()` | ||
|
||
.. seealso:: :py:func:`first()` | ||
%End | ||
|
||
virtual bool previous() = 0; | ||
%Docstring | ||
Iterates to the previous feature, returning false if no previous feature exists. | ||
|
||
.. seealso:: :py:func:`next()` | ||
|
||
.. seealso:: :py:func:`last()` | ||
|
||
.. seealso:: :py:func:`first()` | ||
%End | ||
|
||
virtual bool last() = 0; | ||
%Docstring | ||
Seeks to the last feature, returning false if no feature was found. | ||
|
||
.. seealso:: :py:func:`next()` | ||
|
||
.. seealso:: :py:func:`previous()` | ||
|
||
.. seealso:: :py:func:`first()` | ||
%End | ||
|
||
virtual bool first() = 0; | ||
%Docstring | ||
Seeks to the first feature, returning false if no feature was found. | ||
|
||
.. seealso:: :py:func:`next()` | ||
|
||
.. seealso:: :py:func:`previous()` | ||
|
||
.. seealso:: :py:func:`last()` | ||
%End | ||
}; | ||
|
||
|
||
|
||
|
||
/************************************************************************ | ||
* This file has been generated automatically from * | ||
* * | ||
* src/core/layout/qgsabstractlayoutiterator.h * | ||
* * | ||
* Do not edit manually ! Edit header and run scripts/sipify.pl again * | ||
************************************************************************/ |
@@ -0,0 +1,82 @@ | ||
/*************************************************************************** | ||
qgsabstractlayoutiterator.h | ||
--------------------------- | ||
begin : December 2017 | ||
copyright : (C) 2017 by Nyall Dawson | ||
email : nyall dot dawson at gmail dot com | ||
***************************************************************************/ | ||
/*************************************************************************** | ||
* * | ||
* This program is free software; you can redistribute it and/or modify * | ||
* it under the terms of the GNU General Public License as published by * | ||
* the Free Software Foundation; either version 2 of the License, or * | ||
* (at your option) any later version. * | ||
* * | ||
***************************************************************************/ | ||
#ifndef QGSABSTRACTLAYOUTITERATOR_H | ||
#define QGSABSTRACTLAYOUTITERATOR_H | ||
|
||
#include "qgis_core.h" | ||
|
||
|
||
class CORE_EXPORT QgsAbstractLayoutIterator | ||
{ | ||
|
||
public: | ||
|
||
virtual ~QgsAbstractLayoutIterator() = default; | ||
|
||
/** | ||
* Called when rendering begins, before iteration commences. Returns true if successful, false if no iteration | ||
* is available or required. | ||
* \see endRender() | ||
*/ | ||
virtual bool beginRender() = 0; | ||
|
||
/** | ||
* Ends the render, performing any required cleanup tasks. | ||
*/ | ||
virtual bool endRender() = 0; | ||
|
||
/** | ||
* Returns the number of features to iterate over. | ||
*/ | ||
virtual int count() const = 0; | ||
|
||
/** | ||
* Iterates to next feature, returning false if no more features exist to iterate over. | ||
* \see previous() | ||
* \see last() | ||
* \see first() | ||
*/ | ||
virtual bool next() = 0; | ||
|
||
/** | ||
* Iterates to the previous feature, returning false if no previous feature exists. | ||
* \see next() | ||
* \see last() | ||
* \see first() | ||
*/ | ||
virtual bool previous() = 0; | ||
|
||
/** | ||
* Seeks to the last feature, returning false if no feature was found. | ||
* \see next() | ||
* \see previous() | ||
* \see first() | ||
*/ | ||
virtual bool last() = 0; | ||
|
||
/** | ||
* Seeks to the first feature, returning false if no feature was found. | ||
* \see next() | ||
* \see previous() | ||
* \see last() | ||
*/ | ||
virtual bool first() = 0; | ||
}; | ||
|
||
#endif //QGSABSTRACTLAYOUTITERATOR_H | ||
|
||
|
||
|
Oops, something went wrong.