12 #ifndef QmitkStatisticsModelToStringConverter_h
13 #define QmitkStatisticsModelToStringConverter_h
76 QString Iterate(
const QModelIndex &index,
78 QString label =
"")
const;
81 QModelIndex m_rootIndex;
83 QChar m_rowDelimiter =
'\n';
84 QChar m_columnDelimiter =
',';
86 bool m_includeHeaderData =
false;
#define MITKIMAGESTATISTICSUI_EXPORT
Tree model that represents mitk::ImageStatisticsContainer data in the Qt model/view framework.
Converts the content of a QmitkImageStatisticsTreeModel to a delimited string.
QString GetString() const
Converts the model content to a formatted string.
void SetIncludeHeaderData(bool includeHeaderData)
Sets whether column header data should be included in the output.
void SetRootIndex(QModelIndex rootIndex)
Sets the root index from which to start the iteration.
void SetColumnDelimiter(QChar columnDelimiter)
Sets the delimiter used to separate columns.
QmitkStatisticsModelToStringConverter()
Default constructor. Initializes delimiters to newline and comma.
void SetRowDelimiter(QChar rowDelimiter)
Sets the delimiter used to separate rows.
void SetModel(QmitkImageStatisticsTreeModel *model)
Sets the statistics tree model to convert.