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

Description

Definition at line 109 of file ProfileItems.h.

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

Public Member Functions

std::unique_ptr< IProfile2D > createProfile () const override
 
DoubleDescriptor gamma () const
 
DoubleDescriptor omegaX () const
 
DoubleDescriptor omegaY () const
 
virtual void serialize (Streamer &s)
 
void setGamma (double gamma)
 
void setOmegaX (double omega_x)
 
void setOmegaY (double omega_y)
 
virtual DoubleDescriptors valueDescriptors () const
 

Protected Attributes

DoubleProperty m_gamma
 
DoubleProperty m_omegaX
 
DoubleProperty m_omegaY
 

Member Function Documentation

◆ createProfile()

std::unique_ptr< IProfile2D > Profile2DCauchyItem::createProfile ( ) const
overridevirtual

Implements Profile2DItem.

Definition at line 164 of file ProfileItems.cpp.

165 {
166  return std::make_unique<Profile2DCauchy>(omegaX(), omegaY(), Units::deg2rad(gamma()));
167 }
DoubleDescriptor omegaX() const
DoubleDescriptor gamma() const
DoubleDescriptor omegaY() const

References Profile2DItem::gamma(), Profile2DItem::omegaX(), and Profile2DItem::omegaY().

Here is the call graph for this function:

◆ gamma()

◆ omegaX()

◆ omegaY()

◆ serialize()

void Profile2DItem::serialize ( Streamer s)
virtualinherited

Reimplemented in Profile2DVoigtItem.

Definition at line 119 of file ProfileItems.cpp.

120 {
121  s.assertVersion(0);
125 }
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(), Profile2DItem::m_gamma, Profile2DItem::m_omegaX, Profile2DItem::m_omegaY, and Serialize::rwProperty().

Here is the call graph for this function:

◆ setGamma()

void Profile2DItem::setGamma ( double  gamma)
inherited

Definition at line 152 of file ProfileItems.cpp.

153 {
154  m_gamma.set(gamma);
155 }
void set(double d)
Set the contained value.

References Profile2DItem::gamma(), Profile2DItem::m_gamma, and DoubleProperty::set().

Here is the call graph for this function:

◆ setOmegaX()

void Profile2DItem::setOmegaX ( double  omega_x)
inherited

Definition at line 132 of file ProfileItems.cpp.

133 {
134  m_omegaX.set(omega_x);
135 }

References Profile2DItem::m_omegaX, and DoubleProperty::set().

Here is the call graph for this function:

◆ setOmegaY()

void Profile2DItem::setOmegaY ( double  omega_y)
inherited

Definition at line 142 of file ProfileItems.cpp.

143 {
144  m_omegaY.set(omega_y);
145 }

References Profile2DItem::m_omegaY, and DoubleProperty::set().

Here is the call graph for this function:

◆ valueDescriptors()

DoubleDescriptors Profile2DItem::valueDescriptors ( ) const
virtualinherited

Reimplemented in Profile2DVoigtItem.

Definition at line 157 of file ProfileItems.cpp.

158 {
159  return {omegaX(), omegaY(), gamma()};
160 }

References Profile2DItem::gamma(), Profile2DItem::omegaX(), and Profile2DItem::omegaY().

Referenced by LayerEditorUtils::doubleDescriptorsOfItem().

Here is the call graph for this function:

Member Data Documentation

◆ m_gamma

◆ m_omegaX

◆ m_omegaY


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