BornAgain  1.19.0
Simulate and fit neutron and x-ray scattering at grazing incidence
plottableitems.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/plottableitems.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_PLOTTABLEITEMS_H
16 #define BORNAGAIN_MVVM_MODEL_MVVM_STANDARDITEMS_PLOTTABLEITEMS_H
17 
18 //! @file mvvm/model/mvvm/standarditems/plottableitems.h
19 //! Collection of items to plot in QCustomPlot context.
20 
22 
23 namespace ModelView {
24 
25 //! Represent text item on plot.
26 
27 class MVVM_MODEL_EXPORT TextItem : public CompoundItem {
28 public:
29  static inline const std::string P_TEXT = "P_TEXT";
30  static inline const std::string P_FONT = "P_FONT";
31  static inline const std::string P_SIZE = "P_SIZE";
32 
33  TextItem();
34 };
35 
36 //! Represents basics settings of QPen.
37 
38 class MVVM_MODEL_EXPORT PenItem : public CompoundItem {
39 public:
40  static inline const std::string P_COLOR = "P_COLOR";
41  static inline const std::string P_STYLE = "P_STYLE";
42  static inline const std::string P_WIDTH = "P_WIDTH";
43 
44  PenItem();
45 
46  void setSelected(bool is_selected);
47 
48  std::string colorName() const;
49  void setNamedColor(const std::string& named_color);
50 };
51 
52 } // namespace ModelView
53 
54 #endif // BORNAGAIN_MVVM_MODEL_MVVM_STANDARDITEMS_PLOTTABLEITEMS_H
Complex item holding mixed SessionItem types (single properties and other CompountItems).
Definition: compounditem.h:28
Represents basics settings of QPen.
Represent text item on plot.
Defines class CLASS?
materialitems.h Collection of materials to populate MaterialModel.