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

Description

Definition at line 382 of file FormFactorItems.h.

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

Public Member Functions

 SawtoothRippleLorentzItem ()
 
std::unique_ptr< IFormFactor > createFormFactor () const override
 
DoubleDescriptors geometryValues () const override
 
QVector< DoubleProperty * > serializationProperties () override
 
virtual void serialize (Streamer &s)
 

Constructor & Destructor Documentation

◆ SawtoothRippleLorentzItem()

SawtoothRippleLorentzItem::SawtoothRippleLorentzItem ( )

Definition at line 338 of file FormFactorItems.cpp.

339 {
340  m_length.init("Length", "Length of the rectangular base", 36.0, Unit::nanometer, "length");
341  m_width.init("Width", "Width of the rectangular base", 25.0, Unit::nanometer, "width");
342  m_height.init("Height", "Height of the ripple", 14.0, Unit::nanometer, "height");
343  m_asymmetry.init("Asymmetry", "Asymmetry length of the triangular profile", 3.0,
344  Unit::nanometer, "asymmetry");
345 }
@ nanometer

References nanometer.

Member Function Documentation

◆ createFormFactor()

std::unique_ptr< IFormFactor > SawtoothRippleLorentzItem::createFormFactor ( ) const
overridevirtual

Implements FormFactorItem.

Definition at line 347 of file FormFactorItems.cpp.

348 {
349  return std::make_unique<SawtoothRippleLorentz>(length(), width(), height(), asymmetry());
350 }

◆ geometryValues()

DoubleDescriptors SawtoothRippleLorentzItem::geometryValues ( ) const
inlineoverridevirtual

Implements FormFactorItem.

Definition at line 392 of file FormFactorItems.h.

393  {
394  return {length(), width(), height(), asymmetry()};
395  }

◆ serializationProperties()

QVector<DoubleProperty*> SawtoothRippleLorentzItem::serializationProperties ( )
inlineoverridevirtual

Implements FormFactorItem.

Definition at line 396 of file FormFactorItems.h.

397  {
398  return {&m_length, &m_width, &m_height, &m_asymmetry};
399  }

◆ serialize()

void FormFactorItem::serialize ( Streamer s)
virtualinherited

Definition at line 473 of file FormFactorItems.cpp.

474 {
475  s.assertVersion(0);
476  for (auto* p : serializationProperties())
477  Serialize::rwProperty(s, *p);
478 }
virtual QVector< DoubleProperty * > serializationProperties()=0
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(), Serialize::rwProperty(), and FormFactorItem::serializationProperties().

Here is the call graph for this function:

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