BornAgain  1.19.0
Simulate and fit neutron and x-ray scattering at grazing incidence
jobmodel.h
Go to the documentation of this file.
1 // ************************************************************************************************
2 //
3 // BornAgain: simulate and fit reflection and scattering
4 //
5 //! @file gui2/model/jobmodel.h
6 //! @brief Defines class CLASS?
7 //!
8 //! @homepage http://www.bornagainproject.org
9 //! @license GNU General Public License v3 or higher (see COPYING)
10 //! @copyright Forschungszentrum Jülich GmbH 2020
11 //! @authors Scientific Computing Group at MLZ (see CITATION, AUTHORS)
12 //
13 // ************************************************************************************************
14 
15 #ifndef BORNAGAIN_GUI2_MODEL_JOBMODEL_H
16 #define BORNAGAIN_GUI2_MODEL_JOBMODEL_H
17 
18 #include "darefl_export.h"
20 
21 namespace ModelView {
22 class GraphViewportItem;
23 class GraphItem;
24 } // namespace ModelView
25 
26 namespace gui2 {
27 
28 class JobItem;
29 class CanvasItem;
30 struct SimulationResult;
31 struct SLDProfile;
32 
33 //! The model to store results of (possibly) multiple reflectometry simulation, and all
34 //! viewports, representing various graphs in QuickSimEditor widgets.
35 
36 class DAREFLCORE_EXPORT JobModel : public ModelView::SessionModel {
37 public:
38  JobModel(std::shared_ptr<ModelView::ItemPool> pool = {});
39 
40  ModelView::GraphViewportItem* sldViewport() const;
41 
42  CanvasItem* specularViewport() const;
43 
44  ModelView::GraphViewportItem* diffViewport() const;
45 
46  void updateReferenceGraph(const ModelView::GraphItem* graph);
47 
48  void updateSpecularData(const SimulationResult& data);
49 
50  void updateSLDProfile(const SLDProfile& data);
51 
52 private:
53  JobItem* jobItem() const;
54 };
55 
56 } // namespace gui2
57 
58 #endif // BORNAGAIN_GUI2_MODEL_JOBMODEL_H
One-dimensional graph representation of Data1DItem.
Definition: graphitem.h:29
2D viewport specialized for showing multiple GraphItem's.
Main class to hold hierarchy of SessionItem objects.
Definition: sessionmodel.h:37
Wrapper around OutputData<double> that also provides unit conversions.
Holds a collection of GraphItem's for simultaneous plotting, as well as all information related to pl...
Represents state of QuickSimEditor.
Definition: jobitem.h:46
The model to store results of (possibly) multiple reflectometry simulation, and all viewports,...
Definition: jobmodel.h:36
JobModel(std::shared_ptr< ModelView::ItemPool > pool={})
materialitems.h Collection of materials to populate MaterialModel.
Based on Qt example "codeeditor" Copyright (C) 2016 The Qt Company Ltd.
Definition: app_constants.h:20
Defines class CLASS?
Represents results of SLD profile calculations.
Represents results of the simulation.