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

Description

Definition at line 188 of file FormFactorItems.h.

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

Public Member Functions

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

Constructor & Destructor Documentation

◆ EllipsoidalCylinderItem()

EllipsoidalCylinderItem::EllipsoidalCylinderItem ( )

Definition at line 153 of file FormFactorItems.cpp.

154 {
155  m_radiusX.init("Radius x", "Radius of the ellipse base in the x-direction", 8.0,
156  Unit::nanometer, "radiusX");
157  m_radiusY.init("Radius y", "Radius of the ellipse base in the y-direction", 13.0,
158  Unit::nanometer, "radiusY");
159  m_height.init("Height", "Height of the ellipsoidal cylinder", 16.0, Unit::nanometer, "height");
160 }
@ nanometer

References nanometer.

Member Function Documentation

◆ createFormFactor()

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

Implements FormFactorItem.

Definition at line 162 of file FormFactorItems.cpp.

163 {
164  return std::make_unique<EllipsoidalCylinder>(radiusX(), radiusY(), height());
165 }

◆ geometryValues()

DoubleDescriptors EllipsoidalCylinderItem::geometryValues ( ) const
inlineoverridevirtual

Implements FormFactorItem.

Definition at line 197 of file FormFactorItems.h.

197 { return {radiusX(), radiusY(), height()}; }

◆ serializationProperties()

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

Implements FormFactorItem.

Definition at line 198 of file FormFactorItems.h.

199  {
200  return {&m_radiusX, &m_radiusY, &m_height};
201  }

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