BornAgain  1.19.0
Simulate and fit neutron and x-ray scattering at grazing incidence
vectoritem.h
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/model/mvvm/standarditems/vectoritem.h
6 //! @brief Defines 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 
15 #ifndef BORNAGAIN_MVVM_MODEL_MVVM_STANDARDITEMS_VECTORITEM_H
16 #define BORNAGAIN_MVVM_MODEL_MVVM_STANDARDITEMS_VECTORITEM_H
17 
19 
20 namespace ModelView {
21 
22 //! Vector item with three x,y,z property items.
23 
24 class MVVM_MODEL_EXPORT VectorItem : public CompoundItem {
25 public:
26  static inline const std::string P_X = "P_X";
27  static inline const std::string P_Y = "P_Y";
28  static inline const std::string P_Z = "P_Z";
29 
30  VectorItem();
31 
32  void activate() override;
33 
34 private:
35  void update_label();
36 };
37 
38 } // namespace ModelView
39 
40 #endif // BORNAGAIN_MVVM_MODEL_MVVM_STANDARDITEMS_VECTORITEM_H
Complex item holding mixed SessionItem types (single properties and other CompountItems).
Definition: compounditem.h:28
Vector item with three x,y,z property items.
Definition: vectoritem.h:24
Defines class CLASS?
materialitems.h Collection of materials to populate MaterialModel.