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

#include <qgssinglebandpseudocolorrendererwidget.h>

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

Public Types

enum  Mode { Continuous = 1, EqualInterval = 2 }
- Public Types inherited from QgsRasterRendererWidget
enum  LoadMinMaxAlgo { Estimate, Actual, CurrentExtent, CumulativeCut }

Public Slots

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

Public Member Functions

 QgsSingleBandPseudoColorRendererWidget (QgsRasterLayer *layer, const QgsRectangle &extent=QgsRectangle())
 ~QgsSingleBandPseudoColorRendererWidget ()
QgsRasterRendererrenderer ()
void setFromRenderer (const QgsRasterRenderer *r)
- Public Member Functions inherited from QgsRasterRendererWidget
 QgsRasterRendererWidget (QgsRasterLayer *layer, const QgsRectangle &extent)
virtual ~QgsRasterRendererWidget ()
void setRasterLayer (QgsRasterLayer *layer)
const QgsRasterLayerrasterLayer () const
virtual QString min (int index=0)
virtual QString max (int index=0)
virtual void setMin (QString value, int index=0)
virtual void setMax (QString value, int index=0)
virtual QString stdDev ()
virtual void setStdDev (QString value)
virtual int selectedBand (int index=0)

Static Public Member Functions

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

Private Slots

void on_mAddEntryButton_clicked ()
void on_mDeleteEntryButton_clicked ()
void on_mSortButton_clicked ()
void on_mClassifyButton_clicked ()
void on_mLoadFromBandButton_clicked ()
void on_mLoadFromFileButton_clicked ()
void on_mExportToFileButton_clicked ()
void on_mColormapTreeWidget_itemDoubleClicked (QTreeWidgetItem *item, int column)
void on_mBandComboBox_currentIndexChanged (int index)
void on_mMinLineEdit_textChanged (const QString &text)
void on_mMaxLineEdit_textChanged (const QString &text)
void on_mMinLineEdit_textEdited (const QString &text)
void on_mMaxLineEdit_textEdited (const QString &text)
void on_mClassificationModeComboBox_currentIndexChanged (int index)
void on_mColorRampComboBox_currentIndexChanged (int index)

Private Member Functions

void populateColormapTreeWidget (const QList< QgsColorRampShader::ColorRampItem > &colorRampItems)
void setLineEditValue (QLineEdit *theLineEdit, double theValue)
double lineEditValue (const QLineEdit *theLineEdit) const
void resetClassifyButton ()
void showMinMaxOrigin ()

Private Attributes

QgsRasterMinMaxWidgetmMinMaxWidget
int mMinMaxOrigin

Additional Inherited Members

- 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 26 of file qgssinglebandpseudocolorrendererwidget.h.

Member Enumeration Documentation

Enumerator:
Continuous 
EqualInterval 

Definition at line 31 of file qgssinglebandpseudocolorrendererwidget.h.

Constructor & Destructor Documentation

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

Definition at line 103 of file qgssinglebandpseudocolorrendererwidget.cpp.

Member Function Documentation

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

Definition at line 40 of file qgssinglebandpseudocolorrendererwidget.h.

double QgsSingleBandPseudoColorRendererWidget::lineEditValue ( const QLineEdit *  theLineEdit) const
private
void QgsSingleBandPseudoColorRendererWidget::loadMinMax ( int  theBandNo,
double  theMin,
double  theMax,
int  theOrigin 
)
slot
void QgsSingleBandPseudoColorRendererWidget::on_mAddEntryButton_clicked ( )
privateslot

Definition at line 157 of file qgssinglebandpseudocolorrendererwidget.cpp.

References tr.

void QgsSingleBandPseudoColorRendererWidget::on_mBandComboBox_currentIndexChanged ( int  index)
privateslot
void QgsSingleBandPseudoColorRendererWidget::on_mClassificationModeComboBox_currentIndexChanged ( int  index)
privateslot
void QgsSingleBandPseudoColorRendererWidget::on_mClassifyButton_clicked ( )
privateslot
void QgsSingleBandPseudoColorRendererWidget::on_mColormapTreeWidget_itemDoubleClicked ( QTreeWidgetItem *  item,
int  column 
)
privateslot

Definition at line 537 of file qgssinglebandpseudocolorrendererwidget.cpp.

void QgsSingleBandPseudoColorRendererWidget::on_mColorRampComboBox_currentIndexChanged ( int  index)
privateslot

Definition at line 346 of file qgssinglebandpseudocolorrendererwidget.cpp.

void QgsSingleBandPseudoColorRendererWidget::on_mDeleteEntryButton_clicked ( )
privateslot

Definition at line 165 of file qgssinglebandpseudocolorrendererwidget.cpp.

void QgsSingleBandPseudoColorRendererWidget::on_mExportToFileButton_clicked ( )
privateslot

Definition at line 474 of file qgssinglebandpseudocolorrendererwidget.cpp.

References tr.

void QgsSingleBandPseudoColorRendererWidget::on_mLoadFromBandButton_clicked ( )
privateslot
void QgsSingleBandPseudoColorRendererWidget::on_mLoadFromFileButton_clicked ( )
privateslot

Definition at line 388 of file qgssinglebandpseudocolorrendererwidget.cpp.

References populateColormapTreeWidget(), and tr.

void QgsSingleBandPseudoColorRendererWidget::on_mMaxLineEdit_textChanged ( const QString &  text)
inlineprivateslot

Definition at line 62 of file qgssinglebandpseudocolorrendererwidget.h.

void QgsSingleBandPseudoColorRendererWidget::on_mMaxLineEdit_textEdited ( const QString &  text)
inlineprivateslot
void QgsSingleBandPseudoColorRendererWidget::on_mMinLineEdit_textChanged ( const QString &  text)
inlineprivateslot

Definition at line 61 of file qgssinglebandpseudocolorrendererwidget.h.

void QgsSingleBandPseudoColorRendererWidget::on_mMinLineEdit_textEdited ( const QString &  text)
inlineprivateslot
void QgsSingleBandPseudoColorRendererWidget::on_mSortButton_clicked ( )
privateslot
void QgsSingleBandPseudoColorRendererWidget::populateColormapTreeWidget ( const QList< QgsColorRampShader::ColorRampItem > &  colorRampItems)
private
QgsRasterRenderer * QgsSingleBandPseudoColorRendererWidget::renderer ( )
virtual
void QgsSingleBandPseudoColorRendererWidget::resetClassifyButton ( )
private
void QgsSingleBandPseudoColorRendererWidget::setFromRenderer ( const QgsRasterRenderer r)
void QgsSingleBandPseudoColorRendererWidget::setLineEditValue ( QLineEdit *  theLineEdit,
double  theValue 
)
private

Definition at line 641 of file qgssinglebandpseudocolorrendererwidget.cpp.

Referenced by setFromRenderer().

void QgsSingleBandPseudoColorRendererWidget::showMinMaxOrigin ( )
private

Member Data Documentation

int QgsSingleBandPseudoColorRendererWidget::mMinMaxOrigin
private
QgsRasterMinMaxWidget* QgsSingleBandPseudoColorRendererWidget::mMinMaxWidget
private

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