• Main Page
  • Related Pages
  • Modules
  • Classes
  • Files
  • File List

odindialog_kspace.h

00001 /***************************************************************************
00002                           odindialog_kspace.h  -  description
00003                              -------------------
00004     begin                : Mon Oct 10 21:30:11 CEST 2005
00005     copyright            : (C) 2003 by Thies H. Jochimsen
00006     email                : jochimse@cns.mpg.de
00007  ***************************************************************************/
00008 
00009 /***************************************************************************
00010  *                                                                         *
00011  *   This program is free software; you can redistribute it and/or modify  *
00012  *   it under the terms of the GNU General Public License as published by  *
00013  *   the Free Software Foundation; either version 2 of the License, or     *
00014  *   (at your option) any later version.                                   *
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" // for OdinCancel
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(); // overloaded from GuiDialog
00045   void close() {canceled=true;} // overloaded from GuiDialog
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

Generated on Tue Dec 18 2012 15:11:14 by  doxygen 1.7.1