BornAgain  1.19.0
Simulate and fit neutron and x-ray scattering at grazing incidence
DepthProbeInstrumentItem.h
Go to the documentation of this file.
1 // ************************************************************************************************
2 //
3 // BornAgain: simulate and fit reflection and scattering
4 //
5 //! @file GUI/coregui/Models/DepthProbeInstrumentItem.h
6 //! @brief Defines DepthProbeInstrumentItem 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_COREGUI_MODELS_DEPTHPROBEINSTRUMENTITEM_H
16 #define BORNAGAIN_GUI_COREGUI_MODELS_DEPTHPROBEINSTRUMENTITEM_H
17 
19 
21 
22 //! Depth probe instrument.
23 
24 class BA_CORE_API_ DepthProbeInstrumentItem : public InstrumentItem {
25 public:
26  static const QString P_BEAM;
27  static const QString P_Z_AXIS;
28 
30 
31  SpecularBeamItem* beamItem() const override;
32 
33  std::unique_ptr<Instrument> createInstrument() const override;
34  std::vector<int> shape() const override;
35  void updateToRealData(const RealDataItem* item) override;
36  virtual QString defaultName() const override;
37 
38  // FIXME switch to base ISimulation class after InstrumentItem refactoring and
39  // after ISimulation gets createUnitConverter method
40  std::unique_ptr<DepthProbeSimulation> createSimulation() const;
41 
42  std::unique_ptr<IUnitConverter> createUnitConverter() const;
43 };
44 
45 #endif // BORNAGAIN_GUI_COREGUI_MODELS_DEPTHPROBEINSTRUMENTITEM_H
Defines InstrumentItems classes.
virtual void updateToRealData(const RealDataItem *item)=0
virtual QString defaultName() const =0
The default user visible name when creating an instrument.
virtual std::vector< int > shape() const =0
virtual BeamItem * beamItem() const
virtual std::unique_ptr< Instrument > createInstrument() const =0
The RealDataItem class represents intensity data imported from file and intended for fitting.
Definition: RealDataItem.h:35
std::unique_ptr< IUnitConverter > createUnitConverter(const InstrumentItem *instrumentItem)
Creates a unit converter corresponding to the given instrument item.
std::unique_ptr< ISimulation > createSimulation(const MultiLayerItem *sampleItem, const InstrumentItem *instrumentItem, const SimulationOptionsItem *optionsItem=nullptr)
Creates domain simulation from sample and instrument items.