162 sipType = sipType_QgsBrightnessContrastFilter;
164 sipType = sipType_QgsHueSaturationFilter;
167 sipType = sipType_QgsRasterDataProvider;
173 sipType = sipType_QgsRasterNuller;
175 sipType = sipType_QgsRasterProjector;
179 sipType = sipType_QgsHillshadeRenderer;
181 sipType = sipType_QgsMultiBandColorRenderer;
183 sipType = sipType_QgsPalettedRasterRenderer;
185 sipType = sipType_QgsSingleBandColorDataRenderer;
187 sipType = sipType_QgsSingleBandGrayRenderer;
189 sipType = sipType_QgsSingleBandPseudoColorRenderer;
191 sipType = sipType_QgsRasterSingleColorRenderer;
193 sipType = sipType_QgsRasterContourRenderer;
195 sipType = sipType_QgsRasterRenderer;
198 sipType = sipType_QgsRasterResampleFilter;
228 Q_DECL_DEPRECATED QString capabilitiesString() const
SIP_DEPRECATED;
231 virtual
Qgis::DataType dataType(
int bandNo ) const = 0;
254 virtual int xBlockSize()
const {
return mInput ? mInput->xBlockSize() : 0; }
255 virtual int yBlockSize()
const {
return mInput ? mInput->yBlockSize() : 0; }
258 virtual int xSize()
const {
return mInput ? mInput->xSize() : 0; }
259 virtual int ySize()
const {
return mInput ? mInput->ySize() : 0; }
262 virtual QString generateBandName(
int bandNumber )
const;
270 virtual QString colorInterpretationName(
int bandNumber )
const;
277 QString displayBandName(
int bandNumber )
const;
301 virtual bool on()
const {
return mOn; }
304 virtual void setOn(
bool on ) { mOn = on; }
315 return mInput ? mInput->sourceInput() :
this;
326 return mInput ? mInput->sourceInput() :
this;
349 Qgis::RasterBandStatistics stats =
Qgis::RasterBandStatistic::All,
366 virtual
bool hasStatistics(
int bandNo,
367 Qgis::RasterBandStatistics stats =
Qgis::RasterBandStatistic::All,
369 int sampleSize = 0 );
388 double minimum = std::numeric_limits<double>::quiet_NaN(),
389 double maximum = std::numeric_limits<double>::quiet_NaN(),
392 bool includeOutOfRange =
false,
397 SIP_PYOBJECT minimum = Py_None,
398 SIP_PYOBJECT maximum = Py_None,
401 bool includeOutOfRange =
false,
405 double minimum = 0.0,
406 double maximum = 0.0,
409 bool includeOutOfRange =
false,
416 minimum = std::numeric_limits<double>::quiet_NaN();
420 minimum = PyFloat_AsDouble( a2 );
425 maximum = std::numeric_limits<double>::quiet_NaN();
429 maximum = PyFloat_AsDouble( a3 );
433 return sipConvertFromType( h, sipType_QgsRasterHistogram, Py_None );
443 virtual bool hasHistogram(
int bandNo,
445 double minimum = std::numeric_limits<double>::quiet_NaN(),
446 double maximum = std::numeric_limits<double>::quiet_NaN(),
449 bool includeOutOfRange =
false );
451 virtual bool hasHistogram(
int bandNo,
453 SIP_PYOBJECT minimum = Py_None,
454 SIP_PYOBJECT maximum = Py_None,
457 bool includeOutOfRange =
false )
460 double minimum = 0.0,
461 double maximum = 0.0,
464 bool includeOutOfRange =
false )];
470 minimum = std::numeric_limits<double>::quiet_NaN();
474 minimum = PyFloat_AsDouble( a2 );
479 maximum = std::numeric_limits<double>::quiet_NaN();
483 maximum = PyFloat_AsDouble( a3 );
486 sipRes = sipCpp->hasHistogram( a0, a1, minimum, maximum, *a4, a5, a6 );
501 virtual void cumulativeCut(
int bandNo,
507 int sampleSize = 0 );
510 virtual void writeXml( QDomDocument &doc, QDomElement &parentElem )
const { Q_UNUSED( doc ) Q_UNUSED( parentElem ); }
512 virtual void readXml(
const QDomElement &filterElem ) { Q_UNUSED( filterElem ) }
535 double minimum = std::numeric_limits<double>::quiet_NaN(),
536 double maximum = std::numeric_limits<double>::quiet_NaN(),
539 bool includeOutOfRange =
false );
544 SIP_PYOBJECT minimum = Py_None,
545 SIP_PYOBJECT maximum = Py_None,
548 bool includeOutOfRange =
false )
552 double minimum = 0.0,
553 double maximum = 0.0,
556 bool includeOutOfRange =
false )];
562 minimum = std::numeric_limits<double>::quiet_NaN();
566 minimum = PyFloat_AsDouble( a3 );
571 maximum = std::numeric_limits<double>::quiet_NaN();
575 maximum = PyFloat_AsDouble( a4 );
578#if defined(SIP_PROTECTED_IS_PUBLIC) || (SIP_VERSION >= 0x050000 && !defined(_MSC_VER))
579 sipCpp->initHistogram( *a0, a1, a2, minimum, maximum, *a5, a6, a7 );
581 sipCpp->sipProtect_initHistogram( *a0, a1, a2, minimum, maximum, *a5, a6, a7 );
594 Qgis::RasterBandStatistics stats =
Qgis::RasterBandStatistic::All,
596 int binCount = 0 ) const;
Contains information about the context of a rendering operation.