BornAgain  1.19.0
Simulate and fit neutron and x-ray scattering at grazing incidence
MaskContainerView.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/MaskContainerView.h
6 //! @brief Defines MaskContainerView 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_MASKCONTAINERVIEW_H
16 #define BORNAGAIN_GUI_COREGUI_VIEWS_MASKWIDGETS_MASKCONTAINERVIEW_H
17 
20 #include <QMap>
21 
22 //! The MaskContainerView 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 MaskContainerView as children.
28 
30  Q_OBJECT
31 
32 public:
33  int type() const { return MaskEditorHelper::MASKCONTAINER; }
35 
36 protected slots:
37  void update_view();
38 
39 protected:
40  void paint(QPainter* painter, const QStyleOptionGraphicsItem*, QWidget*);
41 };
42 
43 #endif // BORNAGAIN_GUI_COREGUI_VIEWS_MASKWIDGETS_MASKCONTAINERVIEW_H
Defines interface IShape2DView.
Defines SizeHandleElement class.
Main interface class for views representing MaskItems, Projections on graphics scene.
Definition: IShape2DView.h:27
The MaskContainerView is nothing move than just transparent rectangle to cover axes area of ColorMapP...
void paint(QPainter *painter, const QStyleOptionGraphicsItem *, QWidget *)