UltraScan III
us_edit_scan.h
Go to the documentation of this file.
1 #ifndef US_EDIT_SCAN_H
3 #define US_EDIT_SCAN_H
4 
5 #include <QtGui>
6 
7 #include "us_extern.h"
8 #include "us_widgets_dialog.h"
9 #include "us_help.h"
10 #include "us_dataIO.h"
11 #include "us_plot.h"
12 
14 {
15  Q_OBJECT
16 
17  public:
18  US_EditScan( US_DataIO::Scan&, const QVector< double >&,
19  double, double, double );
20 
21  signals:
22  void scan_updated( QList< QPointF > );
23 
24  private:
27  QVector< double > allRadii;
28 
29  double invert;
30  double range_left;
31  double range_right;
32  double* radii;
33  double* values;
34  bool dragging;
35  int point;
36  int offset;
37  QList< QPointF > changes;
38 
39  QwtPlot* data_plot;
40  QwtPlotCurve* curve;
42  QwtSymbol fgSym;
43  QwtSymbol bgSym;
44  QPen bgPen;
45  QPen fgPen;
46 
48 
49  void redraw( void );
50 
51  private slots:
52  void done ( void );
53  void reset ( void );
54  void start_drag ( QMouseEvent* );
55  void end_drag ( const QwtDoublePoint& );
56  void drag ( const QwtDoublePoint& );
57 
58  void help ( void )
59  { showHelp.show_help( "manual/edit_scan.html" ); };
60 };
61 #endif