31 QVector<SessionItem*> result;
33 for (
auto* realData : topItems<RealDataItem>()) {
34 if (
auto* intensityItem = realData->dataItem())
35 result.push_back(intensityItem);
36 if (
auto* native_data_item = realData->nativeData())
37 result.push_back(native_data_item);
59 auto* r = insertItem<RealDataItem>();
60 r->initAsSpecularItem();
66 auto* r = insertItem<RealDataItem>();
67 r->initAsIntensityItem();
78 return topItems<RealDataItem>();
106 result.append(item->dataName());
Defines class RealDataItem.
Defines class RealDataModel.
Defines reader and writer classes for SessionModel.
The service to collect messages from different senders.
Provides access to experimental data, for display and fitting. Owns an AbstractDataLoader.
bool isSpecularData() const
QVector< RealDataItem * > realDataItems2D() const
RealDataItem * insertIntensityDataItem()
void readFrom(QXmlStreamReader *reader, MessageService *messageService=nullptr) override
void onRowsChange(const QModelIndex &parent, int, int)
void realDataAddedOrRemoved()
QVector< RealDataItem * > realDataItems() const
RealDataItem * insertDataItem(int rank)
void removeItem(SessionItem *item)
RealDataModel(QObject *parent=nullptr)
QVector< RealDataItem * > realDataItems1D() const
RealDataItem * insertSpecularDataItem()
QStringList realDataNames() const
void remove(RealDataItem *item)
QVector< SessionItem * > nonXMLItems() const override
Base class for a GUI data collection. A collection is e.g. all real data (RealDataModel)....
QModelIndex parent(const QModelIndex &child) const override
virtual void readFrom(QXmlStreamReader *reader, MessageService *messageService=nullptr)
constexpr auto RealDataModelTag("RealDataModel")