BornAgain  1.19.0
Simulate and fit neutron and x-ray scattering at grazing incidence
GUIObjectBuilder.h
Go to the documentation of this file.
1 // ************************************************************************************************
2 //
3 // BornAgain: simulate and fit reflection and scattering
4 //
5 //! @file GUI/coregui/Models/GUIObjectBuilder.h
6 //! @brief Defines GUIObjectBuilder namespace
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_GUIOBJECTBUILDER_H
16 #define BORNAGAIN_GUI_COREGUI_MODELS_GUIOBJECTBUILDER_H
17 
19 #include <QMap>
20 #include <QString>
21 
22 class Material;
23 class InstrumentModel;
24 class SampleModel;
25 class SessionItem;
26 class MaterialModel;
27 class DocumentModel;
28 class ISimulation;
29 class ExternalProperty;
30 
31 //! Contains set of methods to populate GUI models with content from domain.
32 
33 namespace GUIObjectBuilder {
35  const ISimulation& simulation);
36 
37 SessionItem* populateSampleModel(SampleModel* sampleModel, MaterialModel* materialModel,
38  const MultiLayer& sample, const QString& sample_name = "");
39 
41  const ISimulation& simulation,
42  const QString& instrument_name = "");
43 
44 SessionItem* populateDocumentModel(DocumentModel* p_documentModel, const ISimulation& simulation);
45 }; // namespace GUIObjectBuilder
46 
47 #endif // BORNAGAIN_GUI_COREGUI_MODELS_GUIOBJECTBUILDER_H
Defines interface class INodeVisitor.
The DocumentModel class is a model with GUI settings related to the opened project.
Definition: DocumentModel.h:25
The ExternalProperty class defines custom QVariant property to carry the text, color and an identifie...
Abstract base class of OffSpecularSimulation, GISASSimulation and SpecularSimulation.
Definition: ISimulation.h:38
A wrapper for underlying material implementation.
Definition: Material.h:29
Our sample model: a stack of layers one below the other.
Definition: MultiLayer.h:41
Main model to hold sample items.
Definition: SampleModel.h:24
Contains set of methods to populate GUI models with content from domain.
SessionItem * populateInstrumentModel(InstrumentModel *p_instrument_model, const ISimulation &simulation, const QString &instrument_name="")
SessionItem * populateDocumentModel(DocumentModel *p_documentModel, const ISimulation &simulation)
SessionItem * populateSampleModelFromSim(SampleModel *sampleModel, MaterialModel *materialModel, const ISimulation &simulation)
SessionItem * populateSampleModel(SampleModel *sampleModel, MaterialModel *materialModel, const MultiLayer &sample, const QString &sample_name="")