BornAgain  1.19.0
Simulate and fit neutron and x-ray scattering at grazing incidence
SampleDesigner.cpp
Go to the documentation of this file.
1 // ************************************************************************************************
2 //
3 // BornAgain: simulate and fit reflection and scattering
4 //
5 //! @file GUI/coregui/Views/SampleDesigner/SampleDesigner.cpp
6 //! @brief Implements class SampleDesigner
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 
20 
22  : SampleDesignerInterface(parent), m_designerScene(0), m_designerView(0)
23 {
24  m_designerScene = new DesignerScene(parent);
26 }
27 
29 
31 {
35 }
36 
37 void SampleDesigner::setSelectionModel(QItemSelectionModel* model, FilterPropertyProxy* proxy)
38 {
39  if (model)
40  m_designerScene->setSelectionModel(model, proxy);
41 }
Defines class holding all application models.
Defines class FilterPropertyProxy.
Defines interface class ISampleNode.
Defines class MultiLayerView.
Defines class SampleDesigner.
SampleModel * sampleModel()
MaterialModel * materialModel()
InstrumentModel * instrumentModel()
Main class which represents SessionModel on graphics scene.
Definition: DesignerScene.h:37
void setInstrumentModel(InstrumentModel *instrumentModel)
void setMaterialModel(MaterialModel *materialModel)
void setSampleModel(SampleModel *sampleModel)
void setSelectionModel(QItemSelectionModel *model, FilterPropertyProxy *proxy)
The DesignerView class provides widget for displaying the contents of DesignerScene.
Definition: DesignerView.h:30
The FilterPropertyProxy class filters out all PropertyItem's and similar from SessionModel to have on...
sample designer interface
DesignerScene * m_designerScene
virtual ~SampleDesigner()
void setModels(ApplicationModels *models)
SampleDesigner(QWidget *parent=0)
DesignerView * m_designerView
scene which holds all objects
void setSelectionModel(QItemSelectionModel *model, FilterPropertyProxy *proxy)