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

Description

Definition at line 362 of file FormFactorItems.h.

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

Public Member Functions

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

Constructor & Destructor Documentation

◆ SawtoothRippleGaussItem()

SawtoothRippleGaussItem::SawtoothRippleGaussItem ( )

Definition at line 322 of file FormFactorItems.cpp.

323 {
324  m_length.init("Length", "Length of the rectangular base", 36.0, Unit::nanometer, "length");
325  m_width.init("Width", "Width of the rectangular base", 25.0, Unit::nanometer, "width");
326  m_height.init("Height", "Height of the ripple", 14.0, Unit::nanometer, "height");
327  m_asymmetry.init("Asymmetry", "Asymmetry length of the triangular profile", 3.0,
328  Unit::nanometer, "asymmetry");
329 }
@ nanometer

References nanometer.

Member Function Documentation

◆ createFormFactor()

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

Implements FormFactorItem.

Definition at line 331 of file FormFactorItems.cpp.

332 {
333  return std::make_unique<SawtoothRippleGauss>(length(), width(), height(), asymmetry());
334 }

◆ geometryValues()

DoubleDescriptors SawtoothRippleGaussItem::geometryValues ( ) const
inlineoverridevirtual

Implements FormFactorItem.

Definition at line 372 of file FormFactorItems.h.

373  {
374  return {length(), width(), height(), asymmetry()};
375  }

◆ serializationProperties()

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

Implements FormFactorItem.

Definition at line 376 of file FormFactorItems.h.

377  {
378  return {&m_length, &m_width, &m_height, &m_asymmetry};
379  }

◆ 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: