BornAgain  1.19.79
Simulate and fit neutron and x-ray scattering at grazing incidence
DataPropertyContainer.h
Go to the documentation of this file.
1 // ************************************************************************************************
2 //
3 // BornAgain: simulate and fit reflection and scattering
4 //
5 //! @file GUI/Model/Data/DataPropertyContainer.h
6 //! @brief Defines class DataPropertyContainer
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_DATA_DATAPROPERTYCONTAINER_H
16 #define BORNAGAIN_GUI_MODEL_DATA_DATAPROPERTYCONTAINER_H
17 
19 
20 class DataItem;
21 class DataProperties;
22 class Data1DProperties;
23 class Datafield;
24 
25 class BA_CORE_API_ DataPropertyContainer : public SessionItem {
26 private:
27  static constexpr auto T_CHILDREN{"data links"};
28 
29 public:
30  static constexpr auto M_TYPE{"DataPropertyContainer"};
31 
33  ~DataPropertyContainer() override = default;
34 
35  void addItem(DataItem* data_item);
36  QVector<Data1DProperties*> propertyItems();
37  Data1DProperties* propertyItem(size_t i) const;
38 
39  DataItem* basicDataItem() const;
40 
41 protected:
42  std::vector<DataItem*> dataItems();
43  DataItem* dataItem(size_t i) const;
44 };
45 
46 #endif // BORNAGAIN_GUI_MODEL_DATA_DATAPROPERTYCONTAINER_H
Defines class SessionItem.
Holds data required for 1D DataItem representation.
Abstract base class for IntensityDataItem and SpecularDataItem. Owns one simulated data set of type D...
Definition: DataItem.h:34
Implements a link to DataItem. If path name of a DataItem changes, the link becomes invalid....
~DataPropertyContainer() override=default
Base class for a GUI data item.
Definition: SessionItem.h:204