15 #ifndef BORNAGAIN_GUI_MODEL_DATA_DATA1DVIEWITEM_H
16 #define BORNAGAIN_GUI_MODEL_DATA_DATA1DVIEWITEM_H
36 static constexpr
auto P_TITLE{
"Title"};
37 static constexpr
auto P_XAXIS{
"x-axis"};
38 static constexpr
auto P_YAXIS{
"y-axis"};
39 static constexpr
auto P_AXES_UNITS{
"Axes Units"};
40 static constexpr
auto T_DATA_PROPERTIES{
"Data property container"};
43 static constexpr
auto M_TYPE{
"Data1DViewItem"};
51 double getLowerX()
const;
52 double getUpperX()
const;
55 double getLowerY()
const;
56 double getUpperY()
const;
59 QString getXaxisTitle()
const;
60 QString getYaxisTitle()
const;
67 static bool isXAxisPropertyName(
const QString&
name);
68 static bool isYAxisPropertyName(
const QString&
name);
72 void setXaxisTitle(
const QString& title);
73 void setYaxisTitle(
const QString& title);
74 void setAxesRangeToData();
79 static bool isAxesUnitsPropertyName(
const QString&
name);
82 void resetToDefault();
85 QPair<QVector<double>, QVector<double>> graphData(
Data1DProperties* property_item);
95 void setLowerX(
double value);
96 void setUpperX(
double value);
97 void setLowerY(
double value);
98 void setUpperY(
double value);
99 void setLog(
bool log_flag);
105 QPair<double, double> dataRange(
const Datafield* data)
const;
Defines class SelectionDescriptor.
Defines class SessionItem.
Custom property to define list of string values with multiple selections. Intended for QVariant.
Holds data required for 1D DataItem representation.
View model for 1D DataItem. Can represent several items at once. In current implementation the first ...
void setJobItem(JobItem *job_item)
Sets job item (for unit conversion) if DataItemView is dynamically created outside of JobModel.
Abstract base class for IntensityDataItem and SpecularDataItem. Owns one simulated data set of type D...
Describes a selection (various possibilities and the current one).
Base class for a GUI data item.
QString const & name(EShape k)