BornAgain  1.19.0
Simulate and fit neutron and x-ray scattering at grazing incidence
RealSpaceWidget.h
Go to the documentation of this file.
1 // ************************************************************************************************
2 //
3 // BornAgain: simulate and fit reflection and scattering
4 //
5 //! @file GUI/coregui/Views/RealSpaceWidgets/RealSpaceWidget.h
6 //! @brief Defines class RealSpaceWidget
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_REALSPACEWIDGETS_REALSPACEWIDGET_H
16 #define BORNAGAIN_GUI_COREGUI_VIEWS_REALSPACEWIDGETS_REALSPACEWIDGET_H
17 
18 #include <QWidget>
19 
20 #include <QTreeView>
21 
22 class RealSpaceToolBar;
23 class RealSpaceCanvas;
24 class RealSpaceActions;
25 class SampleModel;
26 
27 //! Prototype of real space widget to present sample structure in 3D view.
28 
29 class RealSpaceWidget : public QWidget {
30  Q_OBJECT
31 
32 public:
33  RealSpaceWidget(SampleModel* sampleModel = nullptr,
34  QItemSelectionModel* selectionModel = nullptr, QWidget* parent = nullptr);
35 
36 protected:
37  void showEvent(QShowEvent*) override;
38  void hideEvent(QHideEvent*) override;
39 
40 private:
45  QItemSelectionModel* m_selectionModel;
46 };
47 
48 #endif // BORNAGAIN_GUI_COREGUI_VIEWS_REALSPACEWIDGETS_REALSPACEWIDGET_H
Collection of actions for RealSpaceWidget.
Provides 3D object generation for RealSpaceWidget.
Thin toolbar on top of RealSpaceWidget.
Prototype of real space widget to present sample structure in 3D view.
RealSpaceWidget(SampleModel *sampleModel=nullptr, QItemSelectionModel *selectionModel=nullptr, QWidget *parent=nullptr)
RealSpaceActions * m_actions
SampleModel * m_sampleModel
RealSpaceToolBar * m_toolBar
QItemSelectionModel * m_selectionModel
void showEvent(QShowEvent *) override
void hideEvent(QHideEvent *) override
RealSpaceCanvas * m_canvas
Main model to hold sample items.
Definition: SampleModel.h:24