16 #include "Device/Histo/DiffUtil.h"
28 const double relative_diff_min_2d = 1e-05;
29 const double relative_diff_max_2d = 1.0;
77 double zmin = real_data_item->
getLowerZ();
78 double zmax = real_data_item->getUpperZ();
79 sim_data_item->setLowerAndUpperZ(zmin, zmax);
125 , m_current_item(nullptr)
126 , m_tempIntensityDataModel(new
SessionModel(
"TempIntensityDataModel", this))
127 , m_diff_item(dynamic_cast<
DataItem*>(m_tempIntensityDataModel->insertNewItem(data_type)))
137 void DiffItemController::setItem(
JobItem* job_item)
153 ASSERT(sim_data && real_data);
155 if (!sim_data->getDatafield())
159 DiffUtil::relativeDifferenceField(*sim_data->getDatafield(), *real_data->getDatafield()));
176 [=](Datafield*) { updateDiffData(); });
Defines various axis items.
FitComparisonController2D::DiffItemController DiffItemController
Defines class FitComparisonController.
Defines class IntensityDataItem.
Defines class PropertyRepeater.
Defines class RealDataItem.
Defines class SpecularDataItem.
void setTitle(const QString &title)
Custom property to define list of string values with multiple selections. Intended for QVariant.
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)
virtual void updateCoords(const InstrumentItem *instrument)=0
void axesUnitsChanged(const ComboProperty &units)
~DiffItemController() override
DiffItemController(const QString &data_type, QObject *parent)
DiffItemController(const QString &data_type, QObject *parent)
~DiffItemController() override
SessionModel * m_tempIntensityDataModel
void setItem(JobItem *job_item)
void setItem(JobItem *job_item)
PropertyRepeater * m_xAxisRepeater
PropertyRepeater * m_yAxisRepeater
DiffItemController * m_diff_item_controller
PropertyRepeater * m_appearanceRepeater
FitComparisonController2D(QObject *parent=nullptr)
IntensityDataItem * diffItem()
PropertyRepeater * m_zAxisRepeater
double getLowerZ() const
Returns lower and upper zoom ranges of z-axis.
void setLowerAndUpperZ(double zmin, double zmax)
void setAxesRangeToData() override
set zoom range of x,y axes to axes of input data
void resetView()
Set axes viewport to original data.
const BasicAxisItem * yAxisItem() const
const BasicAxisItem * xAxisItem() const
InstrumentItem * instrumentItem() const
RealDataItem * realDataItem()
Tracks property change (axes range, units etc) for the collection of IntensityDataItems and sets same...
void addItem(SessionItem *sessionItem)
Base class for a GUI data collection. A collection is e.g. all real data (RealDataModel)....