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
:
46
Canvas
*
canvas
;
47
};
48
49
}
// namespace GUI::RealSpace
50
51
#endif
// BORNAGAIN_GUI_BA3D_WIDGET_H
GUI::RealSpace::Camera
Definition:
camera.h:28
GUI::RealSpace::Canvas
Definition:
canvas.h:34
GUI::RealSpace::Model
Definition:
model.h:27
GUI::RealSpace::Widget3D
Definition:
widget.h:28
GUI::RealSpace::Widget3D::~Widget3D
~Widget3D() override
GUI::RealSpace::Widget3D::setBackground
void setBackground(QColor const &)
Definition:
widget.cpp:42
GUI::RealSpace::Widget3D::setModel
void setModel(Model *)
Definition:
widget.cpp:47
GUI::RealSpace::Widget3D::Widget3D
Widget3D()
Definition:
widget.cpp:26
GUI::RealSpace::Widget3D::cam
Camera & cam()
Definition:
widget.cpp:37
GUI::RealSpace::Widget3D::canvas
Canvas * canvas
Definition:
widget.h:46
GUI::RealSpace::Widget3D::topView
void topView()
Definition:
widget.cpp:62
GUI::RealSpace::Widget3D::sideView
void sideView()
Definition:
widget.cpp:57
GUI::RealSpace::Widget3D::defaultView
void defaultView()
Definition:
widget.cpp:52
GUI::RealSpace::Widget3D::model
Model * model()
Definition:
widget.cpp:67
def.h
Definitions in namespace GUI::RealSpace.
GUI::RealSpace
Definition:
def.cpp:20
GUI
ba3d
widget.h
Generated by
1.9.1