15 #ifndef BORNAGAIN_GUI_COREGUI_MODELS_INTENSITYDATAITEM_H
16 #define BORNAGAIN_GUI_COREGUI_MODELS_INTENSITYDATAITEM_H
43 int getNbinsX()
const;
44 int getNbinsY()
const;
47 double getLowerX()
const;
48 double getUpperX()
const;
51 double getXmin()
const;
52 double getXmax()
const;
55 double getLowerY()
const;
56 double getUpperY()
const;
59 double getYmin()
const;
60 double getYmax()
const;
63 double getLowerZ()
const;
64 double getUpperZ()
const;
68 bool isInterpolated()
const;
69 QString getXaxisTitle()
const;
70 QString getYaxisTitle()
const;
73 bool isZAxisLocked()
const;
74 void setZAxisLocked(
bool state);
76 void updateDataRange();
77 void computeDataRange();
78 QPair<double, double> dataRange()
const;
94 bool hasMasks()
const;
95 bool hasProjections()
const;
101 std::vector<int>
shape()
const override;
108 void setLowerX(
double value);
109 void setUpperX(
double value);
110 void setLowerY(
double value);
111 void setUpperY(
double value);
112 void setLowerAndUpperZ(
double zmin,
double zmax);
113 void setLowerZ(
double zmin);
114 void setUpperZ(
double zmax);
116 void setInterpolated(
bool interp);
119 void updateAxesZoomLevel();
120 void updateAxesLabels();
Provides common functionality for IntensityDataItem and SpecularDataItem.
virtual void setAxesRangeToData()=0
virtual void updateAxesUnits(const InstrumentItem *instrument)=0
virtual void setOutputData(OutputData< double > *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 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.
static const QString P_ZAXIS
static const QString P_YAXIS
static const QString T_PROJECTIONS
static const QString P_PROJECTIONS_FLAG
static const QString P_TITLE
static const QString P_XAXIS
static const QString P_GRADIENT
static const QString T_MASKS
static const QString P_IS_INTERPOLATED
Container holding various masks as children.
A container to hold ProjectionItems, intended to store projections of color map on X,...
QCPColorGradient getGradient(const QString &gradientName)
void setLogz(QCPColorScale *scale, bool isLogz)