Navigation Menu

Skip to content

Commit

Permalink
Fix outdated docs
Browse files Browse the repository at this point in the history
Fixes #19004
  • Loading branch information
nyalldawson committed May 22, 2018
1 parent 2bbea0d commit f82b639
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 13 deletions.
13 changes: 6 additions & 7 deletions python/core/auto_generated/layout/qgslayoutatlas.sip.in
Expand Up @@ -11,15 +11,14 @@
class QgsLayoutAtlas : QObject, QgsAbstractLayoutIterator, QgsLayoutSerializableObject
{
%Docstring
Class used to render an Atlas, iterating over geometry features.
prepareForFeature() modifies the atlas map's extent to zoom on the given feature.
This class is used for printing, exporting to PDF and images.
Class used to render QgsLayout as an atlas, by iterating over the features from an associated vector layer.

.. note::
QgsLayoutAtlas implement the QgsAbstractLayoutIterator interface, allowing them to be used
directly with QgsLayoutExporter to automatically output all pages from the atlas.

This class should not be created directly. For the atlas to function correctly
the atlasComposition() property for QgsComposition should be used to retrieve a
QgsLayoutAtlas which is automatically created and attached to the composition.
For QgsPrintLayout layouts, it is not necessary to manually construct a
QgsLayoutAtlas object. Instead, the atlas attached to the print layout
should be used. This can be retrieved by calling :py:func:`QgsPrintLayout.atlas()`

.. versionadded:: 3.0
%End
Expand Down
15 changes: 9 additions & 6 deletions src/core/layout/qgslayoutatlas.h
Expand Up @@ -26,12 +26,15 @@ class QgsLayout;

/**
* \ingroup core
* Class used to render an Atlas, iterating over geometry features.
* prepareForFeature() modifies the atlas map's extent to zoom on the given feature.
* This class is used for printing, exporting to PDF and images.
* \note This class should not be created directly. For the atlas to function correctly
* the atlasComposition() property for QgsComposition should be used to retrieve a
* QgsLayoutAtlas which is automatically created and attached to the composition.
* Class used to render QgsLayout as an atlas, by iterating over the features from an associated vector layer.
*
* QgsLayoutAtlas implement the QgsAbstractLayoutIterator interface, allowing them to be used
* directly with QgsLayoutExporter to automatically output all pages from the atlas.
*
* For QgsPrintLayout layouts, it is not necessary to manually construct a
* QgsLayoutAtlas object. Instead, the atlas attached to the print layout
* should be used. This can be retrieved by calling QgsPrintLayout::atlas().
*
* \since QGIS 3.0
*/
class CORE_EXPORT QgsLayoutAtlas : public QObject, public QgsAbstractLayoutIterator, public QgsLayoutSerializableObject
Expand Down

0 comments on commit f82b639

Please sign in to comment.