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
();
33
~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
:
47
Canvas
*
canvas
;
48
};
49
50
//------------------------------------------------------------------------------
51
}
// namespace RealSpace
52
#endif
// BORNAGAIN_GUI_BA3D_WIDGET_H
RealSpace::Camera
Definition:
camera.h:28
RealSpace::Canvas
Definition:
canvas.h:34
RealSpace::Model
Definition:
model.h:28
RealSpace::Widget3D
Definition:
widget.h:29
RealSpace::Widget3D::canvas
Canvas * canvas
Definition:
widget.h:47
RealSpace::Widget3D::model
Model * model()
Definition:
widget.cpp:65
RealSpace::Widget3D::setModel
void setModel(Model *)
Definition:
widget.cpp:45
RealSpace::Widget3D::topView
void topView()
Definition:
widget.cpp:60
RealSpace::Widget3D::cam
Camera & cam()
Definition:
widget.cpp:35
RealSpace::Widget3D::Widget3D
Widget3D()
Definition:
widget.cpp:25
RealSpace::Widget3D::~Widget3D
~Widget3D()
RealSpace::Widget3D::setBackground
void setBackground(QColor const &)
Definition:
widget.cpp:40
RealSpace::Widget3D::defaultView
void defaultView()
Definition:
widget.cpp:50
RealSpace::Widget3D::sideView
void sideView()
Definition:
widget.cpp:55
def.h
Definitions.
RealSpace
Definition:
def.cpp:20
GUI
ba3d
widget.h
Generated by
1.9.1