BornAgain  1.19.79
Simulate and fit neutron and x-ray scattering at grazing incidence
GUI::RealSpace::Widget3D Class Reference

Description

Definition at line 28 of file widget.h.

Inheritance diagram for GUI::RealSpace::Widget3D:
[legend]
Collaboration diagram for GUI::RealSpace::Widget3D:
[legend]

Public Member Functions

 Widget3D ()
 
 ~Widget3D () override
 
Cameracam ()
 
void defaultView ()
 
Modelmodel ()
 
void setBackground (QColor const &)
 
void setModel (Model *)
 
void sideView ()
 
void topView ()
 

Private Attributes

Canvascanvas
 

Constructor & Destructor Documentation

◆ Widget3D()

GUI::RealSpace::Widget3D::Widget3D ( )

Definition at line 26 of file widget.cpp.

27  : canvas(nullptr)
28 {
29  auto* box = new QHBoxLayout;
30  setLayout(box);
31  box->setMargin(0);
32  box->addWidget((canvas = new Canvas));
33 }

References canvas.

◆ ~Widget3D()

GUI::RealSpace::Widget3D::~Widget3D ( )
overridedefault

Member Function Documentation

◆ cam()

Camera & GUI::RealSpace::Widget3D::cam ( )

Definition at line 37 of file widget.cpp.

38 {
39  return *canvas->cam();
40 }
Camera * cam()
Definition: canvas.h:59

References GUI::RealSpace::Canvas::cam(), and canvas.

Here is the call graph for this function:

◆ defaultView()

void GUI::RealSpace::Widget3D::defaultView ( )

Definition at line 52 of file widget.cpp.

53 {
55 }

References canvas, and GUI::RealSpace::Canvas::defaultView().

Here is the call graph for this function:

◆ model()

Model * GUI::RealSpace::Widget3D::model ( )

Definition at line 67 of file widget.cpp.

68 {
69  return canvas->getModel();
70 }

References canvas, and GUI::RealSpace::Canvas::getModel().

Referenced by setModel().

Here is the call graph for this function:

◆ setBackground()

void GUI::RealSpace::Widget3D::setBackground ( QColor const &  color)

Definition at line 42 of file widget.cpp.

43 {
44  canvas->setBgColor(color);
45 }
void setBgColor(QColor const &)
Definition: canvas.cpp:72

References canvas, and GUI::RealSpace::Canvas::setBgColor().

Here is the call graph for this function:

◆ setModel()

void GUI::RealSpace::Widget3D::setModel ( Model model)

Definition at line 47 of file widget.cpp.

48 {
50 }
void setModel(Model *)
Definition: canvas.cpp:94

References canvas, model(), and GUI::RealSpace::Canvas::setModel().

Here is the call graph for this function:

◆ sideView()

void GUI::RealSpace::Widget3D::sideView ( )

Definition at line 57 of file widget.cpp.

58 {
59  canvas->sideView();
60 }

References canvas, and GUI::RealSpace::Canvas::sideView().

Here is the call graph for this function:

◆ topView()

void GUI::RealSpace::Widget3D::topView ( )

Definition at line 62 of file widget.cpp.

63 {
64  canvas->topView();
65 }

References canvas, and GUI::RealSpace::Canvas::topView().

Here is the call graph for this function:

Member Data Documentation

◆ canvas

Canvas* GUI::RealSpace::Widget3D::canvas
private

Definition at line 46 of file widget.h.

Referenced by Widget3D(), cam(), defaultView(), model(), setBackground(), setModel(), sideView(), and topView().


The documentation for this class was generated from the following files: