15 #ifndef BORNAGAIN_GUI_MODEL_DEVICE_MASKUNITSCONVERTER_H
16 #define BORNAGAIN_GUI_MODEL_DEVICE_MASKUNITSCONVERTER_H
A base class for all mask items.
The MaskUnitsConverter converts coordinates of all masks from one units to anoter....
void convertIntensityDataItem(IntensityDataItem *intensityData)
Converts all masks on board of IntensityDataItem from/to bin-fraction coordinates.
void convertMask(MaskItem *maskItem)
Converts single mask from/to bin-fraction coordinates.
EConvertionDirection m_direction
double convert(double value, Axis axis)
Convert value of axis from/to bin-fraction coordinates.
void convertToNbins(IntensityDataItem *intensityData)
Converts all masks on board of IntensityDataItem into bin-fraction coordinates.
void convertFromNbins(IntensityDataItem *intensityData)
Converts all masks on board of IntensityDataItem from bin-fraction coordinates to coordinates of axes...
void convertCoordinate(SessionItem *maskItem, const QString &xname, const QString &yname)
Convert (x,y) coordinates registered as property (i.e. under P_XPOS, P_YPOS) from/to bin-fraction coo...
Base class for a GUI data item.