|
BornAgain
1.19.79
Simulate and fit neutron and x-ray scattering at grazing incidence
|
Main model to hold sample items.
Definition at line 25 of file MultiLayerItems.h.
Public Member Functions | |
| ~MultiLayerItems () | |
| MultiLayerItem * | addMultiLayer () |
| Adds a sample and returns the new item. More... | |
| void | addMultiLayer (MultiLayerItem *sample) |
| void | removeMultiLayer (MultiLayerItem *sample) |
| QVector< MultiLayerItem * > | sampleItems () const |
| QStringList | sampleNames () const |
| void | serialize (Streamer &s) |
Private Attributes | |
| QVector< MultiLayerItem * > | m_samples |
| MultiLayerItems::~MultiLayerItems | ( | ) |
| MultiLayerItem * MultiLayerItems::addMultiLayer | ( | ) |
Adds a sample and returns the new item.
Definition at line 31 of file MultiLayerItems.cpp.
References m_samples.
Referenced by SampleListModel::createSample(), SampleListModel::createSampleFromExamples(), and SampleListModel::createSampleFromPython().
| void MultiLayerItems::addMultiLayer | ( | MultiLayerItem * | sample | ) |
Definition at line 37 of file MultiLayerItems.cpp.
References m_samples.
| void MultiLayerItems::removeMultiLayer | ( | MultiLayerItem * | sample | ) |
Definition at line 42 of file MultiLayerItems.cpp.
References m_samples.
Referenced by SampleListModel::removeSample().
| QVector< MultiLayerItem * > MultiLayerItems::sampleItems | ( | ) | const |
Definition at line 26 of file MultiLayerItems.cpp.
References m_samples.
Referenced by SampleListModel::createSample(), SampleListModel::createSampleFromExamples(), SampleListModel::createSampleFromPython(), SampleListModel::indexForItem(), SampleListModel::itemForIndex(), ProjectSettingsView::onSingleSampleRadioToggled(), SampleListModel::rowCount(), SimulationView::sampleItems(), and SampleListView::selectFirstSample().
| QStringList MultiLayerItems::sampleNames | ( | ) | const |
Definition at line 48 of file MultiLayerItems.cpp.
References m_samples.
Referenced by SampleListModel::createSample(), and SimulationView::writeOptionsToUI().
| void MultiLayerItems::serialize | ( | Streamer & | s | ) |
Definition at line 56 of file MultiLayerItems.cpp.
References Streamer::assertVersion(), m_samples, and Serialize::rwVector().
Referenced by ProjectDocument::readProject(), and ProjectDocument::writeTo().
|
private |
Definition at line 40 of file MultiLayerItems.h.
Referenced by ~MultiLayerItems(), addMultiLayer(), removeMultiLayer(), sampleItems(), sampleNames(), and serialize().