161 sipType = sipType_QgsBrightnessContrastFilter;
163 sipType = sipType_QgsHueSaturationFilter;
166 sipType = sipType_QgsRasterDataProvider;
172 sipType = sipType_QgsRasterNuller;
174 sipType = sipType_QgsRasterProjector;
178 sipType = sipType_QgsHillshadeRenderer;
180 sipType = sipType_QgsMultiBandColorRenderer;
182 sipType = sipType_QgsPalettedRasterRenderer;
184 sipType = sipType_QgsSingleBandColorDataRenderer;
186 sipType = sipType_QgsSingleBandGrayRenderer;
188 sipType = sipType_QgsSingleBandPseudoColorRenderer;
190 sipType = sipType_QgsRasterContourRenderer;
192 sipType = sipType_QgsRasterRenderer;
195 sipType = sipType_QgsRasterResampleFilter;
211 BuildPyramids = 1 << 4,
213 IdentifyValue = 1 << 6,
214 IdentifyText = 1 << 7,
215 IdentifyHtml = 1 << 8,
216 IdentifyFeature = 1 << 9,
236 QString capabilitiesString()
const;
262 virtual int xBlockSize()
const {
return mInput ? mInput->xBlockSize() : 0; }
263 virtual int yBlockSize()
const {
return mInput ? mInput->yBlockSize() : 0; }
266 virtual int xSize()
const {
return mInput ? mInput->xSize() : 0; }
267 virtual int ySize()
const {
return mInput ? mInput->ySize() : 0; }
270 virtual QString generateBandName(
int bandNumber )
const;
277 virtual QString colorInterpretationName(
int bandNumber )
const;
284 QString displayBandName(
int bandNumber )
const;
308 virtual bool on()
const {
return mOn; }
311 virtual void setOn(
bool on ) { mOn = on; }
322 return mInput ? mInput->sourceInput() :
this;
333 return mInput ? mInput->sourceInput() :
this;
356 Qgis::RasterBandStatistics stats =
Qgis::RasterBandStatistic::All,
373 virtual
bool hasStatistics(
int bandNo,
374 Qgis::RasterBandStatistics stats =
Qgis::RasterBandStatistic::All,
376 int sampleSize = 0 );
395 double minimum = std::numeric_limits<double>::quiet_NaN(),
396 double maximum = std::numeric_limits<double>::quiet_NaN(),
399 bool includeOutOfRange =
false,
404 SIP_PYOBJECT minimum = Py_None,
405 SIP_PYOBJECT maximum = Py_None,
408 bool includeOutOfRange =
false,
412 double minimum = 0.0,
413 double maximum = 0.0,
416 bool includeOutOfRange =
false,
423 minimum = std::numeric_limits<double>::quiet_NaN();
427 minimum = PyFloat_AsDouble( a2 );
432 maximum = std::numeric_limits<double>::quiet_NaN();
436 maximum = PyFloat_AsDouble( a3 );
440 return sipConvertFromType( h, sipType_QgsRasterHistogram, Py_None );
450 virtual bool hasHistogram(
int bandNo,
452 double minimum = std::numeric_limits<double>::quiet_NaN(),
453 double maximum = std::numeric_limits<double>::quiet_NaN(),
456 bool includeOutOfRange =
false );
458 virtual bool hasHistogram(
int bandNo,
460 SIP_PYOBJECT minimum = Py_None,
461 SIP_PYOBJECT maximum = Py_None,
464 bool includeOutOfRange =
false )
467 double minimum = 0.0,
468 double maximum = 0.0,
471 bool includeOutOfRange =
false )];
477 minimum = std::numeric_limits<double>::quiet_NaN();
481 minimum = PyFloat_AsDouble( a2 );
486 maximum = std::numeric_limits<double>::quiet_NaN();
490 maximum = PyFloat_AsDouble( a3 );
493 sipRes = sipCpp->hasHistogram( a0, a1, minimum, maximum, *a4, a5, a6 );
508 virtual void cumulativeCut(
int bandNo,
514 int sampleSize = 0 );
517 virtual void writeXml( QDomDocument &doc, QDomElement &parentElem )
const { Q_UNUSED( doc ) Q_UNUSED( parentElem ); }
519 virtual void readXml(
const QDomElement &filterElem ) { Q_UNUSED( filterElem ) }
542 double minimum = std::numeric_limits<double>::quiet_NaN(),
543 double maximum = std::numeric_limits<double>::quiet_NaN(),
546 bool includeOutOfRange =
false );
551 SIP_PYOBJECT minimum = Py_None,
552 SIP_PYOBJECT maximum = Py_None,
555 bool includeOutOfRange =
false )
559 double minimum = 0.0,
560 double maximum = 0.0,
563 bool includeOutOfRange =
false )];
569 minimum = std::numeric_limits<double>::quiet_NaN();
573 minimum = PyFloat_AsDouble( a3 );
578 maximum = std::numeric_limits<double>::quiet_NaN();
582 maximum = PyFloat_AsDouble( a4 );
585#if defined(SIP_PROTECTED_IS_PUBLIC) || (SIP_VERSION >= 0x050000 && !defined(_MSC_VER))
586 sipCpp->initHistogram( *a0, a1, a2, minimum, maximum, *a5, a6, a7 );
588 sipCpp->sipProtect_initHistogram( *a0, a1, a2, minimum, maximum, *a5, a6, a7 );
601 Qgis::RasterBandStatistics stats =
Qgis::RasterBandStatistic::All,
603 int binCount = 0 ) const;
Contains information about the context of a rendering operation.