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

Description

Definition at line 515 of file FormFactorItems.h.

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

Public Member Functions

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

Constructor & Destructor Documentation

◆ PlatonicTetrahedronItem()

PlatonicTetrahedronItem::PlatonicTetrahedronItem ( )

Definition at line 462 of file FormFactorItems.cpp.

463 {
464  m_edge.init("Edge", "Length of the edge", 10.0, Unit::nanometer, "edge");
465 }
@ nanometer

References nanometer.

Member Function Documentation

◆ createFormFactor()

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

Implements FormFactorItem.

Definition at line 467 of file FormFactorItems.cpp.

468 {
469  return std::make_unique<PlatonicTetrahedron>(edge());
470 }

◆ geometryValues()

DoubleDescriptors PlatonicTetrahedronItem::geometryValues ( ) const
inlineoverridevirtual

Implements FormFactorItem.

Definition at line 522 of file FormFactorItems.h.

522 { return {edge()}; }

◆ serializationProperties()

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

Implements FormFactorItem.

Definition at line 523 of file FormFactorItems.h.

523 { return {&m_edge}; }

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