BornAgain  1.19.79
Simulate and fit neutron and x-ray scattering at grazing incidence
Interference2DAbstractLatticeItem Class Referenceabstract

Description

Definition at line 65 of file InterferenceItems.h.

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

Public Member Functions

virtual std::unique_ptr< IInterference > createInterference () const =0
 
SelectionDescriptor< Lattice2DItem * > latticeType () const
 
DoubleDescriptor positionVariance () const
 
virtual void serialize (Streamer &s)=0
 
void setLatticeType (Lattice2DItem *p)
 
void setXiIntegration (bool xiIntegration)
 
bool xiIntegration () const
 

Protected Member Functions

 Interference2DAbstractLatticeItem (bool xiIntegration)
 

Protected Attributes

SelectionProperty< Lattice2DItem * > m_latticeType
 
DoubleProperty m_positionVariance
 
bool m_xiIntegration
 

Constructor & Destructor Documentation

◆ Interference2DAbstractLatticeItem()

Interference2DAbstractLatticeItem::Interference2DAbstractLatticeItem ( bool  xiIntegration)
explicitprotected

Definition at line 114 of file InterferenceItems.cpp.

116 {
117  m_latticeType.init<Lattice2DItemCatalog>("Lattice type", "", "latticeType");
119 }
SelectionProperty< Lattice2DItem * > m_latticeType
void set(T t, bool callInitializer=false)
Directly set the new item.
void init(const QString &label, const QString &tooltip, const QString &persistentTag, ArgsForCreation... argsForCreation)
Initialize by means of a catalog class and optional creation arguments.

References SelectionProperty< T >::init(), m_latticeType, and SelectionProperty< T >::set().

Here is the call graph for this function:

Member Function Documentation

◆ createInterference()

virtual std::unique_ptr<IInterference> InterferenceItem::createInterference ( ) const
pure virtualinherited

◆ latticeType()

◆ positionVariance()

◆ serialize()

void InterferenceItem::serialize ( Streamer s)
pure virtualinherited

Implemented in InterferenceRadialParaCrystalItem, InterferenceHardDiskItem, InterferenceFinite2DLatticeItem, Interference2DParaCrystalItem, Interference2DLatticeItem, and Interference1DLatticeItem.

Definition at line 36 of file InterferenceItems.cpp.

37 {
38  s.assertVersion(0);
40 }
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(), InterferenceItem::m_positionVariance, and Serialize::rwProperty().

Here is the call graph for this function:

◆ setLatticeType()

void Interference2DAbstractLatticeItem::setLatticeType ( Lattice2DItem p)

Definition at line 99 of file InterferenceItems.cpp.

100 {
101  m_latticeType.set(p);
102 }

References m_latticeType, and SelectionProperty< T >::set().

Here is the call graph for this function:

◆ setXiIntegration()

void Interference2DAbstractLatticeItem::setXiIntegration ( bool  xiIntegration)

Definition at line 109 of file InterferenceItems.cpp.

110 {
112 }

References m_xiIntegration, and xiIntegration().

Referenced by SampleEditorController::setIntegrateOverXi().

Here is the call graph for this function:

◆ xiIntegration()

Member Data Documentation

◆ m_latticeType

◆ m_positionVariance

◆ m_xiIntegration

bool Interference2DAbstractLatticeItem::m_xiIntegration
protected

The documentation for this class was generated from the following files: