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

Description

Definition at line 26 of file Lattice2DItems.h.

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

Public Member Functions

virtual ~Lattice2DItem ()=default
 
virtual std::unique_ptr< Lattice2D > createLattice () const =0
 
virtual DoubleDescriptors geometryValues (bool withRotationAngle) const =0
 
DoubleDescriptor latticeRotationAngle () const
 
virtual void serialize (Streamer &s)=0
 
void setLatticeRotationAngle (double angle)
 
double unitCellArea () const
 

Protected Member Functions

 Lattice2DItem ()
 

Protected Attributes

DoubleProperty m_latticeRotationAngle
 

Constructor & Destructor Documentation

◆ Lattice2DItem()

Lattice2DItem::Lattice2DItem ( )
protected

Definition at line 21 of file Lattice2DItems.cpp.

22 {
24  "Xi", "Rotation of lattice with respect to x-axis of reference frame (beam direction)", 0.0,
25  Unit::degree, "xi");
26 }
@ degree
void init(const QString &label, const QString &tooltip, double value, const variant< QString, Unit > &unit, const QString &persistentTag)
DoubleProperty m_latticeRotationAngle

References degree, DoubleProperty::init(), and m_latticeRotationAngle.

Here is the call graph for this function:

◆ ~Lattice2DItem()

virtual Lattice2DItem::~Lattice2DItem ( )
virtualdefault

Member Function Documentation

◆ createLattice()

◆ geometryValues()

virtual DoubleDescriptors Lattice2DItem::geometryValues ( bool  withRotationAngle) const
pure virtual

◆ latticeRotationAngle()

DoubleDescriptor Lattice2DItem::latticeRotationAngle ( ) const

◆ serialize()

virtual void Lattice2DItem::serialize ( Streamer s)
pure virtual

◆ setLatticeRotationAngle()

void Lattice2DItem::setLatticeRotationAngle ( double  angle)

Definition at line 38 of file Lattice2DItems.cpp.

39 {
41 }
void set(double d)
Set the contained value.

References m_latticeRotationAngle, and DoubleProperty::set().

Here is the call graph for this function:

◆ unitCellArea()

double Lattice2DItem::unitCellArea ( ) const

Definition at line 28 of file Lattice2DItems.cpp.

29 {
30  return createLattice()->unitCellArea();
31 }
virtual std::unique_ptr< Lattice2D > createLattice() const =0

References createLattice().

Referenced by ParticleLayoutItem::totalDensityValue().

Here is the call graph for this function:

Member Data Documentation

◆ m_latticeRotationAngle


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