QGIS API Documentation
4.3.0-Master (16eddb2670e)
Toggle main menu visibility
Loading...
Searching...
No Matches
src
core
qgsscaleutils.h
Go to the documentation of this file.
1
/***************************************************************************
2
qgscaleutils.h
3
----------------------
4
begin : July 2012
5
copyright : (C) 2012 by Alexander Bruy
6
email : alexander dot bruy at gmail dot com
7
***************************************************************************
8
* *
9
* This program is free software; you can redistribute it and/or modify *
10
* it under the terms of the GNU General Public License as published by *
11
* the Free Software Foundation; either version 2 of the License, or *
12
* (at your option) any later version. *
13
* *
14
***************************************************************************/
15
16
#include "qgis_core.h"
17
18
#include <QString>
19
#include <QStringList>
20
21
#ifndef QGSSCALEUTILS_H
22
#define QGSSCALEUTILS_H
23
28
class
CORE_EXPORT
QgsScaleUtils
29
{
30
public
:
39
static
bool
saveScaleList
(
const
QString &fileName,
const
QStringList &scales, QString &errorMessage );
40
49
static
bool
loadScaleList
(
const
QString &fileName, QStringList &scales, QString &errorMessage );
50
63
static
bool
equalToOrGreaterThanMinimumScale
(
const
double
scale,
const
double
minScale );
64
77
static
bool
lessThanMaximumScale
(
const
double
scale,
const
double
maxScale );
78
};
79
80
#endif
QgsScaleUtils
Contains utility functions for working with map scales.
Definition
qgsscaleutils.h:29
QgsScaleUtils::equalToOrGreaterThanMinimumScale
static bool equalToOrGreaterThanMinimumScale(const double scale, const double minScale)
Returns whether the scale is equal to or greater than the minScale, taking non-round numbers into acc...
Definition
qgsscaleutils.cpp:90
QgsScaleUtils::lessThanMaximumScale
static bool lessThanMaximumScale(const double scale, const double maxScale)
Returns whether the scale is less than the maxScale, taking non-round numbers into account.
Definition
qgsscaleutils.cpp:95
QgsScaleUtils::loadScaleList
static bool loadScaleList(const QString &fileName, QStringList &scales, QString &errorMessage)
Load scales from the given file.
Definition
qgsscaleutils.cpp:53
QgsScaleUtils::saveScaleList
static bool saveScaleList(const QString &fileName, const QStringList &scales, QString &errorMessage)
Save scales to the given file.
Definition
qgsscaleutils.cpp:27
Generated on
for QGIS API Documentation by
1.17.0