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

Description

Definition at line 342 of file FormFactorItems.h.

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

Public Member Functions

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

Constructor & Destructor Documentation

◆ SawtoothRippleBoxItem()

SawtoothRippleBoxItem::SawtoothRippleBoxItem ( )

Definition at line 306 of file FormFactorItems.cpp.

307 {
308  m_length.init("Length", "Length of the rectangular base", 36.0, Unit::nanometer, "length");
309  m_width.init("Width", "Width of the rectangular base", 25.0, Unit::nanometer, "width");
310  m_height.init("Height", "Height of the ripple", 14.0, Unit::nanometer, "height");
311  m_asymmetry.init("Asymmetry", "Asymmetry length of the triangular profile", 3.0,
312  Unit::nanometer, "asymmetry");
313 }
@ nanometer

References nanometer.

Member Function Documentation

◆ createFormFactor()

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

Implements FormFactorItem.

Definition at line 315 of file FormFactorItems.cpp.

316 {
317  return std::make_unique<SawtoothRippleBox>(length(), width(), height(), asymmetry());
318 }

◆ geometryValues()

DoubleDescriptors SawtoothRippleBoxItem::geometryValues ( ) const
inlineoverridevirtual

Implements FormFactorItem.

Definition at line 352 of file FormFactorItems.h.

353  {
354  return {length(), width(), height(), asymmetry()};
355  }

◆ serializationProperties()

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

Implements FormFactorItem.

Definition at line 356 of file FormFactorItems.h.

357  {
358  return {&m_length, &m_width, &m_height, &m_asymmetry};
359  }

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