BornAgain  1.19.79
Simulate and fit neutron and x-ray scattering at grazing incidence
widget.h
Go to the documentation of this file.
1 // ************************************************************************************************
2 //
3 // BornAgain: simulate and fit reflection and scattering
4 //
5 //! @file GUI/ba3d/widget.h
6 //! @brief Defines Widget 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_BA3D_WIDGET_H
16 #define BORNAGAIN_GUI_BA3D_WIDGET_H
17 
18 #include "GUI/ba3d/def.h"
19 #include <QWidget>
20 
21 namespace GUI::RealSpace {
22 
23 class Model;
24 class Canvas;
25 class Camera;
26 class Program;
27 
28 class Widget3D : public QWidget {
29  Q_OBJECT
30 public:
31  Widget3D();
32  ~Widget3D() override;
33 
34  Camera& cam();
35 
36  void setBackground(QColor const&);
37  void setModel(Model*); // model owned elsewhere, may be nullptr
38 
39  void defaultView();
40  void sideView();
41  void topView();
42 
43  Model* model();
44 
45 private:
47 };
48 
49 } // namespace GUI::RealSpace
50 
51 #endif // BORNAGAIN_GUI_BA3D_WIDGET_H
void setBackground(QColor const &)
Definition: widget.cpp:42
void setModel(Model *)
Definition: widget.cpp:47
Definitions in namespace GUI::RealSpace.