BornAgain  1.19.0
Simulate and fit neutron and x-ray scattering at grazing incidence
MaskAllView.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/MaskAllView.h
6 //! @brief Defines MaskAllView 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_MASKALLVIEW_H
16 #define BORNAGAIN_GUI_COREGUI_VIEWS_MASKWIDGETS_MASKALLVIEW_H
17 
19 
20 //! This is a view of MaskAllItem which covers whole detector plane with mask value=true.
21 
22 class MaskAllView : public IShape2DView {
23  Q_OBJECT
24 
25 public:
26  int type() const { return MaskEditorHelper::MASKALL; }
27 
28  MaskAllView();
29 
30 protected slots:
31  virtual void update_view();
32 
33 protected:
34  void paint(QPainter* painter, const QStyleOptionGraphicsItem*, QWidget*);
35 };
36 
37 #endif // BORNAGAIN_GUI_COREGUI_VIEWS_MASKWIDGETS_MASKALLVIEW_H
Defines interface IShape2DView.
Main interface class for views representing MaskItems, Projections on graphics scene.
Definition: IShape2DView.h:27
This is a view of MaskAllItem which covers whole detector plane with mask value=true.
Definition: MaskAllView.h:22
void paint(QPainter *painter, const QStyleOptionGraphicsItem *, QWidget *)
Definition: MaskAllView.cpp:34
int type() const
Definition: MaskAllView.h:26
virtual void update_view()
Definition: MaskAllView.cpp:27