QGIS API Documentation
2.0.1-Dufour
|
#include <qgssinglebandgrayrendererwidget.h>
Public Slots | |
void | loadMinMax (int theBandNo, double theMin, double theMax, int theOrigin) |
Public Member Functions | |
QgsSingleBandGrayRendererWidget (QgsRasterLayer *layer, const QgsRectangle &extent=QgsRectangle()) | |
~QgsSingleBandGrayRendererWidget () | |
QgsRasterRenderer * | renderer () |
void | setFromRenderer (const QgsRasterRenderer *r) |
QString | min (int index=0) |
QString | max (int index=0) |
void | setMin (QString value, int index=0) |
void | setMax (QString value, int index=0) |
int | selectedBand (int index=0) |
Public Member Functions inherited from QgsRasterRendererWidget | |
QgsRasterRendererWidget (QgsRasterLayer *layer, const QgsRectangle &extent) | |
virtual | ~QgsRasterRendererWidget () |
void | setRasterLayer (QgsRasterLayer *layer) |
const QgsRasterLayer * | rasterLayer () const |
virtual QString | stdDev () |
virtual void | setStdDev (QString value) |
Static Public Member Functions | |
static QgsRasterRendererWidget * | create (QgsRasterLayer *layer, const QgsRectangle &theExtent) |
Private Slots | |
void | on_mGrayBandComboBox_currentIndexChanged (int index) |
Private Attributes | |
QgsRasterMinMaxWidget * | mMinMaxWidget |
Additional Inherited Members | |
Public Types inherited from QgsRasterRendererWidget | |
enum | LoadMinMaxAlgo { Estimate, Actual, CurrentExtent, CumulativeCut } |
Protected Member Functions inherited from QgsRasterRendererWidget | |
QString | displayBandName (int band) const |
Returns a band name for display. | |
Protected Attributes inherited from QgsRasterRendererWidget | |
QgsRasterLayer * | mRasterLayer |
QgsRectangle | mExtent |
Current extent. |
Definition at line 25 of file qgssinglebandgrayrendererwidget.h.
QgsSingleBandGrayRendererWidget::QgsSingleBandGrayRendererWidget | ( | QgsRasterLayer * | layer, |
const QgsRectangle & | extent = QgsRectangle() |
||
) |
Definition at line 22 of file qgssinglebandgrayrendererwidget.cpp.
References QgsRasterInterface::bandCount(), QgsSingleBandGrayRenderer::BlackToWhite, QgsRasterLayer::dataProvider(), QgsRasterRendererWidget::displayBandName(), loadMinMax(), mMinMaxWidget, QgsRasterRendererWidget::mRasterLayer, QgsRasterLayer::renderer(), QgsRasterMinMaxWidget::setExtent(), setFromRenderer(), tr, and QgsSingleBandGrayRenderer::WhiteToBlack.
QgsSingleBandGrayRendererWidget::~QgsSingleBandGrayRendererWidget | ( | ) |
Definition at line 68 of file qgssinglebandgrayrendererwidget.cpp.
|
inlinestatic |
Definition at line 32 of file qgssinglebandgrayrendererwidget.h.
|
slot |
Definition at line 101 of file qgssinglebandgrayrendererwidget.cpp.
References QgsDebugMsg.
Referenced by QgsSingleBandGrayRendererWidget().
|
inlinevirtual |
Reimplemented from QgsRasterRendererWidget.
Definition at line 39 of file qgssinglebandgrayrendererwidget.h.
|
inlinevirtual |
Reimplemented from QgsRasterRendererWidget.
Definition at line 38 of file qgssinglebandgrayrendererwidget.h.
|
privateslot |
Definition at line 126 of file qgssinglebandgrayrendererwidget.cpp.
References mMinMaxWidget, and QgsRasterMinMaxWidget::setBands().
|
virtual |
Implements QgsRasterRendererWidget.
Definition at line 72 of file qgssinglebandgrayrendererwidget.cpp.
References QgsRasterLayer::dataProvider(), QgsRasterDataProvider::dataType(), QgsRasterRendererWidget::mRasterLayer, QgsSingleBandGrayRenderer::setContrastEnhancement(), QgsContrastEnhancement::setContrastEnhancementAlgorithm(), QgsSingleBandGrayRenderer::setGradient(), QgsContrastEnhancement::setMaximumValue(), and QgsContrastEnhancement::setMinimumValue().
|
inlinevirtual |
Reimplemented from QgsRasterRendererWidget.
Definition at line 42 of file qgssinglebandgrayrendererwidget.h.
void QgsSingleBandGrayRendererWidget::setFromRenderer | ( | const QgsRasterRenderer * | r | ) |
Definition at line 133 of file qgssinglebandgrayrendererwidget.cpp.
References QgsSingleBandGrayRenderer::contrastEnhancement(), QgsContrastEnhancement::contrastEnhancementAlgorithm(), QgsSingleBandGrayRenderer::gradient(), QgsSingleBandGrayRenderer::grayBand(), QgsContrastEnhancement::maximumValue(), and QgsContrastEnhancement::minimumValue().
Referenced by QgsSingleBandGrayRendererWidget().
|
inlinevirtual |
Reimplemented from QgsRasterRendererWidget.
Definition at line 41 of file qgssinglebandgrayrendererwidget.h.
|
inlinevirtual |
Reimplemented from QgsRasterRendererWidget.
Definition at line 40 of file qgssinglebandgrayrendererwidget.h.
|
private |
Definition at line 51 of file qgssinglebandgrayrendererwidget.h.
Referenced by on_mGrayBandComboBox_currentIndexChanged(), and QgsSingleBandGrayRendererWidget().