BornAgain  1.19.0
Simulate and fit neutron and x-ray scattering at grazing incidence
SampleViewFactory.h
Go to the documentation of this file.
1 // ************************************************************************************************
2 //
3 // BornAgain: simulate and fit reflection and scattering
4 //
5 //! @file GUI/coregui/Views/SampleDesigner/SampleViewFactory.h
6 //! @brief Defines class SampleViewFactory
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_VIEWS_SAMPLEDESIGNER_SAMPLEVIEWFACTORY_H
16 #define BORNAGAIN_GUI_COREGUI_VIEWS_SAMPLEDESIGNER_SAMPLEVIEWFACTORY_H
17 
18 #include <QMap>
19 #include <QStringList>
20 
21 class IView;
22 
24 public:
25  static bool isValidType(const QString& name);
26  static IView* createSampleView(const QString& name);
27 
28  static bool isValidExampleName();
29 
30 private:
31  static QStringList m_valid_item_names;
32 };
33 
34 #endif // BORNAGAIN_GUI_COREGUI_VIEWS_SAMPLEDESIGNER_SAMPLEVIEWFACTORY_H
parent class for graphic representation of all ISampleNode's
Definition: IView.h:25
static IView * createSampleView(const QString &name)
static QStringList m_valid_item_names
static bool isValidExampleName()
static bool isValidType(const QString &name)
QString const & name(EShape k)
Definition: particles.cpp:21