HistogramTab.qo.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026 #ifndef HISTOGRAMTAB_QO_H
00027 #define HISTOGRAMTAB_QO_H
00028
00029 #include <QtGui/QWidget>
00030 #include <casa/Utilities/CountedPtr.h>
00031 #include <display/region/HistogramTab.ui.h>
00032
00033 namespace casa {
00034
00035 template <class T> class ImageInterface;
00036 class ImageRegion;
00037 class HistogramGraph;
00038
00044 class HistogramTab : public QWidget {
00045 Q_OBJECT
00046
00047 public:
00048 HistogramTab(QWidget *parent = 0);
00049 void addImage( SHARED_PTR<ImageInterface<float> > image );
00050 void setImageRegion( const std::string& imageName, ImageRegion* region, int regionId);
00051 void clear();
00056 void showGraph( int index );
00057 ~HistogramTab();
00058
00059 signals:
00060 void showHistogramTool();
00061
00062 private slots:
00066 void showNextGraph( int nextIndex );
00067
00068 private:
00069 int initialStackIndex;
00070 void resetNextEnabled();
00071 QMap<QString,HistogramGraph*> graphs;
00072 Ui::HistogramTabClass ui;
00073 };
00074 }
00075
00076 #endif // HISTOGRAMTAB_QO_H