BornAgain  1.19.79
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/Model/Device/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_MODEL_DEVICE_SPHERICALDETECTORITEM_H
16 #define BORNAGAIN_GUI_MODEL_DEVICE_SPHERICALDETECTORITEM_H
17 
20 
22 public:
24 
25  void serialize(Streamer& s) override;
26 
27  int xSize() const override;
28  int ySize() const override;
29  void setXSize(size_t nx) override;
30  void setYSize(size_t ny) override;
31 
32  double axesToCoreUnitsFactor() const override;
33 
34  AXIS_PROPERTY(phiAxis);
35  AXIS_PROPERTY(alphaAxis);
36 
37 protected:
38  std::unique_ptr<IDetector> createDomainDetector() const override;
39 };
40 
41 #endif // BORNAGAIN_GUI_MODEL_DEVICE_SPHERICALDETECTORITEM_H
Defines class AxisProperty.
Defines classes DetectorItems.
int xSize() const override
Returns the size of x-axis of the detector.
AXIS_PROPERTY(alphaAxis)
void setYSize(size_t ny) override
sets the size of y-axis of the detector
std::unique_ptr< IDetector > createDomainDetector() const override
int ySize() const override
Returns the size of y-axis of the detector.
void serialize(Streamer &s) override
void setXSize(size_t nx) override
sets the size of x-axis of the detector
double axesToCoreUnitsFactor() const override
Scales the values provided by axes (to perform deg->rad conversion on the way to domain).
Supports serialization to or deserialization from QXmlStream.
Definition: Streamer.h:36