BornAgain  1.19.0
Simulate and fit neutron and x-ray scattering at grazing incidence
RealSpaceView Class Reference

Contains 3D view. More...

Inheritance diagram for RealSpaceView:
[legend]
Collaboration diagram for RealSpaceView:
[legend]

Public Member Functions

 RealSpaceView (QWidget *parent=0)
 
void defaultView ()
 
RealSpace::CameragetCamera ()
 
void setModel (RealSpaceModel *model)
 
void sideView ()
 
void topView ()
 

Private Attributes

RealSpace::Widget3Dm_3dview
 

Detailed Description

Contains 3D view.

Definition at line 29 of file RealSpaceView.h.

Constructor & Destructor Documentation

◆ RealSpaceView()

RealSpaceView::RealSpaceView ( QWidget *  parent = 0)

Definition at line 20 of file RealSpaceView.cpp.

20  : QWidget(parent), m_3dview(new RealSpace::Widget3D)
21 {
22  QVBoxLayout* layout = new QVBoxLayout;
23  layout->setMargin(0);
24  layout->setSpacing(0);
25 
26  layout->addWidget(m_3dview);
27  setLayout(layout);
28 }
RealSpace::Widget3D * m_3dview
Definition: RealSpaceView.h:44

References m_3dview.

Member Function Documentation

◆ defaultView()

void RealSpaceView::defaultView ( )

Definition at line 35 of file RealSpaceView.cpp.

36 {
38 }
void defaultView()
Definition: widget.cpp:50

References RealSpace::Widget3D::defaultView(), and m_3dview.

Referenced by RealSpaceCanvas::defaultView().

Here is the call graph for this function:

◆ getCamera()

RealSpace::Camera & RealSpaceView::getCamera ( )

Definition at line 50 of file RealSpaceView.cpp.

51 {
52  return m_3dview->cam();
53 }
Camera & cam()
Definition: widget.cpp:35

References RealSpace::Widget3D::cam(), and m_3dview.

Referenced by RealSpaceCanvas::updateScene().

Here is the call graph for this function:

◆ setModel()

void RealSpaceView::setModel ( RealSpaceModel model)

Definition at line 30 of file RealSpaceView.cpp.

31 {
32  m_3dview->setModel(model);
33 }
void setModel(Model *)
Definition: widget.cpp:45

References m_3dview, and RealSpace::Widget3D::setModel().

Referenced by RealSpaceCanvas::resetScene(), and RealSpaceCanvas::updateScene().

Here is the call graph for this function:

◆ sideView()

void RealSpaceView::sideView ( )

Definition at line 40 of file RealSpaceView.cpp.

41 {
42  m_3dview->sideView();
43 }

References m_3dview, and RealSpace::Widget3D::sideView().

Referenced by RealSpaceCanvas::sideView().

Here is the call graph for this function:

◆ topView()

void RealSpaceView::topView ( )

Definition at line 45 of file RealSpaceView.cpp.

46 {
47  m_3dview->topView();
48 }

References m_3dview, and RealSpace::Widget3D::topView().

Referenced by RealSpaceCanvas::topView().

Here is the call graph for this function:

Member Data Documentation

◆ m_3dview

RealSpace::Widget3D* RealSpaceView::m_3dview
private

Definition at line 44 of file RealSpaceView.h.

Referenced by RealSpaceView(), defaultView(), getCamera(), setModel(), sideView(), and topView().


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