BornAgain  1.19.0
Simulate and fit neutron and x-ray scattering at grazing incidence
colormapitem.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/colormapitem.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_COLORMAPITEM_H
16 #define BORNAGAIN_MVVM_MODEL_MVVM_STANDARDITEMS_COLORMAPITEM_H
17 
19 
20 namespace ModelView {
21 
22 class Data2DItem;
23 
24 //! Two-dimensional color map representation of Data2DItem.
25 //! Contains plot properties (i.e. color, gradient etc) and link to Data2DItem, which will provide
26 //! actual data to plot. ColorMapItem is intended for plotting only via ColorMapViewportItem.
27 
28 class MVVM_MODEL_EXPORT ColorMapItem : public CompoundItem {
29 public:
30  static inline const std::string P_LINK = "P_LINK";
31  static inline const std::string P_TITLE = "P_TITLE";
32  static inline const std::string P_GRADIENT = "P_GRADIENT";
33  static inline const std::string P_INTERPOLATION = "P_INTERPOLATION";
34 
35  ColorMapItem();
36 
37  void setDataItem(const Data2DItem* item);
38 
39  Data2DItem* dataItem() const;
40 };
41 
42 } // namespace ModelView
43 
44 #endif // BORNAGAIN_MVVM_MODEL_MVVM_STANDARDITEMS_COLORMAPITEM_H
Two-dimensional color map representation of Data2DItem.
Definition: colormapitem.h:28
Complex item holding mixed SessionItem types (single properties and other CompountItems).
Definition: compounditem.h:28
Represents two-dimensional data (axes definition and 2d array of values).
Definition: data2ditem.h:29
Defines class CLASS?
materialitems.h Collection of materials to populate MaterialModel.