BornAgain  1.19.0
Simulate and fit neutron and x-ray scattering at grazing incidence
LayerView.h
Go to the documentation of this file.
1 // ************************************************************************************************
2 //
3 // BornAgain: simulate and fit reflection and scattering
4 //
5 //! @file GUI/coregui/Views/SampleDesigner/LayerView.h
6 //! @brief Defines class LayerView
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_SAMPLEDESIGNER_LAYERVIEW_H
16 #define BORNAGAIN_GUI_COREGUI_VIEWS_SAMPLEDESIGNER_LAYERVIEW_H
17 
19 
20 //! Class that represents view of Layer
21 class LayerView : public ILayerView {
22  Q_OBJECT
23 public:
24  LayerView(QGraphicsItem* parent = 0);
25 
26  virtual int type() const { return ViewTypes::LAYER; }
27 
28  virtual void paint(QPainter* painter, const QStyleOptionGraphicsItem* option, QWidget* widget);
29 
30  virtual void addView(IView* childView, int row = 0); // to add ParticleLayout
31 };
32 
33 #endif // BORNAGAIN_GUI_COREGUI_VIEWS_SAMPLEDESIGNER_LAYERVIEW_H
Defines interface ILayerView.
Base class for LayerView and MultiLayerView Provides functionality for moving view on top of MultiLay...
Definition: ILayerView.h:25
parent class for graphic representation of all ISampleNode's
Definition: IView.h:25
Class that represents view of Layer.
Definition: LayerView.h:21
LayerView(QGraphicsItem *parent=0)
Definition: LayerView.cpp:24
virtual int type() const
Definition: LayerView.h:26
virtual void addView(IView *childView, int row=0)
Definition: LayerView.cpp:45
virtual void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget)
Definition: LayerView.cpp:33