BornAgain  1.19.79
Simulate and fit neutron and x-ray scattering at grazing incidence
BeamAngleItems.h
Go to the documentation of this file.
1 // ************************************************************************************************
2 //
3 // BornAgain: simulate and fit reflection and scattering
4 //
5 //! @file GUI/Model/Device/BeamAngleItems.h
6 //! @brief Defines class BeamAngleItems
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_BEAMANGLEITEMS_H
16 #define BORNAGAIN_GUI_MODEL_DEVICE_BEAMANGLEITEMS_H
17 
19 
21 public:
23 
24  void serialize(Streamer& s) override;
25  double azimuthalAngle() const;
26  double scaleFactor() const override;
27 
28 private:
29  static void initDistribution(DistributionItem* newDistribution,
30  const DistributionItem* currentDistribution);
31 };
32 
34 public:
36 
37  void serialize(Streamer& s) override;
38  double inclinationAngle() const;
39  double scaleFactor() const override;
40 
41 private:
42  static void initDistribution(DistributionItem* newDistribution,
43  const DistributionItem* currentDistribution);
44 };
45 
46 #endif // BORNAGAIN_GUI_MODEL_DEVICE_BEAMANGLEITEMS_H
Defines class BeamDistributionItem.
static void initDistribution(DistributionItem *newDistribution, const DistributionItem *currentDistribution)
double azimuthalAngle() const
double scaleFactor() const override
void serialize(Streamer &s) override
The BeamDistributionItem handles wavelength, inclination and azimuthal parameter distribution for Bea...
void serialize(Streamer &s) override
double inclinationAngle() const
double scaleFactor() const override
static void initDistribution(DistributionItem *newDistribution, const DistributionItem *currentDistribution)
Supports serialization to or deserialization from QXmlStream.
Definition: Streamer.h:36