15 #ifndef BORNAGAIN_GUI_MODEL_DATA_SPECULARDATAITEM_H
16 #define BORNAGAIN_GUI_MODEL_DATA_SPECULARDATAITEM_H
25 static constexpr
auto P_TITLE{
"Title"};
26 static constexpr
auto P_XAXIS{
"x-axis"};
27 static constexpr
auto P_YAXIS{
"y-axis"};
30 static constexpr
auto M_TYPE{
"SpecularData"};
40 double getLowerX()
const;
41 double getUpperX()
const;
48 double getLowerY()
const;
49 double getUpperY()
const;
56 QString getXaxisTitle()
const;
57 QString getYaxisTitle()
const;
59 QPair<double, double> dataRange()
const;
72 std::vector<int>
shape()
const override;
78 static bool isXaxisPropertyName(
const QString&
name);
79 static bool isYaxisPropertyName(
const QString&
name);
82 void setLowerX(
double value);
83 void setUpperX(
double value);
84 void setLowerY(
double value);
85 void setUpperY(
double value);
86 void setLog(
bool log_flag);
89 void updateAxesZoomLevel();
Abstract base class for IntensityDataItem and SpecularDataItem. Owns one simulated data set of type D...
virtual void setAxesRangeToData()=0
virtual void setDatafield(Datafield *data)=0
The given pointer becomes owned by this class!!
virtual void setXaxisTitle(const QString &title)=0
virtual std::vector< int > shape() const =0
virtual void updateCoords(const InstrumentItem *instrument)=0
virtual void setYaxisTitle(const QString &title)=0
virtual void reset(ImportDataInfo data)=0
Resets data to the state defined by user (imported) data.
Carries information about loaded data.
Abstract base class for instrument-specific item classes.
QString const & name(EShape k)