BornAgain  1.19.79
Simulate and fit neutron and x-ray scattering at grazing incidence
IntensityDataFFTPresenter.h
Go to the documentation of this file.
1 // ************************************************************************************************
2 //
3 // BornAgain: simulate and fit reflection and scattering
4 //
5 //! @file GUI/View/Plot2D/IntensityDataFFTPresenter.h
6 //! @brief Defines class IntensityDataFFTPresenter
7 //!
8 //! @homepage http://www.bornagainproject.org
9 //! @license GNU General Public License v3 or higher (see COPYING)
10 //! @copyright Forschungszentrum Jülich GmbH 2018
11 //! @authors Scientific Computing Group at MLZ (see CITATION, AUTHORS)
12 //
13 // ************************************************************************************************
14 
15 #ifndef BORNAGAIN_GUI_VIEW_PLOT2D_INTENSITYDATAFFTPRESENTER_H
16 #define BORNAGAIN_GUI_VIEW_PLOT2D_INTENSITYDATAFFTPRESENTER_H
17 
18 #include <QObject>
19 
20 class SessionModel;
21 class IntensityDataItem;
22 class QWidget;
23 class QAction;
24 
25 //! Provides support in Fast Fourier transformation of IntensityDataItem.
26 //! Contains own model to hold IntensityDataItem with fft-transformed results.
27 
28 class IntensityDataFFTPresenter : public QObject {
29  Q_OBJECT
30 public:
31  IntensityDataFFTPresenter(QWidget* parent = nullptr);
32 
33  void reset();
34 
36 
37  QList<QAction*> actionList();
38 
39  bool inFFTMode() const;
40 
41 signals:
43 
44 private slots:
45  void onFFTActionToggled(bool toggled);
46 
47 private:
48  QAction* m_fftAction;
52 };
53 
54 #endif // BORNAGAIN_GUI_VIEW_PLOT2D_INTENSITYDATAFFTPRESENTER_H
Provides support in Fast Fourier transformation of IntensityDataItem. Contains own model to hold Inte...
IntensityDataItem * fftItem(IntensityDataItem *origItem)
IntensityDataFFTPresenter(QWidget *parent=nullptr)
Base class for a GUI data collection. A collection is e.g. all real data (RealDataModel)....
Definition: SessionModel.h:42