BornAgain
1.19.0
Simulate and fit neutron and x-ray scattering at grazing incidence
GUIExamplesFactory.h
Go to the documentation of this file.
1
// ************************************************************************************************
2
//
3
// BornAgain: simulate and fit reflection and scattering
4
//
5
//! @file GUI/coregui/Models/GUIExamplesFactory.h
6
//! @brief Defines class GUIExamplesFactory
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_GUIEXAMPLESFACTORY_H
16
#define BORNAGAIN_GUI_COREGUI_MODELS_GUIEXAMPLESFACTORY_H
17
18
#include <QMap>
19
20
class
SessionItem
;
21
class
SampleModel
;
22
class
MaterialModel
;
23
24
//! Class that generates GUI model from
25
class
GUIExamplesFactory
{
26
public
:
27
static
bool
isValidExampleName
(
const
QString&
name
);
28
29
static
SessionItem
*
createSampleItems
(
const
QString&
name
,
SampleModel
* sampleModel,
30
MaterialModel
* materialModel);
31
32
private
:
33
static
QMap<QString, QString>
m_name_to_registry
;
34
//!< correspondence of GUI example name and name from StandardSamples registry
35
};
36
37
#endif
// BORNAGAIN_GUI_COREGUI_MODELS_GUIEXAMPLESFACTORY_H
GUIExamplesFactory
Class that generates GUI model from.
Definition:
GUIExamplesFactory.h:25
GUIExamplesFactory::createSampleItems
static SessionItem * createSampleItems(const QString &name, SampleModel *sampleModel, MaterialModel *materialModel)
Populate sample model with.
Definition:
GUIExamplesFactory.cpp:63
GUIExamplesFactory::m_name_to_registry
static QMap< QString, QString > m_name_to_registry
correspondence of GUI example name and name from StandardSamples registry
Definition:
GUIExamplesFactory.h:33
GUIExamplesFactory::isValidExampleName
static bool isValidExampleName(const QString &name)
Definition:
GUIExamplesFactory.cpp:57
MaterialModel
Definition:
MaterialModel.h:23
SampleModel
Main model to hold sample items.
Definition:
SampleModel.h:24
SessionItem
Definition:
SessionItem.h:33
RealSpace::Particles::name
QString const & name(EShape k)
Definition:
particles.cpp:21
GUI
coregui
Models
GUIExamplesFactory.h
Generated by
1.9.1