BornAgain  1.19.79
Simulate and fit neutron and x-ray scattering at grazing incidence
Profile1DItem Class Referenceabstract

Description

Definition at line 26 of file ProfileItems.h.

Inheritance diagram for Profile1DItem:
[legend]
Collaboration diagram for Profile1DItem:
[legend]

Public Member Functions

virtual ~Profile1DItem ()=default
 
virtual std::unique_ptr< IProfile1D > createProfile () const =0
 
DoubleDescriptor omega () const
 
virtual void serialize (Streamer &s)
 
virtual DoubleDescriptors valueDescriptors () const
 

Protected Member Functions

 Profile1DItem ()
 

Protected Attributes

DoubleProperty m_omega
 

Static Private Attributes

static constexpr auto P_OMEGA {"Omega"}
 

Constructor & Destructor Documentation

◆ ~Profile1DItem()

virtual Profile1DItem::~Profile1DItem ( )
virtualdefault

◆ Profile1DItem()

Profile1DItem::Profile1DItem ( )
protected

Definition at line 19 of file ProfileItems.cpp.

20 {
21  m_omega.init("Omega", "Half-width of the distribution", 1.0, Unit::nanometer, "omega");
22 }
@ nanometer
void init(const QString &label, const QString &tooltip, double value, const variant< QString, Unit > &unit, const QString &persistentTag)
DoubleProperty m_omega
Definition: ProfileItems.h:42

References DoubleProperty::init(), m_omega, and nanometer.

Here is the call graph for this function:

Member Function Documentation

◆ createProfile()

◆ omega()

◆ serialize()

void Profile1DItem::serialize ( Streamer s)
virtual

Reimplemented in Profile1DVoigtItem.

Definition at line 24 of file ProfileItems.cpp.

25 {
26  s.assertVersion(0);
28 }
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_omega, and Serialize::rwProperty().

Here is the call graph for this function:

◆ valueDescriptors()

DoubleDescriptors Profile1DItem::valueDescriptors ( ) const
virtual

Reimplemented in Profile1DVoigtItem.

Definition at line 35 of file ProfileItems.cpp.

36 {
37  return {omega()};
38 }
DoubleDescriptor omega() const

References omega().

Referenced by LayerEditorUtils::doubleDescriptorsOfItem(), and Profile1DVoigtItem::valueDescriptors().

Here is the call graph for this function:

Member Data Documentation

◆ m_omega

DoubleProperty Profile1DItem::m_omega
protected

Definition at line 42 of file ProfileItems.h.

Referenced by Profile1DItem(), omega(), serialize(), and Profile1DVoigtItem::serialize().

◆ P_OMEGA

constexpr auto Profile1DItem::P_OMEGA {"Omega"}
staticconstexprprivate

Definition at line 28 of file ProfileItems.h.


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