00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018 #ifndef ODINDIALOG_KSPACE_H
00019 #define ODINDIALOG_KSPACE_H
00020
00021 #include <qobject.h>
00022
00023 #include <odinqt/odinqt.h>
00024
00025 #include "odindialog_progress.h"
00026
00027
00028 #define KSPACE_POINT_SIZE 3
00029 #define KSPACE_INPLANE_SIZE 512
00030 #define KSPACE_THROUGHPLANE_SIZE 128
00031 #define KSPACE_BORDER_SIZE 50
00032
00033
00034 class KspaceDialog : public QObject, public GuiDialog {
00035 Q_OBJECT
00036
00037 public:
00038 KspaceDialog(QWidget *parent, float kmax, unsigned int nadc);
00039 ~KspaceDialog();
00040
00041 void draw_point(float kx, float ky, float kz);
00042
00043 protected:
00044 void repaint();
00045 void close() {canceled=true;}
00046
00047 private slots:
00048 void cancel();
00049
00050 private:
00051
00052 int kpos2index(float kpos) const;
00053
00054 void progress();
00055
00056 GuiGridLayout* grid;
00057 GuiButton* pb_cancel;
00058 QLabel* kspace_label;
00059 QPixmap* kspace_pixmap_buff;
00060 GuiProgressBar* progbar;
00061
00062 GuiPainter* painter;
00063
00064 float k0;
00065 int progcount;
00066 bool canceled;
00067 };
00068
00069
00070
00071 #endif