BornAgain  1.19.0
Simulate and fit neutron and x-ray scattering at grazing incidence
DataViewUtils.h
Go to the documentation of this file.
1 // ************************************************************************************************
2 //
3 // BornAgain: simulate and fit reflection and scattering
4 //
5 //! @file GUI/coregui/Models/DataViewUtils.h
6 //! @brief Defines namespace DataViewUtils
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_COREGUI_MODELS_DATAVIEWUTILS_H
16 #define BORNAGAIN_GUI_COREGUI_MODELS_DATAVIEWUTILS_H
17 
19 #include <QString>
20 #include <memory>
21 
22 class DataItem;
23 class Data1DViewItem;
24 class JobItem;
25 template <class T> class OutputData;
26 
27 namespace DataViewUtils {
28 void updateAxesTitle(Data1DViewItem* view_item);
29 
30 std::unique_ptr<OutputData<double>> getTranslatedData(Data1DViewItem* view_item,
31  DataItem* data_item);
32 }; // namespace DataViewUtils
33 
34 #endif // BORNAGAIN_GUI_COREGUI_MODELS_DATAVIEWUTILS_H
Defines interface IUnitConverter and possible axis units.
View model for 1D DataItem.
Provides common functionality for IntensityDataItem and SpecularDataItem.
Definition: DataItem.h:29
Templated class to store data of type double or CumulativeValue in multi-dimensional space.
Definition: OutputData.h:32
std::unique_ptr< OutputData< double > > getTranslatedData(Data1DViewItem *view_item, DataItem *data_item)
void updateAxesTitle(Data1DViewItem *view_item)