QGIS API Documentation
4.3.0-Master (52aa6503bed)
Toggle main menu visibility
Loading...
Searching...
No Matches
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 "qgis_core.h"
22
#include "
qgis_sip.h
"
23
24
#include <QString>
25
26
class
QString;
27
class
QImage;
28
class
QSize;
29
34
class
CORE_EXPORT
QgsRasterResampler
35
{
36
//SIP_TYPEHEADER_INCLUDE( "qgsbilinearrasterresampler.h" );
37
//SIP_TYPEHEADER_INCLUDE( "qgscubicrasterresampler.h" );
38
39
40
#ifdef SIP_RUN
41
SIP_CONVERT_TO_SUBCLASS_CODE
42
if
(
dynamic_cast<
QgsBilinearRasterResampler
*
>
( sipCpp ) != NULL )
43
sipType = sipType_QgsBilinearRasterResampler;
44
else
if
(
dynamic_cast<
QgsCubicRasterResampler
*
>
( sipCpp ) != NULL )
45
sipType = sipType_QgsCubicRasterResampler;
46
else
47
sipType = 0;
48
SIP_END
49
#endif
50
51
public
:
52
virtual
~QgsRasterResampler
() =
default
;
53
62
Q_DECL_DEPRECATED
virtual
void
resample
(
const
QImage &srcImage, QImage &dstImage ) = 0
SIP_DEPRECATED
;
63
68
virtual
QString
type
()
const
= 0;
69
75
virtual
QgsRasterResampler
*
clone
()
const
= 0
SIP_FACTORY
;
76
84
virtual
int
tileBufferPixels
()
const
{
return
0; }
85
};
86
87
95
class
CORE_EXPORT
QgsRasterResamplerV2
:
public
QgsRasterResampler
96
{
97
public
:
103
virtual
QImage
resampleV2
(
const
QImage &source,
const
QSize &size ) = 0;
104
};
105
106
#endif
// QGSRASTERRESAMPLER_H
QgsBilinearRasterResampler
Bilinear raster resampler.
Definition
qgsbilinearrasterresampler.h:33
QgsCubicRasterResampler
Cubic Raster Resampler.
Definition
qgscubicrasterresampler.h:33
QgsRasterResamplerV2
Interface for resampling rasters (V2) (e.g.
Definition
qgsrasterresampler.h:96
QgsRasterResamplerV2::resampleV2
virtual QImage resampleV2(const QImage &source, const QSize &size)=0
Resamples a source image to the specified size.
QgsRasterResampler
Interface for resampling rasters (e.g.
Definition
qgsrasterresampler.h:35
QgsRasterResampler::tileBufferPixels
virtual int tileBufferPixels() const
Returns the optional tile buffer size in pixels.
Definition
qgsrasterresampler.h:84
QgsRasterResampler::~QgsRasterResampler
virtual ~QgsRasterResampler()=default
QgsRasterResampler::resample
virtual Q_DECL_DEPRECATED void resample(const QImage &srcImage, QImage &dstImage)=0
Resamples a source image to a destination image.
QgsRasterResampler::type
virtual QString type() const =0
Gets a descriptive type identifier for this raster resampler.
QgsRasterResampler::clone
virtual QgsRasterResampler * clone() const =0
Gets a deep copy of this object.
qgis_sip.h
SIP_CONVERT_TO_SUBCLASS_CODE
#define SIP_CONVERT_TO_SUBCLASS_CODE(code)
Definition
qgis_sip.h:203
SIP_DEPRECATED
#define SIP_DEPRECATED
Definition
qgis_sip.h:113
SIP_FACTORY
#define SIP_FACTORY
Definition
qgis_sip.h:83
SIP_END
#define SIP_END
Definition
qgis_sip.h:220
Generated on
for QGIS API Documentation by
1.17.0