BornAgain
1.19.79
Simulate and fit neutron and x-ray scattering at grazing incidence
|
The ParameterContainerItem is a top item to hold all ParameterItem, represents an entry point to parameter tuning tree. Part of JobItem.
Definition at line 81 of file ParameterTreeItems.h.
Public Member Functions | |
ParameterContainerItem () | |
ParameterItem * | findParameterItem (const QString &link) const |
QObject * | parameterTreeRoot () |
void | readContentFrom (QXmlStreamReader *reader) |
void | restoreBackupValues () |
void | setBackupValue (const QString &link, double d) |
void | writeContentTo (QXmlStreamWriter *writer) const |
Private Member Functions | |
void | restoreBackupValue (QObject *item) |
Private Attributes | |
QMap< QString, double > | m_backupValues |
std::unique_ptr< QObject > | m_parameterTreeRoot |
ParameterContainerItem::ParameterContainerItem | ( | ) |
Definition at line 148 of file ParameterTreeItems.cpp.
References m_parameterTreeRoot.
ParameterItem * ParameterContainerItem::findParameterItem | ( | const QString & | link | ) | const |
Definition at line 215 of file ParameterTreeItems.cpp.
References m_parameterTreeRoot.
Referenced by FitParameterContainerItem::setValuesInParameterContainer().
QObject * ParameterContainerItem::parameterTreeRoot | ( | ) |
Definition at line 220 of file ParameterTreeItems.cpp.
References m_parameterTreeRoot.
void ParameterContainerItem::readContentFrom | ( | QXmlStreamReader * | reader | ) |
Definition at line 167 of file ParameterTreeItems.cpp.
References m_backupValues, GUI::Session::XML::readAttribute(), DeserializationException::tooNew(), DeserializationException::tooOld(), XML::Tags::Value(), and GUI::Session::XML::Version().
Referenced by JobItem::readNonSessionItems().
|
private |
Definition at line 198 of file ParameterTreeItems.cpp.
References m_backupValues.
Referenced by restoreBackupValues().
void ParameterContainerItem::restoreBackupValues | ( | ) |
Definition at line 209 of file ParameterTreeItems.cpp.
References m_parameterTreeRoot, and restoreBackupValue().
Referenced by JobModel::restore().
void ParameterContainerItem::setBackupValue | ( | const QString & | link, |
double | d | ||
) |
Definition at line 193 of file ParameterTreeItems.cpp.
References m_backupValues.
Referenced by ParameterTreeBuilder::addParameterItem().
void ParameterContainerItem::writeContentTo | ( | QXmlStreamWriter * | writer | ) | const |
Definition at line 153 of file ParameterTreeItems.cpp.
References m_backupValues, XML::Tags::Value(), GUI::Session::XML::Version(), and GUI::Session::XML::writeAttribute().
Referenced by JobItem::writeNonSessionItems().
|
private |
Definition at line 98 of file ParameterTreeItems.h.
Referenced by readContentFrom(), restoreBackupValue(), setBackupValue(), and writeContentTo().
|
private |
Definition at line 99 of file ParameterTreeItems.h.
Referenced by ParameterContainerItem(), findParameterItem(), parameterTreeRoot(), and restoreBackupValues().