BornAgain  1.19.79
Simulate and fit neutron and x-ray scattering at grazing incidence
MaskEditorHelper.h
Go to the documentation of this file.
1 // ************************************************************************************************
2 //
3 // BornAgain: simulate and fit reflection and scattering
4 //
5 //! @file GUI/View/Mask/MaskEditorHelper.h
6 //! @brief Defines class MaskEditorHelper
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_MASKEDITORHELPER_H
16 #define BORNAGAIN_GUI_VIEW_MASK_MASKEDITORHELPER_H
17 
18 #include <QGraphicsItem>
19 
20 class QBrush;
21 class QPen;
22 class QRectF;
23 class QPointF;
24 
25 //! Static class to provide MaskEditor with common settings (colors, gradients, etc)
26 
28 public:
29  enum EViewTypes {
30  IMASKVIEW = QGraphicsItem::UserType + 1, // = 65537
43  };
44 
45  static QBrush getSelectionMarkerBrush();
46  static QPen getSelectionMarkerPen();
47  static QBrush getMaskBrush(bool mask_value);
48  static QPen getMaskPen(bool mask_value);
49  static QRectF getMarkerRectangle(const QPointF& pos);
50 };
51 
52 #endif // BORNAGAIN_GUI_VIEW_MASK_MASKEDITORHELPER_H
Static class to provide MaskEditor with common settings (colors, gradients, etc)
static QBrush getMaskBrush(bool mask_value)
static QPen getSelectionMarkerPen()
static QBrush getSelectionMarkerBrush()
static QPen getMaskPen(bool mask_value)
static QRectF getMarkerRectangle(const QPointF &pos)