BornAgain  1.19.79
Simulate and fit neutron and x-ray scattering at grazing incidence
LayerBasicRoughnessItem Class Reference

Description

Definition at line 24 of file LayerRoughnessItems.h.

Collaboration diagram for LayerBasicRoughnessItem:
[legend]

Public Member Functions

 LayerBasicRoughnessItem ()
 
DoubleDescriptor hurst () const
 
DoubleDescriptor lateralCorrelationLength () const
 
void serialize (Streamer &s)
 
DoubleDescriptor sigma () const
 

Private Attributes

DoubleProperty m_hurst
 
DoubleProperty m_lateralCorrelationLength
 
DoubleProperty m_sigma
 

Constructor & Destructor Documentation

◆ LayerBasicRoughnessItem()

LayerBasicRoughnessItem::LayerBasicRoughnessItem ( )

Definition at line 26 of file LayerRoughnessItems.cpp.

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 }
@ unitless
@ nanometer
void init(const QString &label, const QString &tooltip, double value, const variant< QString, Unit > &unit, const QString &persistentTag)
DoubleProperty m_lateralCorrelationLength

References DoubleProperty::init(), m_hurst, m_lateralCorrelationLength, m_sigma, nanometer, and unitless.

Here is the call graph for this function:

Member Function Documentation

◆ hurst()

DoubleDescriptor LayerBasicRoughnessItem::hurst ( ) const

Definition at line 43 of file LayerRoughnessItems.cpp.

44 {
45  return m_hurst;
46 }

References m_hurst.

Referenced by LayerEditorUtils::doubleDescriptorsOfItem().

◆ lateralCorrelationLength()

DoubleDescriptor LayerBasicRoughnessItem::lateralCorrelationLength ( ) const

Definition at line 48 of file LayerRoughnessItems.cpp.

49 {
51 }

References m_lateralCorrelationLength.

Referenced by LayerEditorUtils::doubleDescriptorsOfItem().

◆ serialize()

void LayerBasicRoughnessItem::serialize ( Streamer s)

Definition at line 53 of file LayerRoughnessItems.cpp.

54 {
55  s.assertVersion(0);
59 }
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)

References Streamer::assertVersion(), m_hurst, m_lateralCorrelationLength, m_sigma, and Serialize::rwProperty().

Here is the call graph for this function:

◆ sigma()

DoubleDescriptor LayerBasicRoughnessItem::sigma ( ) const

Definition at line 38 of file LayerRoughnessItems.cpp.

39 {
40  return m_sigma;
41 }

References m_sigma.

Referenced by LayerEditorUtils::doubleDescriptorsOfItem().

Member Data Documentation

◆ m_hurst

DoubleProperty LayerBasicRoughnessItem::m_hurst
private

Definition at line 35 of file LayerRoughnessItems.h.

Referenced by LayerBasicRoughnessItem(), hurst(), and serialize().

◆ m_lateralCorrelationLength

DoubleProperty LayerBasicRoughnessItem::m_lateralCorrelationLength
private

◆ m_sigma

DoubleProperty LayerBasicRoughnessItem::m_sigma
private

Definition at line 34 of file LayerRoughnessItems.h.

Referenced by LayerBasicRoughnessItem(), serialize(), and sigma().


The documentation for this class was generated from the following files: