QGIS API Documentation
4.3.0-Master (16eddb2670e)
Toggle main menu visibility
Loading...
Searching...
No Matches
src
core
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
24
#include <QString>
25
26
class
QgsMapSettings
;
27
class
QgsRectangle
;
28
33
class
CORE_EXPORT
QgsMapSettingsUtils
34
{
35
public
:
40
enum class
EffectsCheckFlag
:
int
SIP_ENUM_BASETYPE
( IntFlag )
41
{
42
IgnoreGeoPdfSupportedEffects = 1 << 0,
43
};
44
Q_DECLARE_FLAGS(
EffectsCheckFlags
,
EffectsCheckFlag
)
45
46
51
static
QStringList
containsAdvancedEffects
(
const
QgsMapSettings
&mapSettings,
EffectsCheckFlags
flags =
QgsMapSettingsUtils::EffectsCheckFlags
() );
52
64
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
);
65
71
static
QString
worldFileContent
(
const
QgsMapSettings
&mapSettings );
72
85
static
bool
isValidExtent
(
const
QgsRectangle
&extent );
86
};
87
88
Q_DECLARE_OPERATORS_FOR_FLAGS
(
QgsMapSettingsUtils::EffectsCheckFlags
)
89
90
#endif
QgsMapSettingsUtils
Utilities for map settings.
Definition
qgsmapsettingsutils.h:34
QgsMapSettingsUtils::EffectsCheckFlag
EffectsCheckFlag
Flags for controlling the behavior of containsAdvancedEffects().
Definition
qgsmapsettingsutils.h:41
QgsMapSettingsUtils::isValidExtent
static bool isValidExtent(const QgsRectangle &extent)
Returns true if an extent is a valid extent which can be used by QgsMapSettings.
Definition
qgsmapsettingsutils.cpp:145
QgsMapSettingsUtils::EffectsCheckFlags
QFlags< EffectsCheckFlag > EffectsCheckFlags
Definition
qgsmapsettingsutils.h:44
QgsMapSettingsUtils::worldFileParameters
static void worldFileParameters(const QgsMapSettings &mapSettings, double &a, double &b, double &c, double &d, double &e, double &f)
Computes the six parameters of a world file.
Definition
qgsmapsettingsutils.cpp:78
QgsMapSettingsUtils::containsAdvancedEffects
static QStringList containsAdvancedEffects(const QgsMapSettings &mapSettings, EffectsCheckFlags flags=QgsMapSettingsUtils::EffectsCheckFlags())
Checks whether any of the layers attached to a map settings object contain advanced effects.
Definition
qgsmapsettingsutils.cpp:29
QgsMapSettingsUtils::worldFileContent
static QString worldFileContent(const QgsMapSettings &mapSettings)
Creates the content of a world file.
Definition
qgsmapsettingsutils.cpp:123
QgsMapSettings
Contains configuration for rendering maps.
Definition
qgsmapsettings.h:91
QgsRectangle
A rectangle specified with double values.
Definition
qgsrectangle.h:47
c
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
Definition
porting_processing.dox:1
qgis_sip.h
SIP_ENUM_BASETYPE
#define SIP_ENUM_BASETYPE(type)
Definition
qgis_sip.h:277
SIP_OUT
#define SIP_OUT
Definition
qgis_sip.h:57
Q_DECLARE_OPERATORS_FOR_FLAGS
Q_DECLARE_OPERATORS_FOR_FLAGS(QgsTimeZoneComboBox::StandardItems)
Generated on
for QGIS API Documentation by
1.17.0