00001 #ifndef PSQT_WDGSPECHIST_H
00002 #define PSQT_WDGSPECHIST_H
00003
00004 #include "ndarray/ndarray.h"
00005 #include <stdint.h>
00006
00007 #include <PSQt/GUAxes.h>
00008 #include <PSQt/WdgColorBar.h>
00009
00010 #include <QWidget>
00011
00012
00013 #include <QtGui>
00014 #include <QtCore>
00015
00016
00017 namespace PSQt {
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038
00039
00040
00041
00042
00043
00044 class WdgSpecHist : public QWidget
00045 {
00046 Q_OBJECT
00047
00048 public:
00049 WdgSpecHist(QWidget *parent = 0);
00050 virtual ~WdgSpecHist();
00051
00052 PSQt::WdgColorBar* colorBar() { return m_cbar; };
00053 PSQt::GUAxes* axes() { return m_axes; };
00054
00055 public slots:
00056
00057
00058
00059
00060
00061
00062
00063
00064 void onSHistIsFilled(float*, const float&, const float&, const unsigned&);
00065
00066 private:
00067 inline const char* _name_(){return "WdgSpecHist";}
00068
00069 QHBoxLayout* m_hbox;
00070 QVBoxLayout* m_vbox;
00071 PSQt::GUAxes* m_axes;
00072 PSQt::WdgColorBar* m_cbar;
00073 QGraphicsPathItem* m_path_item;
00074 };
00075
00076 }
00077
00078 #endif // PSQT_WDGSPECHIST_H