QGIS API Documentation
2.8.2-Wien
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
src
core
qgsvectorsimplifymethod.cpp
Go to the documentation of this file.
1
/***************************************************************************
2
qgsvectorsimplifymethod.cpp
3
---------------------
4
begin : December 2013
5
copyright : (C) 2013 by Alvaro Huarte
6
email : http://wiki.osgeo.org/wiki/Alvaro_Huarte
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.h
"
17
#include "
qgsvectorsimplifymethod.h
"
18
#include "
qgsvectorlayer.h
"
19
20
QgsVectorSimplifyMethod::QgsVectorSimplifyMethod
()
21
: mSimplifyHints(
QGis
::DEFAULT_MAPTOPIXEL_THRESHOLD > 1 ?
QgsVectorSimplifyMethod
::FullSimplification :
QgsVectorSimplifyMethod
::GeometrySimplification )
22
, mThreshold(
QGis
::DEFAULT_MAPTOPIXEL_THRESHOLD )
23
, mLocalOptimization( true )
24
, mMaximumScale( 1 )
25
{
26
}
27
28
QgsVectorSimplifyMethod::QgsVectorSimplifyMethod
(
const
QgsVectorSimplifyMethod
&rh )
29
{
30
operator=
( rh );
31
}
32
33
QgsVectorSimplifyMethod
&
QgsVectorSimplifyMethod::operator=
(
const
QgsVectorSimplifyMethod
& rh )
34
{
35
mSimplifyHints = rh.mSimplifyHints;
36
mThreshold = rh.mThreshold;
37
mLocalOptimization = rh.mLocalOptimization;
38
mMaximumScale = rh.mMaximumScale;
39
return
*
this
;
40
}
Generated on Sun May 10 2015 16:33:25 for QGIS API Documentation by
1.8.1.2