BornAgain
1.19.79
Simulate and fit neutron and x-ray scattering at grazing incidence
|
Contains set of functions to extend JobModel functionality. Handles setup of JobItem in fitting context.
Functions | |
void | copyRealDataItem (JobItem *jobItem, const RealDataItem *realDataItem) |
Copy RealDataItem to jobItem intended for fitting. More... | |
void | initDataView (JobItem *job_item) |
Initializes Data1DViewItem and assigns it to the passed JobItem. More... | |
void | setupJobItemForFit (JobItem *jobItem, const RealDataItem *realDataItem) |
Setups JobItem for fit. More... | |
void | setupJobItemInstrument (JobItem *jobItem, const InstrumentItem *from) |
Properly copies instrument into job item. More... | |
void | setupJobItemOutput (JobItem *jobItem) |
Setup items intended for storing results of the job. More... | |
void GUI::Model::JobFunctions::copyRealDataItem | ( | JobItem * | jobItem, |
const RealDataItem * | realDataItem | ||
) |
Copy RealDataItem to jobItem intended for fitting.
Definition at line 163 of file JobFunctions.cpp.
References JobItem::copyRealDataIntoJob(), RealDataItem::dataItem(), DataItem::getDatafield(), JobItem::getIdentifier(), RealDataItem::hasNativeData(), JobItem::jobName(), GUI::Model::FilenameUtils::jobNativeDataFileName(), GUI::Model::FilenameUtils::jobReferenceFileName(), RealDataItem::nativeData(), RealDataItem::nativeDatafield(), DataItem::setDatafield(), DataItem::setFileName(), and RealDataItem::setNativeDatafield().
Referenced by setupJobItemForFit().
void GUI::Model::JobFunctions::initDataView | ( | JobItem * | job_item | ) |
Initializes Data1DViewItem and assigns it to the passed JobItem.
Definition at line 98 of file JobFunctions.cpp.
References DataPropertyContainer::addItem(), GUI::Model::JobItemUtils::availableUnits(), InstrumentItem::createCoordSystem(), JobItem::createDataViewItem(), Data1DViewItem::createPropertyContainerItem(), RealDataItem::dataItem(), JobItem::dataItem(), JobItem::dataItemView(), JobItem::instrumentItem(), InstrumentItem::is(), JobItem::isValidForFitting(), and JobItem::realDataItem().
Referenced by setupJobItemForFit().
void GUI::Model::JobFunctions::setupJobItemForFit | ( | JobItem * | jobItem, |
const RealDataItem * | realDataItem | ||
) |
Setups JobItem for fit.
Definition at line 146 of file JobFunctions.cpp.
References copyRealDataItem(), initDataView(), JobItem::instrumentItem(), and InstrumentItem::is().
Referenced by JobModel::addJob().
void GUI::Model::JobFunctions::setupJobItemInstrument | ( | JobItem * | jobItem, |
const InstrumentItem * | from | ||
) |
Properly copies instrument into job item.
Definition at line 117 of file JobFunctions.cpp.
References JobItem::copyInstrumentIntoJob(), InstrumentItem::instrumentName(), InstrumentItem::setInstrumentName(), JobItem::setInstrumentName(), and GUI::View::PropertyEditorFactory::toString().
Referenced by JobModel::addJob().
void GUI::Model::JobFunctions::setupJobItemOutput | ( | JobItem * | jobItem | ) |
Setup items intended for storing results of the job.
Definition at line 127 of file JobFunctions.cpp.
References JobItem::instrumentItem(), InstrumentItem::is(), and JobItem::setDataType().
Referenced by JobModel::addJob().