BornAgain
1.19.79
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/Model/FromCore/GUIExamplesFactory.h
6
//! @brief Defines class GUI::ExamplesFactory
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_FROMCORE_GUIEXAMPLESFACTORY_H
16
#define BORNAGAIN_GUI_MODEL_FROMCORE_GUIEXAMPLESFACTORY_H
17
18
#include <QString>
19
20
class
MultiLayerItem
;
21
22
//! Class that generates GUI model from
23
namespace
GUI::ExamplesFactory
{
24
25
bool
isValidExampleName
(
const
QString&
name
);
26
27
//! Create a sample item of the built-in example with the given internal name.
28
MultiLayerItem
*
itemizeSample
(
const
QString&
name
);
29
30
//! The internal example name, e.g. for creation with itemizeSample.
31
QStringList
exampleNames
();
32
33
//! Returns human readable name and description
34
std::tuple<QString, QString>
exampleInfo
(
const
QString&
name
);
35
36
}
// namespace GUI::ExamplesFactory
37
38
#endif
// BORNAGAIN_GUI_MODEL_FROMCORE_GUIEXAMPLESFACTORY_H
MultiLayerItem
Definition:
MultiLayerItem.h:31
GUI::ExamplesFactory
Class that generates GUI model from.
Definition:
GUIExamplesFactory.h:23
GUI::ExamplesFactory::itemizeSample
MultiLayerItem * itemizeSample(const QString &name)
Create a sample item of the built-in example with the given internal name.
Definition:
GUIExamplesFactory.cpp:70
GUI::ExamplesFactory::exampleNames
QStringList exampleNames()
The internal example name, e.g. for creation with itemizeSample.
Definition:
GUIExamplesFactory.cpp:78
GUI::ExamplesFactory::exampleInfo
std::tuple< QString, QString > exampleInfo(const QString &name)
Returns human readable name and description.
Definition:
GUIExamplesFactory.cpp:83
GUI::ExamplesFactory::isValidExampleName
bool isValidExampleName(const QString &name)
Definition:
GUIExamplesFactory.cpp:65
GUI::RealSpace::Particles::name
QString const & name(EShape k)
Definition:
particles.cpp:20
GUI
Model
FromCore
GUIExamplesFactory.h
Generated by
1.9.1