BornAgain  1.19.79
Simulate and fit neutron and x-ray scattering at grazing incidence
JobFunctions.h
Go to the documentation of this file.
1 // ************************************************************************************************
2 //
3 // BornAgain: simulate and fit reflection and scattering
4 //
5 //! @file GUI/Model/Model/JobFunctions.h
6 //! @brief Defines auxiliary functions in namespace GUI::Model::JobModelFunctions.
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_MODEL_JOBFUNCTIONS_H
16 #define BORNAGAIN_GUI_MODEL_MODEL_JOBFUNCTIONS_H
17 
18 class InstrumentItem;
19 class JobItem;
20 class MultiLayerItem;
21 class RealDataItem;
22 class SessionItem;
23 
24 //! Contains set of functions to extend JobModel functionality.
25 //! Handles setup of JobItem in fitting context.
26 
28 
29 //! Initializes Data1DViewItem and assigns it to the passed JobItem
30 void initDataView(JobItem* job_item);
31 
32 //! Properly copies instrument into job item
33 void setupJobItemInstrument(JobItem* jobItem, const InstrumentItem* from);
34 
35 void setupJobItemOutput(JobItem* jobItem);
36 
37 void setupJobItemForFit(JobItem* jobItem, const RealDataItem* realDataItem);
38 
39 //! Copy RealDataItem to jobItem intended for fitting.
40 void copyRealDataItem(JobItem* jobItem, const RealDataItem* realDataItem);
41 
42 } // namespace GUI::Model::JobFunctions
43 
44 #endif // BORNAGAIN_GUI_MODEL_MODEL_JOBFUNCTIONS_H
Abstract base class for instrument-specific item classes.
Provides access to experimental data, for display and fitting. Owns an AbstractDataLoader.
Definition: RealDataItem.h:33
Base class for a GUI data item.
Definition: SessionItem.h:204
Contains set of functions to extend JobModel functionality. Handles setup of JobItem in fitting conte...
Definition: JobFunctions.h:27
void setupJobItemOutput(JobItem *jobItem)
Setup items intended for storing results of the job.
void copyRealDataItem(JobItem *jobItem, const RealDataItem *realDataItem)
Copy RealDataItem to jobItem intended for fitting.
void setupJobItemForFit(JobItem *jobItem, const RealDataItem *realDataItem)
Setups JobItem for fit.
void setupJobItemInstrument(JobItem *jobItem, const InstrumentItem *from)
Properly copies instrument into job item.
void initDataView(JobItem *job_item)
Initializes Data1DViewItem and assigns it to the passed JobItem.