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

Panel with item selector, property editor on the right side of RealSpaceWidget. More...

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

Public Member Functions

 RealSpacePanel (SampleModel *sampleModel, QItemSelectionModel *selectionModel, QWidget *parent)
 
QSize sizeHint () const override
 

Private Attributes

RealSpaceWidgetm_realSpaceWidget
 

Detailed Description

Panel with item selector, property editor on the right side of RealSpaceWidget.

Definition at line 26 of file RealSpacePanel.h.

Constructor & Destructor Documentation

◆ RealSpacePanel()

RealSpacePanel::RealSpacePanel ( SampleModel sampleModel,
QItemSelectionModel *  selectionModel,
QWidget *  parent 
)

Definition at line 19 of file RealSpacePanel.cpp.

21  : QWidget(parent), m_realSpaceWidget(nullptr)
22 {
23  setWindowTitle("Real Space");
24  setObjectName("Sample3DPanel");
25 
26  auto layout = new QVBoxLayout;
27  layout->setMargin(0);
28  layout->setSpacing(0);
29  layout->setContentsMargins(0, 0, 0, 0);
30 
31  m_realSpaceWidget = new RealSpaceWidget(sampleModel, selectionModel, this);
32  layout->addWidget(m_realSpaceWidget);
33  setLayout(layout);
34 }
RealSpaceWidget * m_realSpaceWidget
Prototype of real space widget to present sample structure in 3D view.

References m_realSpaceWidget.

Member Function Documentation

◆ sizeHint()

QSize RealSpacePanel::sizeHint ( ) const
override

Definition at line 36 of file RealSpacePanel.cpp.

37 {
38  return QSize(300, 300);
39 }

Member Data Documentation

◆ m_realSpaceWidget

RealSpaceWidget* RealSpacePanel::m_realSpaceWidget
private

Definition at line 35 of file RealSpacePanel.h.

Referenced by RealSpacePanel().


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