BornAgain  1.19.79
Simulate and fit neutron and x-ray scattering at grazing incidence
RegionOfInterestView.h
Go to the documentation of this file.
1 // ************************************************************************************************
2 //
3 // BornAgain: simulate and fit reflection and scattering
4 //
5 //! @file GUI/View/Mask/RegionOfInterestView.h
6 //! @brief Defines RegionOfInterestView 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_VIEW_MASK_REGIONOFINTERESTVIEW_H
16 #define BORNAGAIN_GUI_VIEW_MASK_REGIONOFINTERESTVIEW_H
17 
19 
21 
22 //! The RegionOfInterest class represent view of RegionOfInterestItem on graphics scene.
23 
25  Q_OBJECT
26 
27 public:
28  int type() const override { return MaskEditorHelper::REGIONOFINTEREST; }
29 
31 
32  QRectF boundingRect() const override;
33 
34 protected slots:
35  void update_view() override;
36 
37 protected:
38  void paint(QPainter* painter, const QStyleOptionGraphicsItem*, QWidget*) override;
39 };
40 
41 #endif // BORNAGAIN_GUI_VIEW_MASK_REGIONOFINTERESTVIEW_H
Defines RectangleView class.
This is a View of rectangular mask (represented by RectangleItem) on GraphicsScene....
Definition: RectangleView.h:25
The RegionOfInterest class represent view of RegionOfInterestItem on graphics scene.
void paint(QPainter *painter, const QStyleOptionGraphicsItem *, QWidget *) override
RegionOfInterestView(RegionOfInterestItem *item)
QRectF boundingRect() const override
int type() const override