|
Quantum GIS API Documentation
master-693a1fe
|
00001 /*************************************************************************** 00002 qgsrasterminmaxwidget.h 00003 --------------------------------- 00004 begin : July 2012 00005 copyright : (C) 2012 by Radim Blazek 00006 email : radim dot blazek at gmail dot com 00007 ***************************************************************************/ 00008 00009 /*************************************************************************** 00010 * * 00011 * This program is free software; you can redistribute it and/or modify * 00012 * it under the terms of the GNU General Public License as published by * 00013 * the Free Software Foundation; either version 2 of the License, or * 00014 * (at your option) any later version. * 00015 * * 00016 ***************************************************************************/ 00017 00018 #ifndef QGSRASTERMINMAXWIDGET_H 00019 #define QGSRASTERMINMAXWIDGET_H 00020 00021 #include "ui_qgsrasterminmaxwidgetbase.h" 00022 #include "qgsrasterlayer.h" 00023 #include "qgsrectangle.h" 00024 00025 class GUI_EXPORT QgsRasterMinMaxWidget: public QWidget, private Ui::QgsRasterMinMaxWidgetBase 00026 { 00027 Q_OBJECT 00028 public: 00029 QgsRasterMinMaxWidget( QgsRasterLayer* theLayer, QWidget *parent = 0 ); 00030 ~QgsRasterMinMaxWidget(); 00031 00032 void setExtent( const QgsRectangle & theExtent ) { mExtent = theExtent; } 00033 00034 void setBands( const QList<int> & theBands ) { mBands = theBands; } 00035 00036 // Load programmaticaly with current values 00037 void load() { on_mLoadPushButton_clicked(); } 00038 00039 signals: 00040 void load( int theBandNo, double theMin, double theMax, int origin ); 00041 00042 private slots: 00043 void on_mLoadPushButton_clicked(); 00044 00045 private: 00046 QgsRasterLayer* mLayer; 00047 QList<int> mBands; 00048 QgsRectangle mExtent; 00049 }; 00050 00051 #endif // QGSRASTERMINMAXWIDGET_H