2017-05-01 14:22:26 +07:00
|
|
|
/************************************************************************
|
|
|
|
* This file has been generated automatically from *
|
|
|
|
* *
|
|
|
|
* src/core/qgsmapsettingsutils.h *
|
|
|
|
* *
|
|
|
|
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
|
|
|
************************************************************************/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class QgsMapSettingsUtils
|
|
|
|
{
|
|
|
|
%Docstring
|
2017-12-15 10:36:55 -04:00
|
|
|
Utilities for map settings.
|
|
|
|
|
2017-05-01 14:22:26 +07:00
|
|
|
.. versionadded:: 3.0
|
|
|
|
%End
|
|
|
|
|
|
|
|
%TypeHeaderCode
|
|
|
|
#include "qgsmapsettingsutils.h"
|
|
|
|
%End
|
|
|
|
public:
|
|
|
|
|
2020-06-08 10:00:47 +10:00
|
|
|
enum class EffectsCheckFlag
|
|
|
|
{
|
|
|
|
IgnoreGeoPdfSupportedEffects,
|
|
|
|
};
|
|
|
|
typedef QFlags<QgsMapSettingsUtils::EffectsCheckFlag> EffectsCheckFlags;
|
|
|
|
|
|
|
|
|
2020-06-19 12:02:00 +02:00
|
|
|
static QStringList containsAdvancedEffects( const QgsMapSettings &mapSettings, EffectsCheckFlags flags = QgsMapSettingsUtils::EffectsCheckFlags() );
|
2017-05-08 13:03:39 +07:00
|
|
|
%Docstring
|
2020-06-08 10:00:47 +10:00
|
|
|
Checks whether any of the layers attached to a map settings object contain advanced effects.
|
2017-12-15 10:36:55 -04:00
|
|
|
|
2020-06-08 10:00:47 +10:00
|
|
|
The optional ``flags`` argument can be used to fine-tune the check behavior.
|
2019-08-10 11:22:50 +07:00
|
|
|
%End
|
|
|
|
|
|
|
|
static void worldFileParameters( const QgsMapSettings &mapSettings, double &a /Out/, double &b /Out/, double &c /Out/, double &d /Out/, double &e /Out/, double &f /Out/ );
|
|
|
|
%Docstring
|
|
|
|
Computes the six parameters of a world file.
|
|
|
|
|
|
|
|
:param mapSettings: map settings
|
|
|
|
:param b: the b parameter
|
|
|
|
:param c: the c parameter
|
|
|
|
:param d: the d parameter
|
|
|
|
:param e: the e parameter
|
|
|
|
:param f: the f parameter
|
|
|
|
|
|
|
|
.. versionadded:: 3.10
|
2017-05-08 13:03:39 +07:00
|
|
|
%End
|
|
|
|
|
2017-05-01 14:22:26 +07:00
|
|
|
static QString worldFileContent( const QgsMapSettings &mapSettings );
|
|
|
|
%Docstring
|
2017-12-15 10:36:55 -04:00
|
|
|
Creates the content of a world file.
|
|
|
|
|
2017-12-15 21:36:08 -04:00
|
|
|
:param mapSettings: map settings
|
2017-12-15 10:36:55 -04:00
|
|
|
|
2017-05-01 14:22:26 +07:00
|
|
|
.. note::
|
|
|
|
|
|
|
|
Uses 17 places of precision for all numbers output
|
|
|
|
%End
|
|
|
|
|
|
|
|
};
|
|
|
|
|
2020-06-08 10:00:47 +10:00
|
|
|
QFlags<QgsMapSettingsUtils::EffectsCheckFlag> operator|(QgsMapSettingsUtils::EffectsCheckFlag f1, QFlags<QgsMapSettingsUtils::EffectsCheckFlag> f2);
|
|
|
|
|
|
|
|
|
2017-05-01 14:22:26 +07:00
|
|
|
/************************************************************************
|
|
|
|
* This file has been generated automatically from *
|
|
|
|
* *
|
|
|
|
* src/core/qgsmapsettingsutils.h *
|
|
|
|
* *
|
|
|
|
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
|
|
|
************************************************************************/
|