QGIS API Documentation
3.26.3-Buenos Aires (65e4edfdad)
src
core
raster
qgsrasterresampler.h
Go to the documentation of this file.
1
/***************************************************************************
2
qgsrasterresampler.h
3
--------------------
4
begin : December 2011
5
copyright : (C) 2011 by Marco Hugentobler
6
email : marco at sourcepole dot ch
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 QGSRASTERRESAMPLER_H
19
#define QGSRASTERRESAMPLER_H
20
21
#include <QString>
22
#include "qgis_core.h"
23
#include "
qgis_sip.h
"
24
25
class
QString;
26
class
QImage;
27
class
QSize;
28
33
class
CORE_EXPORT
QgsRasterResampler
34
{
35
#ifdef SIP_RUN
36
#include "
qgsbilinearrasterresampler.h
"
37
#include "
qgscubicrasterresampler.h
"
38
#endif
39
40
41
#ifdef SIP_RUN
42
SIP_CONVERT_TO_SUBCLASS_CODE
43
if
(
dynamic_cast<
QgsBilinearRasterResampler
*
>
( sipCpp ) != NULL )
44
sipType = sipType_QgsBilinearRasterResampler;
45
else
if
(
dynamic_cast<
QgsCubicRasterResampler
*
>
( sipCpp ) != NULL )
46
sipType = sipType_QgsCubicRasterResampler;
47
else
48
sipType = 0;
49
SIP_END
50
#endif
51
52
public
:
53
virtual
~
QgsRasterResampler
() =
default
;
54
63
Q_DECL_DEPRECATED
virtual
void
resample(
const
QImage &srcImage, QImage &dstImage ) = 0
SIP_DEPRECATED
;
64
69
virtual
QString type()
const
= 0;
70
76
virtual
QgsRasterResampler
*clone()
const
= 0
SIP_FACTORY
;
77
85
virtual
int
tileBufferPixels
()
const
{
return
0; }
86
};
87
88
96
class
CORE_EXPORT
QgsRasterResamplerV2
:
public
QgsRasterResampler
97
{
98
public
:
99
105
virtual
QImage resampleV2(
const
QImage &source,
const
QSize &size ) = 0;
106
107
};
108
109
#endif // QGSRASTERRESAMPLER_H
qgsbilinearrasterresampler.h
QgsRasterResampler::tileBufferPixels
virtual int tileBufferPixels() const
Returns the optional tile buffer size in pixels.
Definition:
qgsrasterresampler.h:85
QgsRasterResampler
Interface for resampling rasters (e.g. to have a smoother appearance)
Definition:
qgsrasterresampler.h:33
qgscubicrasterresampler.h
QgsBilinearRasterResampler
Bilinear Raster Resampler.
Definition:
qgsbilinearrasterresampler.h:33
SIP_FACTORY
#define SIP_FACTORY
Definition:
qgis_sip.h:76
SIP_DEPRECATED
#define SIP_DEPRECATED
Definition:
qgis_sip.h:106
SIP_CONVERT_TO_SUBCLASS_CODE
#define SIP_CONVERT_TO_SUBCLASS_CODE(code)
Definition:
qgis_sip.h:186
QgsRasterResamplerV2
Interface for resampling rasters (V2) (e.g. to have a smoother appearance), which provides a more eff...
Definition:
qgsrasterresampler.h:96
qgis_sip.h
QgsCubicRasterResampler
Cubic Raster Resampler.
Definition:
qgscubicrasterresampler.h:32
SIP_END
#define SIP_END
Definition:
qgis_sip.h:203
Generated on Sun Sep 11 2022 00:03:17 for QGIS API Documentation by
1.8.17