QGIS API Documentation  2.2.0-Valmiera
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Public Slots | Public Member Functions | Static Public Member Functions | Private Slots | Private Member Functions | Private Attributes | List of all members
QgsMultiBandColorRendererWidget Class Reference

#include <qgsmultibandcolorrendererwidget.h>

Inheritance diagram for QgsMultiBandColorRendererWidget:
Inheritance graph
[legend]
Collaboration diagram for QgsMultiBandColorRendererWidget:
Collaboration graph
[legend]

Public Slots

void loadMinMax (int theBandNo, double theMin, double theMax, int theOrigin)

Public Member Functions

 QgsMultiBandColorRendererWidget (QgsRasterLayer *layer, const QgsRectangle &extent=QgsRectangle())
 ~QgsMultiBandColorRendererWidget ()
QgsRasterRendererrenderer ()
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 QgsRasterLayerrasterLayer () const
virtual QString stdDev ()
virtual void setStdDev (QString value)

Static Public Member Functions

static QgsRasterRendererWidgetcreate (QgsRasterLayer *layer, const QgsRectangle &theExtent)

Private Slots

void onBandChanged (int)

Private Member Functions

void createValidators ()
void setCustomMinMaxValues (QgsMultiBandColorRenderer *r, const QgsRasterDataProvider *provider, int redBand, int GreenBand, int blueBand)
void setMinMaxValue (const QgsContrastEnhancement *ce, QLineEdit *minEdit, QLineEdit *maxEdit)
 Reads min/max values from contrast enhancement and fills values into the min/max line edits.

Private Attributes

QgsRasterMinMaxWidgetmMinMaxWidget

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
QgsRasterLayermRasterLayer
QgsRectangle mExtent
 Current extent.

Detailed Description

Definition at line 31 of file qgsmultibandcolorrendererwidget.h.

Constructor & Destructor Documentation

QgsMultiBandColorRendererWidget::QgsMultiBandColorRendererWidget ( QgsRasterLayer layer,
const QgsRectangle extent = QgsRectangle() 
)
QgsMultiBandColorRendererWidget::~QgsMultiBandColorRendererWidget ( )

Definition at line 73 of file qgsmultibandcolorrendererwidget.cpp.

Member Function Documentation

static QgsRasterRendererWidget* QgsMultiBandColorRendererWidget::create ( QgsRasterLayer layer,
const QgsRectangle theExtent 
)
inlinestatic

Definition at line 37 of file qgsmultibandcolorrendererwidget.h.

void QgsMultiBandColorRendererWidget::createValidators ( )
private

Definition at line 98 of file qgsmultibandcolorrendererwidget.cpp.

Referenced by QgsMultiBandColorRendererWidget().

void QgsMultiBandColorRendererWidget::loadMinMax ( int  theBandNo,
double  theMin,
double  theMax,
int  theOrigin 
)
slot

Definition at line 194 of file qgsmultibandcolorrendererwidget.cpp.

References QgsDebugMsg.

Referenced by QgsMultiBandColorRendererWidget().

QString QgsMultiBandColorRendererWidget::max ( int  index = 0)
virtual

Reimplemented from QgsRasterRendererWidget.

Definition at line 304 of file qgsmultibandcolorrendererwidget.cpp.

QString QgsMultiBandColorRendererWidget::min ( int  index = 0)
virtual

Reimplemented from QgsRasterRendererWidget.

Definition at line 285 of file qgsmultibandcolorrendererwidget.cpp.

void QgsMultiBandColorRendererWidget::onBandChanged ( int  index)
privateslot
QgsRasterRenderer * QgsMultiBandColorRendererWidget::renderer ( )
virtual
int QgsMultiBandColorRendererWidget::selectedBand ( int  index = 0)
virtual

Reimplemented from QgsRasterRendererWidget.

Definition at line 359 of file qgsmultibandcolorrendererwidget.cpp.

void QgsMultiBandColorRendererWidget::setCustomMinMaxValues ( QgsMultiBandColorRenderer r,
const QgsRasterDataProvider provider,
int  redBand,
int  GreenBand,
int  blueBand 
)
private
void QgsMultiBandColorRendererWidget::setFromRenderer ( const QgsRasterRenderer r)
void QgsMultiBandColorRendererWidget::setMax ( QString  value,
int  index = 0 
)
virtual

Reimplemented from QgsRasterRendererWidget.

Definition at line 341 of file qgsmultibandcolorrendererwidget.cpp.

void QgsMultiBandColorRendererWidget::setMin ( QString  value,
int  index = 0 
)
virtual

Reimplemented from QgsRasterRendererWidget.

Definition at line 323 of file qgsmultibandcolorrendererwidget.cpp.

void QgsMultiBandColorRendererWidget::setMinMaxValue ( const QgsContrastEnhancement ce,
QLineEdit *  minEdit,
QLineEdit *  maxEdit 
)
private

Reads min/max values from contrast enhancement and fills values into the min/max line edits.

Definition at line 241 of file qgsmultibandcolorrendererwidget.cpp.

References QgsContrastEnhancement::contrastEnhancementAlgorithm(), QgsContrastEnhancement::maximumValue(), and QgsContrastEnhancement::minimumValue().

Referenced by setFromRenderer().

Member Data Documentation

QgsRasterMinMaxWidget* QgsMultiBandColorRendererWidget::mMinMaxWidget
private

The documentation for this class was generated from the following files: