BornAgain  1.19.79
Simulate and fit neutron and x-ray scattering at grazing incidence
LayerRoughnessItems.cpp
Go to the documentation of this file.
1 // ************************************************************************************************
2 //
3 // BornAgain: simulate and fit reflection and scattering
4 //
5 //! @file GUI/Model/Sample/LayerRoughnessItems.cpp
6 //! @brief Implements classes LayerRoughnessItems
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 
18 
19 namespace {
20 namespace Tags {
21 const QString Uid("Uid");
22 } // namespace Tags
23 } // namespace
24 
25 
27 {
28  m_sigma.init("Sigma", "rms of the roughness", 1.0, Unit::nanometer, "sigma");
29  m_hurst.init("Hurst",
30  "Hurst parameter which describes how jagged the interface,\n "
31  "dimensionless [0.0, 1.0], where 0.0 gives more spikes, \n1.0 more smoothness.",
32  0.3, Unit::unitless, 3, RealLimits::limited(0.0, 1.0), "hurst");
33  m_lateralCorrelationLength.init("Correlation length",
34  "Lateral correlation length of the roughness", 5.0,
35  Unit::nanometer, "corrLen");
36 }
37 
39 {
40  return m_sigma;
41 }
42 
44 {
45  return m_hurst;
46 }
47 
49 {
51 }
52 
54 {
55  s.assertVersion(0);
59 }
Defines class DoubleDescriptor.
Defines classes LayerRoughnessItems.
Defines class Streamer.
@ unitless
@ nanometer
Describes properties of a double value which are necessary to allow GUI representation,...
void init(const QString &label, const QString &tooltip, double value, const variant< QString, Unit > &unit, const QString &persistentTag)
DoubleDescriptor lateralCorrelationLength() const
DoubleDescriptor sigma() const
DoubleDescriptor hurst() const
DoubleProperty m_lateralCorrelationLength
Supports serialization to or deserialization from QXmlStream.
Definition: Streamer.h:36
void assertVersion(unsigned expectedVersion) const
As reader, throws DeserializationException unless the expected version is read. As writer,...
Definition: Streamer.cpp:26
void rwProperty(Streamer &s, DoubleProperty &d)
Definition: JobItem.cpp:33