BornAgain  1.19.0
Simulate and fit neutron and x-ray scattering at grazing incidence
colormapviewportitem.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/colormapviewportitem.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_COLORMAPVIEWPORTITEM_H
16 #define BORNAGAIN_MVVM_MODEL_MVVM_STANDARDITEMS_COLORMAPVIEWPORTITEM_H
17 
19 
20 namespace ModelView {
21 
22 class Data2DItem;
23 
24 //! Container with viewport and collection of ColorMapItem's to plot.
25 
26 class MVVM_MODEL_EXPORT ColorMapViewportItem : public ViewportItem {
27 public:
28  static inline const std::string P_ZAXIS = "P_ZAXIS";
29 
31 
32  ViewportAxisItem* zAxis() const;
33 
35  void setViewportToContent() override;
36 
37 protected:
38  virtual std::pair<double, double> data_xaxis_range() const override;
39  virtual std::pair<double, double> data_yaxis_range() const override;
40 
41 private:
42  Data2DItem* data_item() const;
43  void update_data_range();
44 };
45 
46 } // namespace ModelView
47 
48 #endif // BORNAGAIN_MVVM_MODEL_MVVM_STANDARDITEMS_COLORMAPVIEWPORTITEM_H
Container with viewport and collection of ColorMapItem's to plot.
Represents two-dimensional data (axes definition and 2d array of values).
Definition: data2ditem.h:29
Item to represent viewport axis.
Definition: axisitems.h:43
Base class to represent 2D viewport.
Definition: viewportitem.h:27
virtual void setViewportToContent()
Sets range of x,y window to show all data.
materialitems.h Collection of materials to populate MaterialModel.
Defines class CLASS?