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

Description

Definition at line 326 of file FormFactorItems.h.

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

Public Member Functions

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

Constructor & Destructor Documentation

◆ CosineRippleLorentzItem()

CosineRippleLorentzItem::CosineRippleLorentzItem ( )

Definition at line 292 of file FormFactorItems.cpp.

293 {
294  m_length.init("Length", "Length of the rectangular base", 27.0, Unit::nanometer, "length");
295  m_width.init("Width", "Width of the rectangular base", 20.0, Unit::nanometer, "width");
296  m_height.init("Height", "Height of the ripple", 14.0, Unit::nanometer, "height");
297 }
@ nanometer

References nanometer.

Member Function Documentation

◆ createFormFactor()

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

Implements FormFactorItem.

Definition at line 299 of file FormFactorItems.cpp.

300 {
301  return std::make_unique<CosineRippleLorentz>(length(), width(), height());
302 }

◆ geometryValues()

DoubleDescriptors CosineRippleLorentzItem::geometryValues ( ) const
inlineoverridevirtual

Implements FormFactorItem.

Definition at line 335 of file FormFactorItems.h.

335 { return {length(), width(), height()}; }

◆ serializationProperties()

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

Implements FormFactorItem.

Definition at line 336 of file FormFactorItems.h.

337  {
338  return {&m_length, &m_width, &m_height};
339  }

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