BornAgain
1.19.79
Simulate and fit neutron and x-ray scattering at grazing incidence
|
Definition at line 111 of file InstrumentItems.h.
Public Member Functions | |
SpecularInstrumentItem () | |
bool | alignedWith (const RealDataItem *item) const override |
BackgroundItem * | backgroundItem () const |
SelectionDescriptor< BackgroundItem * > | backgroundSelection () const |
SpecularBeamItem * | beamItem () const override |
ICoordSystem * | createCoordSystem () const override |
InstrumentItem * | createCopy () const |
Creates an exact copy; also ID is the same! More... | |
QString | defaultName () const override |
The default user visible name when creating an instrument. More... | |
QString | description () const |
DOUBLE_PROPERTY (analyzerTotalTransmission, AnalyzerTotalTransmission) | |
QString | id () const |
virtual void | importMasks (const MaskContainerItem *) |
QString | instrumentName () const |
QString | instrumentType () const override |
The type as how to show it on the UI. Do not use for type checking or similar! More... | |
template<typename T > | |
bool | is () const |
virtual void | serialize (Streamer &s) |
template<typename T > | |
T * | setBackgroundType () |
void | setDescription (const QString &description) |
void | setId (const QString &id) |
void | setInstrumentName (const QString &instrumentName) |
void | setWithPolarizerAnalyzer (bool with) |
std::vector< int > | shape () const override |
void | updateToRealData (const RealDataItem *item) override |
VECTOR_PROPERTY (analyzerDirection, AnalyzerDirection) | |
VECTOR_PROPERTY (polarization, Polarization) | |
bool | withPolarizerAnalyzer () const |
Protected Member Functions | |
template<typename T > | |
T * | beam () const |
Protected Attributes | |
SelectionProperty< BackgroundItem * > | m_backgroundItem |
std::unique_ptr< BeamItem > | m_beamItem |
QString | m_description |
QString | m_id |
QString | m_name |
bool | m_withPolarizerAnalyzer |
SpecularInstrumentItem::SpecularInstrumentItem | ( | ) |
Definition at line 169 of file InstrumentItems.cpp.
References InstrumentItem::m_beamItem.
|
overridevirtual |
Reimplemented from InstrumentItem.
Definition at line 195 of file InstrumentItems.cpp.
References SpecularBeamInclinationItem::alphaAxis(), beamItem(), RealDataItem::hasNativeData(), SpecularBeamItem::inclinationAngleItem(), RealDataItem::nativeDatafield(), RealDataItem::nativeDataUnits(), RealDataItem::shape(), shape(), and SpecularBeamInclinationItem::uniformAlphaAxisSelected().
|
inherited |
Definition at line 119 of file InstrumentItems.cpp.
References SelectionProperty< T >::get(), and InstrumentItem::m_backgroundItem.
|
inherited |
Definition at line 124 of file InstrumentItems.cpp.
References InstrumentItem::m_backgroundItem.
Referenced by EnvironmentEditor::EnvironmentEditor(), and EnvironmentEditor::createBackgroundWidgets().
|
protectedinherited |
Definition at line 145 of file InstrumentItems.cpp.
References InstrumentItem::m_beamItem.
Referenced by createCoordSystem(), Instrument2DItem::createInstrument(), Instrument2DItem::createOffspecSimulation(), and Instrument2DItem::createScatteringSimulation().
|
overridevirtual |
Reimplemented from InstrumentItem.
Definition at line 174 of file InstrumentItems.cpp.
Referenced by SpecularInstrumentEditor::SpecularInstrumentEditor(), alignedWith(), createCoordSystem(), shape(), and updateToRealData().
|
overridevirtual |
Implements InstrumentItem.
Definition at line 224 of file InstrumentItems.cpp.
References InstrumentItem::beam(), beamItem(), GUI::Util::CoordName::coordFromName(), BeamItem::createBeam(), and SpecularBeamItem::inclinationAxis().
Referenced by PointwiseAxisItem::createAxis(), and PointwiseAxisItem::updateIndicators().
|
inherited |
Creates an exact copy; also ID is the same!
Definition at line 76 of file InstrumentItems.cpp.
References GUI::Util::copyContents(), InstrumentItemCatalog::create(), and InstrumentItemCatalog::type().
Referenced by JobItem::copyInstrumentIntoJob(), and InstrumentCollection::insertCopy().
|
overridevirtual |
The default user visible name when creating an instrument.
Implements InstrumentItem.
Definition at line 245 of file InstrumentItems.cpp.
|
inherited |
Definition at line 104 of file InstrumentItems.cpp.
References InstrumentItem::m_description.
Referenced by InstrumentItem::setDescription().
|
inherited |
|
inherited |
Definition at line 84 of file InstrumentItems.cpp.
References InstrumentItem::m_id.
Referenced by RealDataItem::linkToInstrument(), LinkInstrumentManager::onInstrumentChanged(), and InstrumentItem::setId().
|
inlinevirtualinherited |
|
inherited |
Definition at line 99 of file InstrumentItems.cpp.
References InstrumentItem::m_name.
Referenced by InstrumentListModel::copyInstrument(), InstrumentListModel::data(), InstrumentLibraryEditor::execAdd(), InstrumentItem::setInstrumentName(), InstrumentsEditController::setInstrumentName(), and GUI::Model::JobFunctions::setupJobItemInstrument().
|
overridevirtual |
The type as how to show it on the UI. Do not use for type checking or similar!
Implements InstrumentItem.
Definition at line 240 of file InstrumentItems.cpp.
|
inlineinherited |
Definition at line 61 of file InstrumentItems.h.
Referenced by JobResultsPresenter::defaultActivePresentationsOfInstrument(), JobResultsPresenter::defaultPresentationOfInstrument(), JobResultsPresenter::fitPresentationOfInstrument(), GUI::Model::JobFunctions::initDataView(), InstrumentsTreeModel::instrumentType(), JobItem::isSpecularJob(), GUI::Model::JobFunctions::setupJobItemForFit(), and GUI::Model::JobFunctions::setupJobItemOutput().
|
virtualinherited |
Reimplemented in OffspecInstrumentItem, Instrument2DItem, and DepthProbeInstrumentItem.
Definition at line 150 of file InstrumentItems.cpp.
References Streamer::assertVersion(), InstrumentItem::m_backgroundItem, InstrumentItem::m_beamItem, InstrumentItem::m_description, InstrumentItem::m_id, InstrumentItem::m_name, InstrumentItem::m_withPolarizerAnalyzer, Serialize::rwClass(), Serialize::rwProperty(), and Serialize::rwValue().
|
inherited |
Definition at line 205 of file InstrumentItems.h.
References SelectionProperty< T >::get(), InstrumentItem::m_backgroundItem, and SelectionProperty< T >::set().
|
inherited |
Definition at line 109 of file InstrumentItems.cpp.
References InstrumentItem::description(), and InstrumentItem::m_description.
Referenced by InstrumentView::onInstrumentdescriptionEdited(), and InstrumentsTreeModel::setData().
|
inherited |
Definition at line 89 of file InstrumentItems.cpp.
References InstrumentItem::id(), and InstrumentItem::m_id.
Referenced by InstrumentCollection::insertCopy().
|
inherited |
Definition at line 94 of file InstrumentItems.cpp.
References InstrumentItem::instrumentName(), and InstrumentItem::m_name.
Referenced by InstrumentsEditController::addCopy(), InstrumentsTreeModel::setData(), InstrumentsEditController::setInstrumentName(), and GUI::Model::JobFunctions::setupJobItemInstrument().
|
inherited |
Definition at line 139 of file InstrumentItems.cpp.
References InstrumentItem::m_withPolarizerAnalyzer.
Referenced by PolarizationAnalysisEditor::PolarizationAnalysisEditor().
|
overridevirtual |
Implements InstrumentItem.
Definition at line 179 of file InstrumentItems.cpp.
References beamItem(), BasicAxisItem::binCount(), and SpecularBeamItem::inclinationAxis().
Referenced by alignedWith(), and updateToRealData().
|
overridevirtual |
Implements InstrumentItem.
Definition at line 185 of file InstrumentItems.cpp.
References beamItem(), Error, RealDataItem::nativeDatafield(), RealDataItem::nativeDataUnits(), RealDataItem::shape(), shape(), and SpecularBeamItem::updateToData().
|
inherited |
|
inherited |
|
inherited |
Definition at line 134 of file InstrumentItems.cpp.
References InstrumentItem::m_withPolarizerAnalyzer.
Referenced by PolarizationAnalysisEditor::PolarizationAnalysisEditor(), and ParameterTreeBuilder::addPolarization().
|
protectedinherited |
Definition at line 106 of file InstrumentItems.h.
Referenced by InstrumentItem::InstrumentItem(), InstrumentItem::backgroundItem(), InstrumentItem::backgroundSelection(), InstrumentItem::serialize(), and InstrumentItem::setBackgroundType().
|
protectedinherited |
Definition at line 107 of file InstrumentItems.h.
Referenced by DepthProbeInstrumentItem::DepthProbeInstrumentItem(), Instrument2DItem::Instrument2DItem(), SpecularInstrumentItem(), InstrumentItem::beam(), InstrumentItem::beamItem(), and InstrumentItem::serialize().
|
protectedinherited |
Definition at line 104 of file InstrumentItems.h.
Referenced by InstrumentItem::description(), InstrumentItem::serialize(), and InstrumentItem::setDescription().
|
protectedinherited |
Definition at line 102 of file InstrumentItems.h.
Referenced by InstrumentItem::InstrumentItem(), InstrumentItem::id(), InstrumentItem::serialize(), and InstrumentItem::setId().
|
protectedinherited |
Definition at line 103 of file InstrumentItems.h.
Referenced by InstrumentItem::instrumentName(), InstrumentItem::serialize(), and InstrumentItem::setInstrumentName().
|
protectedinherited |
Definition at line 105 of file InstrumentItems.h.
Referenced by InstrumentItem::serialize(), InstrumentItem::setWithPolarizerAnalyzer(), and InstrumentItem::withPolarizerAnalyzer().