15 #ifndef BORNAGAIN_GUI_VIEW_PROJECTION_SAVEPROJECTIONSASSISTANT_H
16 #define BORNAGAIN_GUI_VIEW_PROJECTION_SAVEPROJECTIONSASSISTANT_H
Assistant class which save all projections of IndensityDataItem into ASCII file.
SaveProjectionsAssistant()
QString projectionFileHeader(ProjectionsData &projectionsData)
Returns projections header. For projections along x it will be "# x y=6.0194 y=33....
std::unique_ptr< Datafield > m_field
ProjectionsData projectionsData(const QString &projectionsType, IntensityDataItem *intensityItem)
Returns projections data for all projections of given type (horizontal, vertical).
QString projectionsToString(const QString &projectionsType, IntensityDataItem *intensityItem)
Generates multi-line string with projections data of given type (horizontal, vertical).
~SaveProjectionsAssistant()
QVector< SessionItem * > projectionItems(const QString &projectionsType, IntensityDataItem *intensityItem)
Returns vector of ProjectionItems sorted according to axis value.
void saveProjections(QWidget *parent, IntensityDataItem *intensityItem)
Calls file open dialog and writes projection data as ASCII.
Base class for a GUI data item.
QVector< double > bin_values
double axis_value
value on axis where projection has been made
QVector< Projection > projections
QVector< double > bin_centers