BornAgain  1.19.0
Simulate and fit neutron and x-ray scattering at grazing incidence
SphericalDetectorItem.h
Go to the documentation of this file.
1 // ************************************************************************************************
2 //
3 // BornAgain: simulate and fit reflection and scattering
4 //
5 //! @file GUI/coregui/Models/SphericalDetectorItem.h
6 //! @brief Defines class SphericalDetectorItem
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_SPHERICALDETECTORITEM_H
16 #define BORNAGAIN_GUI_COREGUI_MODELS_SPHERICALDETECTORITEM_H
17 
19 
20 class BasicAxisItem;
21 
22 class BA_CORE_API_ SphericalDetectorItem : public DetectorItem {
23 public:
24  static const QString P_PHI_AXIS;
25  static const QString P_ALPHA_AXIS;
27 
28  int xSize() const override;
29  int ySize() const override;
30  void setXSize(int nx) override;
31  void setYSize(int ny) override;
32 
33  const BasicAxisItem* phiAxisItem() const;
34  BasicAxisItem* phiAxisItem();
35 
36  const BasicAxisItem* alphaAxisItem() const;
37  BasicAxisItem* alphaAxisItem();
38 
39 protected:
40  std::unique_ptr<IDetector2D> createDomainDetector() const override;
41  double axesToDomainUnitsFactor() const override;
42 };
43 
44 #endif // BORNAGAIN_GUI_COREGUI_MODELS_SPHERICALDETECTORITEM_H
Defines classes DetectorItems.
virtual void setXSize(int nx)=0
sets the size of x-axis of the detector
virtual int xSize() const =0
returns the size of x-axis of the detector
virtual std::unique_ptr< IDetector2D > createDomainDetector() const =0
virtual double axesToDomainUnitsFactor() const
Scales the values provided by axes (to perform deg->rad conversion on the way to domain).
Definition: DetectorItems.h:66
virtual int ySize() const =0
returns the size of y-axis of the detector
virtual void setYSize(int ny)=0
sets the size of y-axis of the detector
static const QString P_ALPHA_AXIS
static const QString P_PHI_AXIS