BornAgain  1.19.0
Simulate and fit neutron and x-ray scattering at grazing incidence
IntensityDataView.h
Go to the documentation of this file.
1 // ************************************************************************************************
2 //
3 // BornAgain: simulate and fit reflection and scattering
4 //
5 //! @file GUI/coregui/Views/MaskWidgets/IntensityDataView.h
6 //! @brief Defines IntensityDataView 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 2018
11 //! @authors Scientific Computing Group at MLZ (see CITATION, AUTHORS)
12 //
13 // ************************************************************************************************
14 
15 #ifndef BORNAGAIN_GUI_COREGUI_VIEWS_MASKWIDGETS_INTENSITYDATAVIEW_H
16 #define BORNAGAIN_GUI_COREGUI_VIEWS_MASKWIDGETS_INTENSITYDATAVIEW_H
17 
20 #include <QMap>
21 
22 //! The IntensityDataView is nothing move than just transparent rectangle to cover axes area
23 //! of ColorMapPlot inside MaskGraphicsScene. The goal of this rectangle is to hide all MaskViews
24 //! if they are going outside of ColorMapPlot.
25 //!
26 //! The size of the rectangle always matches axes viewport at any zoom level.
27 //! All MasksViews are added to IntensityDataView as children.
28 
30  Q_OBJECT
31 public:
33 
34 public slots:
35  void update_view();
36 
37 protected:
38  void paint(QPainter* painter, const QStyleOptionGraphicsItem*, QWidget*);
39 };
40 
41 #endif // BORNAGAIN_GUI_COREGUI_VIEWS_MASKWIDGETS_INTENSITYDATAVIEW_H
Defines interface IShape2DView.
Defines SizeHandleElement class.
Main interface class for views representing MaskItems, Projections on graphics scene.
Definition: IShape2DView.h:27
The IntensityDataView is nothing move than just transparent rectangle to cover axes area of ColorMapP...
void paint(QPainter *painter, const QStyleOptionGraphicsItem *, QWidget *)