BornAgain  1.19.79
Simulate and fit neutron and x-ray scattering at grazing incidence
BeamWavelengthItem.h
Go to the documentation of this file.
1 // ************************************************************************************************
2 //
3 // BornAgain: simulate and fit reflection and scattering
4 //
5 //! @file GUI/Model/Device/BeamWavelengthItem.h
6 //! @brief Defines class BeamWavelengthItem
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_BEAMWAVELENGTHITEM_H
16 #define BORNAGAIN_GUI_MODEL_DEVICE_BEAMWAVELENGTHITEM_H
17 
19 
21 public:
23  void serialize(Streamer& s) override;
24 
25  //! Returns wavelength. In the case of distribution applied, returns its mean.
26  double wavelength() const;
27 
28 protected:
29  BeamWavelengthItem(bool onlySymmetricDistributions);
30 };
31 
33 public:
35  void setToRange(const RealLimits& limits);
36 };
37 
38 #endif // BORNAGAIN_GUI_MODEL_DEVICE_BEAMWAVELENGTHITEM_H
Defines class BeamDistributionItem.
The BeamDistributionItem handles wavelength, inclination and azimuthal parameter distribution for Bea...
double wavelength() const
Returns wavelength. In the case of distribution applied, returns its mean.
void serialize(Streamer &s) override
void setToRange(const RealLimits &limits)
Supports serialization to or deserialization from QXmlStream.
Definition: Streamer.h:36