BornAgain
1.19.79
Simulate and fit neutron and x-ray scattering at grazing incidence
|
Definition at line 94 of file BeamItems.h.
Public Member Functions | |
GISASBeamItem () | |
BeamAzimuthalAngleItem * | azimuthalAngleItem () const |
std::unique_ptr< Beam > | createBeam () const |
DOUBLE_PROPERTY (intensity, Intensity) | |
double | getAzimuthalAngle () const |
double | getInclinationAngle () const override |
virtual BeamDistributionItem * | inclinationAngleItem () const |
virtual void | serialize (Streamer &s) |
void | setAzimuthalAngle (double value) |
virtual void | setInclinationAngle (double value) |
void | setInclinationAngleGetter (std::function< double()> getter) |
Explicitly set a getter function for the inclination angle. More... | |
void | setWavelength (double value) |
double | wavelength () const |
BeamWavelengthItem * | wavelengthItem () const |
Public Attributes | |
std::function< double()> | m_inclinationAngleGetter |
Protected Member Functions | |
template<typename T > | |
void | initInclinationAngle () |
template<typename T > | |
void | initWavelength () |
Protected Attributes | |
std::unique_ptr< BeamAzimuthalAngleItem > | m_azimuthalAngleItem |
std::unique_ptr< BeamDistributionItem > | m_inclinationAngleItem |
std::unique_ptr< BeamWavelengthItem > | m_wavelengthItem |
GISASBeamItem::GISASBeamItem | ( | ) |
Definition at line 208 of file BeamItems.cpp.
|
inherited |
Definition at line 92 of file BeamItems.cpp.
References BeamItem::m_azimuthalAngleItem.
Referenced by GISASBeamEditor::GISASBeamEditor().
|
inherited |
Definition at line 97 of file BeamItems.cpp.
References BeamItem::getAzimuthalAngle(), BeamItem::getInclinationAngle(), and BeamItem::wavelength().
Referenced by SpecularInstrumentItem::createCoordSystem(), Instrument2DItem::createInstrument(), Instrument2DItem::createOffspecSimulation(), and Instrument2DItem::createScatteringSimulation().
|
inherited |
|
inherited |
Definition at line 82 of file BeamItems.cpp.
References BeamItem::m_azimuthalAngleItem.
Referenced by BeamItem::createBeam().
|
overridevirtual |
Implements BeamItem.
Definition at line 214 of file BeamItems.cpp.
References BeamItem::inclinationAngleItem(), and m_inclinationAngleGetter.
|
virtualinherited |
Reimplemented in SpecularBeamItem.
Definition at line 77 of file BeamItems.cpp.
References BeamItem::m_inclinationAngleItem.
Referenced by GISASBeamEditor::GISASBeamEditor(), getInclinationAngle(), and SpecularBeamItem::inclinationAngleItem().
|
protectedinherited |
Definition at line 116 of file BeamItems.cpp.
References BeamItem::m_inclinationAngleItem.
|
protectedinherited |
Definition at line 110 of file BeamItems.cpp.
References BeamItem::m_wavelengthItem.
|
virtualinherited |
Reimplemented in SpecularBeamItem.
Definition at line 48 of file BeamItems.cpp.
References Streamer::assertVersion(), BeamItem::m_azimuthalAngleItem, BeamItem::m_inclinationAngleItem, BeamItem::m_wavelengthItem, Serialize::rwClass(), and Serialize::rwProperty().
|
inherited |
Definition at line 87 of file BeamItems.cpp.
References BeamItem::m_azimuthalAngleItem.
|
virtualinherited |
Reimplemented in SpecularBeamItem.
Definition at line 72 of file BeamItems.cpp.
References BeamItem::m_inclinationAngleItem.
Referenced by SpecularBeamItem::setInclinationAngle().
void GISASBeamItem::setInclinationAngleGetter | ( | std::function< double()> | getter | ) |
Explicitly set a getter function for the inclination angle.
If a getter is set, it overrides the behavior in getInclinationAngle(). Helpful if the angle can't be determined from the internal beam parameters, but from external information.
Definition at line 222 of file BeamItems.cpp.
References m_inclinationAngleGetter.
Referenced by OffspecInstrumentItem::OffspecInstrumentItem().
|
inherited |
Definition at line 62 of file BeamItems.cpp.
References BeamItem::m_wavelengthItem.
|
inherited |
Definition at line 57 of file BeamItems.cpp.
References BeamItem::m_wavelengthItem.
Referenced by BeamItem::createBeam(), and SpecularBeamItem::updateWavelength().
|
inherited |
Definition at line 67 of file BeamItems.cpp.
References BeamItem::m_wavelengthItem.
Referenced by GISASBeamEditor::GISASBeamEditor(), SpecularBeamEditor::SpecularBeamEditor(), and SpecularBeamItem::updateWavelength().
|
protectedinherited |
Definition at line 65 of file BeamItems.h.
Referenced by BeamItem::BeamItem(), BeamItem::azimuthalAngleItem(), BeamItem::getAzimuthalAngle(), BeamItem::serialize(), and BeamItem::setAzimuthalAngle().
std::function<double()> GISASBeamItem::m_inclinationAngleGetter |
Definition at line 107 of file BeamItems.h.
Referenced by getInclinationAngle(), and setInclinationAngleGetter().
|
protectedinherited |
Definition at line 66 of file BeamItems.h.
Referenced by SpecularBeamItem::SpecularBeamItem(), BeamItem::inclinationAngleItem(), BeamItem::initInclinationAngle(), BeamItem::serialize(), and BeamItem::setInclinationAngle().
|
protectedinherited |
Definition at line 64 of file BeamItems.h.
Referenced by BeamItem::initWavelength(), BeamItem::serialize(), BeamItem::setWavelength(), BeamItem::wavelength(), and BeamItem::wavelengthItem().