BornAgain
1.19.0
Simulate and fit neutron and x-ray scattering at grazing incidence
|
The SimulationSetupAssistant class provides sample, instrument and real data validation before submitting the job. More...
Public Member Functions | |
SimulationSetupAssistant () | |
Returns true if given setup is valid for submitting the job. More... | |
bool | isValidSimulationSetup (const MultiLayerItem *multiLayerItem, const InstrumentItem *instrumentItem, const RealDataItem *realData=0) |
Private Member Functions | |
void | checkFittingSetup (const InstrumentItem *instrumentItem, const RealDataItem *realData) |
Check if setup is suitable for fitting. More... | |
void | checkInstrumentItem (const InstrumentItem *instrumentItem) |
void | checkMultiLayerItem (const MultiLayerItem *multiLayerItem) |
void | clear () |
QString | composeMessage () |
Composes the error message for message box. More... | |
Private Attributes | |
bool | m_isValid |
QStringList | m_messages |
The SimulationSetupAssistant class provides sample, instrument and real data validation before submitting the job.
Definition at line 27 of file SimulationSetupAssistant.h.
SimulationSetupAssistant::SimulationSetupAssistant | ( | ) |
Returns true if given setup is valid for submitting the job.
Definition at line 24 of file SimulationSetupAssistant.cpp.
|
private |
Check if setup is suitable for fitting.
In the case when there is a realData defined, its axes will be compared with current detector item.
Definition at line 74 of file SimulationSetupAssistant.cpp.
References InstrumentItem::alignedWith(), m_isValid, and m_messages.
Referenced by isValidSimulationSetup().
|
private |
Definition at line 63 of file SimulationSetupAssistant.cpp.
References m_isValid, and m_messages.
Referenced by isValidSimulationSetup().
|
private |
Definition at line 49 of file SimulationSetupAssistant.cpp.
References SampleValidator::getValidationMessage(), SampleValidator::isValidMultiLayer(), m_isValid, and m_messages.
Referenced by isValidSimulationSetup().
|
private |
Definition at line 43 of file SimulationSetupAssistant.cpp.
References m_isValid, and m_messages.
Referenced by isValidSimulationSetup().
|
private |
Composes the error message for message box.
Definition at line 87 of file SimulationSetupAssistant.cpp.
References m_messages.
Referenced by isValidSimulationSetup().
bool SimulationSetupAssistant::isValidSimulationSetup | ( | const MultiLayerItem * | multiLayerItem, |
const InstrumentItem * | instrumentItem, | ||
const RealDataItem * | realData = 0 |
||
) |
Definition at line 26 of file SimulationSetupAssistant.cpp.
References checkFittingSetup(), checkInstrumentItem(), checkMultiLayerItem(), clear(), composeMessage(), m_isValid, and GUIHelpers::warning().
Referenced by SimulationSetupWidget::onExportToPythonScript(), and SimulationSetupWidget::onRunSimulation().
|
private |
Definition at line 42 of file SimulationSetupAssistant.h.
Referenced by checkFittingSetup(), checkInstrumentItem(), checkMultiLayerItem(), clear(), and isValidSimulationSetup().
|
private |
Definition at line 43 of file SimulationSetupAssistant.h.
Referenced by checkFittingSetup(), checkInstrumentItem(), checkMultiLayerItem(), clear(), and composeMessage().