BornAgain  1.19.79
Simulate and fit neutron and x-ray scattering at grazing incidence
MultiLayerItems.h
Go to the documentation of this file.
1 // ************************************************************************************************
2 //
3 // BornAgain: simulate and fit reflection and scattering
4 //
5 //! @file GUI/Model/Sample/MultiLayerItems.h
6 //! @brief Defines class MultiLayerItems
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_SAMPLE_MULTILAYERITEMS_H
16 #define BORNAGAIN_GUI_MODEL_SAMPLE_MULTILAYERITEMS_H
17 
18 #include <QVector>
19 
20 class MultiLayerItem;
21 class Streamer;
22 
23 //! Main model to hold sample items.
24 
26 public:
28  QVector<MultiLayerItem*> sampleItems() const;
29 
30  //! Adds a sample and returns the new item.
32  void addMultiLayer(MultiLayerItem* sample);
33  void removeMultiLayer(MultiLayerItem* sample);
34 
35  QStringList sampleNames() const;
36 
37  void serialize(Streamer& s);
38 
39 private:
40  QVector<MultiLayerItem*> m_samples;
41 };
42 
43 #endif // BORNAGAIN_GUI_MODEL_SAMPLE_MULTILAYERITEMS_H
Main model to hold sample items.
void removeMultiLayer(MultiLayerItem *sample)
void serialize(Streamer &s)
QStringList sampleNames() const
QVector< MultiLayerItem * > m_samples
QVector< MultiLayerItem * > sampleItems() const
MultiLayerItem * addMultiLayer()
Adds a sample and returns the new item.
Supports serialization to or deserialization from QXmlStream.
Definition: Streamer.h:36