BornAgain  1.19.0
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 RealSpace {
22 //------------------------------------------------------------------------------
23 
24 class Model;
25 class Canvas;
26 class Camera;
27 class Program;
28 
29 class Widget3D : public QWidget {
30  Q_OBJECT
31 public:
32  Widget3D();
34 
35  Camera& cam();
36 
37  void setBackground(QColor const&);
38  void setModel(Model*); // model owned elsewhere, may be nullptr
39 
40  void defaultView();
41  void sideView();
42  void topView();
43 
44  Model* model();
45 
46 private:
48 };
49 
50 //------------------------------------------------------------------------------
51 } // namespace RealSpace
52 #endif // BORNAGAIN_GUI_BA3D_WIDGET_H
Canvas * canvas
Definition: widget.h:47
Model * model()
Definition: widget.cpp:65
void setModel(Model *)
Definition: widget.cpp:45
Camera & cam()
Definition: widget.cpp:35
void setBackground(QColor const &)
Definition: widget.cpp:40
void defaultView()
Definition: widget.cpp:50
Definitions.