32 std::unique_ptr<ItemCatalogue> CreateItemCatalogue()
34 auto result = std::make_unique<ModelView::ItemCatalogue>();
35 result->registerItem<
JobItem>();
36 result->registerItem<CanvasItem>();
37 result->registerItem<SLDCanvasItem>();
45 setItemCatalogue(CreateItemCatalogue());
46 insertItem<JobItem>();
51 return jobItem()->sldViewport();
56 return jobItem()->specularViewport();
61 return jobItem()->diffViewport();
66 jobItem()->updateReferenceGraph(graph);
73 auto specularData = jobItem()->specularData();
75 specularData->setValues(
data.amplitudes);
78 jobItem()->updateDifferenceData();
85 auto sldData = jobItem()->sldData();
88 ->setParameters(
data.sld_real_values.size(),
data.zmin,
data.zmax);
89 sldData->setValues(
data.sld_real_values);
94 return Utils::TopItem<JobItem>(
this);
JobModel(QObject *parent=0)
Item to represent fixed bin axis.
One-dimensional graph representation of Data1DItem.
2D viewport specialized for showing multiple GraphItem's.
Item to represent pointwise axis.
T * item(const std::string &tag) const
Returns first item under given tag casted to a specified type.
Main class to hold hierarchy of SessionItem objects.
virtual QVariant data(const QModelIndex &index, int role) const
Holds a collection of GraphItem's for simultaneous plotting, as well as all information related to pl...
Represents state of QuickSimEditor.
materialitems.h Collection of materials to populate MaterialModel.
Based on Qt example "codeeditor" Copyright (C) 2016 The Qt Company Ltd.
Represents results of SLD profile calculations.
Represents results of the simulation.