15 #ifndef BORNAGAIN_GUI_MODEL_DATA_INTENSITYDATAITEM_H
16 #define BORNAGAIN_GUI_MODEL_DATA_INTENSITYDATAITEM_H
28 static constexpr
auto P_PROJECTIONS{
"Projections"};
29 static constexpr
auto P_TITLE{
"Title"};
30 static constexpr
auto P_IS_INTERPOLATED{
"Interpolation"};
31 static constexpr
auto P_GRADIENT{
"Gradient"};
32 static constexpr
auto P_XAXIS{
"x-axis"};
33 static constexpr
auto P_YAXIS{
"y-axis"};
34 static constexpr
auto P_ZAXIS{
"color-axis"};
35 static constexpr
auto T_MASKS{
"Mask tag"};
36 static constexpr
auto T_PROJECTIONS{
"Projection tag"};
39 static constexpr
auto M_TYPE{
"IntensityData"};
51 double getLowerX()
const;
52 double getUpperX()
const;
59 double getLowerY()
const;
60 double getUpperY()
const;
67 double getLowerZ()
const;
68 double getUpperZ()
const;
70 QString getGradientValue()
const;
76 bool isInterpolated()
const;
77 QString getXaxisTitle()
const;
78 QString getYaxisTitle()
const;
81 bool isZAxisLocked()
const;
82 void setZAxisLocked(
bool state);
84 void updateDataRange();
85 void computeDataRange();
86 QPair<double, double> dataRange()
const;
105 bool hasMasks()
const;
106 bool hasProjections()
const;
112 std::vector<int>
shape()
const override;
117 static bool isInterpolatedPropertyName(
const QString&
name);
118 static bool isGradientPropertyName(
const QString&
name);
119 static bool isXaxisPropertyName(
const QString&
name);
120 static bool isYaxisPropertyName(
const QString&
name);
121 static bool isZaxisPropertyName(
const QString&
name);
124 void setLowerX(
double value);
125 void setUpperX(
double value);
126 void setLowerY(
double value);
127 void setUpperY(
double value);
128 void setLowerAndUpperZ(
double zmin,
double zmax);
129 void setLowerZ(
double zmin);
130 void setUpperZ(
double zmax);
132 void setInterpolated(
bool interp);
135 void updateAxesZoomLevel();
136 void updateAxesLabels();
Defines class SelectionDescriptor.
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 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.
Container holding various masks as children.
A container to hold ProjectionItems, intended to store projections of color map on X,...
Describes a selection (various possibilities and the current one).
QString const & name(EShape k)
void setLogz(QCPColorScale *scale, bool isLogz)
QCPColorGradient getGradient(const QString &gradientName)