BornAgain  1.19.79
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/Model/Data/DataViewUtils.h
6 //! @brief Defines namespace GUI::Model::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_MODEL_DATA_DATAVIEWUTILS_H
16 #define BORNAGAIN_GUI_MODEL_DATA_DATAVIEWUTILS_H
17 
18 #include <QString>
19 #include <memory>
20 
21 class DataItem;
22 class Data1DViewItem;
23 class JobItem;
24 class Datafield;
25 
27 
28 void updateAxesTitle(Data1DViewItem* view_item);
29 
30 std::unique_ptr<Datafield> getTranslatedData(Data1DViewItem* view_item, DataItem* data_item);
31 
32 } // namespace GUI::Model::DataViewUtils
33 
34 #endif // BORNAGAIN_GUI_MODEL_DATA_DATAVIEWUTILS_H
View model for 1D DataItem. Can represent several items at once. In current implementation the first ...
Abstract base class for IntensityDataItem and SpecularDataItem. Owns one simulated data set of type D...
Definition: DataItem.h:34
std::unique_ptr< Datafield > getTranslatedData(Data1DViewItem *view_item, DataItem *data_item)
void updateAxesTitle(Data1DViewItem *view_item)