BornAgain  1.19.0
Simulate and fit neutron and x-ray scattering at grazing incidence
IntensityDataView.cpp
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.cpp
6 //! @brief Implements 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 
17 #include <QBrush>
18 #include <QPainter>
19 #include <QStyleOptionGraphicsItem>
20 
22 {
23  // the key flag to not to draw children going outside ot given shape
24  setFlag(QGraphicsItem::ItemClipsChildrenToShape, true);
25 }
26 
28 {
29  // prepareGeometryChange();
31  update();
32 }
33 
34 void IntensityDataView::paint(QPainter* painter, const QStyleOptionGraphicsItem*, QWidget*)
35 {
36  Q_UNUSED(painter);
37 }
Defines interface class ISceneAdaptor.
Defines IntensityDataView class.
virtual const QRectF & viewportRectangle() const
returns viewport rectangle in scene coordinates
Definition: ISceneAdaptor.h:39
const ISceneAdaptor * m_adaptor
Definition: IShape2DView.h:66
QRectF m_bounding_rect
Definition: IShape2DView.h:67
void paint(QPainter *painter, const QStyleOptionGraphicsItem *, QWidget *)