BornAgain  1.19.0
Simulate and fit neutron and x-ray scattering at grazing incidence
statusstringreporterfactory.cpp
Go to the documentation of this file.
1 // ************************************************************************************************
2 //
3 // qt-mvvm: Model-view-view-model framework for large GUI applications
4 //
5 //! @file mvvm/view/mvvm/plotting/statusstringreporterfactory.cpp
6 //! @brief Implements 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 Gennady Pospelov et al, Scientific Computing Group at MLZ (see CITATION, AUTHORS)
12 //
13 // ************************************************************************************************
14 
19 
20 namespace ModelView {
21 
22 std::unique_ptr<StatusStringReporter>
23 CreateGraphReporter(QCustomPlot* custom_plot, std::function<void(const std::string&)> callback)
24 {
25  return std::make_unique<StatusStringReporter>(custom_plot, callback,
26  std::make_unique<GraphInfoFormatter>());
27 }
28 
29 std::unique_ptr<StatusStringReporter>
30 CreateColorMapReporter(QCustomPlot* custom_plot, std::function<void(const std::string&)> callback)
31 {
32  return std::make_unique<StatusStringReporter>(custom_plot, callback,
33  std::make_unique<ColorMapInfoFormatter>());
34 }
35 
36 } // namespace ModelView
Defines class CLASS?
Defines class CLASS?
materialitems.h Collection of materials to populate MaterialModel.
std::unique_ptr< StatusStringReporter > CreateColorMapReporter(QCustomPlot *custom_plot, std::function< void(const std::string &)> callback)
Creates reporter for status string in QCustomPlot containing QCPColorMap.
std::unique_ptr< StatusStringReporter > CreateGraphReporter(QCustomPlot *custom_plot, std::function< void(const std::string &)> callback)
Creates reporter for status string in QCustomPlot containing graphs.
Defines class CLASS?
Defines class CLASS?