16 #include "Device/Histo/DiffUtil.h"
28 const double relative_diff_min_1d = 1e-05;
29 const double relative_diff_max_1d = 4.0;
37 , m_diff_view_item(nullptr)
110 delete (old_view_item);
116 , m_current_item(nullptr)
117 , m_private_model(new
SessionModel(
"TempIntensityDataModel", this))
118 , m_diff_item(dynamic_cast<
DataItem*>(m_private_model->insertNewItem(data_type)))
144 ASSERT(sim_data && real_data);
146 if (!sim_data->getDatafield())
150 DiffUtil::relativeDifferenceField(*sim_data->getDatafield(), *real_data->getDatafield()));
162 [=](Datafield*) { updateDiffData(); });
Defines various axis items.
Defines class ComboProperty.
Defines class Data1DViewItem.
Defines class DataPropertyContainer.
Defines classes DiffItemController, FitComparison1DViewController.
Defines class PropertyRepeater.
Defines class RealDataItem.
Defines class SpecularDataItem.
Custom property to define list of string values with multiple selections. Intended for QVariant.
View model for 1D DataItem. Can represent several items at once. In current implementation the first ...
void resetView()
Set axes viewport to original data.
void setJobItem(JobItem *job_item)
Sets job item (for unit conversion) if DataItemView is dynamically created outside of JobModel.
void setUpperY(double value)
void setLowerY(double value)
void setXaxisTitle(const QString &title)
DataPropertyContainer * createPropertyContainerItem()
void setYaxisTitle(const QString &title)
void setAxesUnits(const ComboProperty &units)
Abstract base class for IntensityDataItem and SpecularDataItem. Owns one simulated data set of type D...
virtual void setDatafield(Datafield *data)=0
The given pointer becomes owned by this class!!
void datafieldChanged(Datafield *data)
void setJobItem(JobItem *job_item)
~DiffItemController() override
DiffItemController(const QString &data_type, QObject *parent)
Data1DViewItem * m_diff_view_item
PropertyRepeater * m_xAxisRepeater
PropertyRepeater * m_appearanceRepeater
FitComparison1DViewController(QObject *parent)
void setItem(JobItem *job_item)
void deleteDiffViewItem()
void createDiffViewItem(JobItem *job_item)
DiffItemController * m_diff_item_controller
Data1DViewItem * diffItemView()
Data1DViewItem * dataItemView()
RealDataItem * realDataItem()
Tracks property change (axes range, units etc) for the collection of IntensityDataItems and sets same...
void addItem(SessionItem *sessionItem)
SessionItem * takeRow(int row)
Removes row from item and returns the item.
SessionItem * parentItem() const
Returns parent of this item.
Base class for a GUI data collection. A collection is e.g. all real data (RealDataModel)....
T * insertItem(SessionItem *parent=nullptr, int row=-1, QString tag="")