00001 #ifndef GUIIMAGEVIEWER_H
00002 #define GUIIMAGEVIEWER_H
00003
00004 #include "PSQt/Frame.h"
00005
00006
00007
00008
00009
00010
00011 #include <Qt>
00012 #include <QtGui>
00013 #include <QtCore>
00014
00015
00016 #include "PSQt/WdgImageFigs.h"
00017 #include "PSQt/WdgFile.h"
00018 #include "PSQt/WdgPointPos.h"
00019 #include "PSQt/WdgPointPos3D.h"
00020 #include "PSQt/WdgColorTable.h"
00021 #include "PSQt/ImageProc.h"
00022 #include "PSQt/WdgRadHist.h"
00023 #include "PSQt/WdgSpecHist.h"
00024
00025 namespace PSQt {
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038
00039
00040
00041
00042
00043
00044
00045
00046
00047
00048
00049 class GUIImageViewer : public Frame
00050
00051 {
00052 Q_OBJECT
00053
00054 public:
00055 GUIImageViewer(QWidget *parent=0, const int& xcent=2000, const int& ycent=2000);
00056
00057 void resizeEvent (QResizeEvent *event = 0) ;
00058 void closeEvent (QCloseEvent *event = 0) ;
00059 void moveEvent (QMoveEvent *event = 0) ;
00060 void mousePressEvent (QMouseEvent *event = 0) ;
00061
00062 inline WdgImage* wdgImage(){ return (WdgImage*)m_image; }
00063 inline WdgFile* wdgFile() { return m_file; }
00064 inline ImageProc* getImageProc() { return m_imageproc; }
00065 void showChildWindows();
00066
00067 QPushButton* m_but_reset;
00068
00069 public slots:
00070 void onButExit();
00071 void onButSpec();
00072 void onButRHis();
00073 void onButAdd();
00074 void onButReset();
00075 void onButColorTab();
00076 void onImageIsUpdated(ndarray<GeoImage::raw_image_t,2>&);
00077 void onCheckBox(int);
00078
00079 private:
00080
00081
00082 QPushButton* m_but_spec;
00083 QPushButton* m_but_rhis;
00084 QPushButton* m_but_add;
00085 QPushButton* m_but_cols;
00086 QCheckBox* m_cbx_more;
00087 QHBoxLayout* m_hbox;
00088 QHBoxLayout* m_hbex;
00089 QVBoxLayout* m_vbox;
00090
00091
00092 WdgImageFigs* m_image;
00093 WdgFile* m_file;
00094 WdgPointPos* m_pointpos;
00095 WdgPointPos3D* m_curspos;
00096 WdgColorTable* m_colortab;
00097 ImageProc* m_imageproc;
00098 WdgRadHist* m_radhist;
00099 WdgSpecHist* m_spechist;
00100
00101 inline const char* _name_(){ return "GUIImageViewer"; }
00102 void setStyle();
00103 void setTips();
00104 void message(QWidget* wdg, const char* cmt);
00105 };
00106
00107 }
00108
00109 #endif // GUIIMAGEVIEWER_H