ZoomWidget.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 #ifndef ZOOMWIDGET_QO_H
00026 #define ZOOMWIDGET_QO_H
00027
00028 #include <QtGui/QWidget>
00029 #include <guitools/Histogram/ZoomWidget.ui.h>
00030 #include <casa/Utilities/CountedPtr.h>
00031
00032 namespace casa {
00033
00034 template <class T> class ImageInterface;
00035 class ImageRegion;
00036
00037 class ZoomWidget : public QWidget
00038 {
00039 Q_OBJECT
00040
00041 public:
00042 ZoomWidget(bool rangeControls, QWidget *parent = 0);
00043 void setImage( const SHARED_PTR<const ImageInterface<float> > image );
00044 void setRegion( ImageRegion* region );
00045 void copyState( ZoomWidget* other );
00046
00047 ~ZoomWidget();
00048
00049 signals:
00050 void zoomRange( float min, float max );
00051 void zoomNeutral();
00052 void zoomGraphicalRange();
00053 void finished();
00054
00055
00056 private slots:
00057 void percentageToggled( bool selected );
00058 void zoom();
00059
00060 private:
00061 void calculateRange( );
00062
00063
00064
00065 void setDefaultBackground();
00066
00067 Ui::ZoomWidgetClass ui;
00068 QStringList zoomList;
00069 SHARED_PTR<const ImageInterface<float> > image;
00070 ImageRegion* region;
00071 };
00072
00073 }
00074
00075 #endif // ZOOMWIDGET_QO_H