QGIS API Documentation 3.28.0-Firenze (ed3ad0430f)
qgsmapsettingsutils.h
Go to the documentation of this file.
1/***************************************************************************
2 qgsmapsettingsutils.h
3 -------------------
4 begin : May 2017
5 copyright : (C) 2017 by Mathieu Pellerin
6 email : nirvn dot asia at gmail dot com
7 ***************************************************************************/
8
9/***************************************************************************
10 * *
11 * This program is free software; you can redistribute it and/or modify *
12 * it under the terms of the GNU General Public License as published by *
13 * the Free Software Foundation; either version 2 of the License, or *
14 * (at your option) any later version. *
15 * *
16 ***************************************************************************/
17
18#ifndef QGSMAPSETTINGSUTILS_H
19#define QGSMAPSETTINGSUTILS_H
20
21#include "qgis_core.h"
22#include "qgis_sip.h"
23#include <QString>
24
25class QgsMapSettings;
26
32class CORE_EXPORT QgsMapSettingsUtils
33{
34
35 public:
36
42 {
43 IgnoreGeoPdfSupportedEffects = 1 << 0,
44 };
45 Q_DECLARE_FLAGS( EffectsCheckFlags, EffectsCheckFlag )
46
47
52 static QStringList containsAdvancedEffects( const QgsMapSettings &mapSettings, EffectsCheckFlags flags = QgsMapSettingsUtils::EffectsCheckFlags() );
53
65 static void worldFileParameters( const QgsMapSettings &mapSettings, double &a SIP_OUT, double &b SIP_OUT, double &c SIP_OUT, double &d SIP_OUT, double &e SIP_OUT, double &f SIP_OUT );
66
72 static QString worldFileContent( const QgsMapSettings &mapSettings );
73
74};
75
76Q_DECLARE_OPERATORS_FOR_FLAGS( QgsMapSettingsUtils::EffectsCheckFlags )
77
78#endif
Utilities for map settings.
EffectsCheckFlag
Flags for controlling the behavior of containsAdvancedEffects()
The QgsMapSettings class contains configuration for rendering of the map.
As part of the API refactoring and improvements which landed in the Processing API was substantially reworked from the x version This was done in order to allow much of the underlying Processing framework to be ported into c
#define SIP_OUT
Definition: qgis_sip.h:58
Q_DECLARE_OPERATORS_FOR_FLAGS(QgsField::ConfigurationFlags) CORE_EXPORT QDataStream &operator<<(QDataStream &out
Writes the field to stream out. QGIS version compatibility is not guaranteed.