Converts the content of the statistics model to a string.
More...
#include <QmitkStatisticsModelToStringConverter.h>
Converts the content of the statistics model to a string.
The content of a QmitkImageStatisticsTreeModel instance is converted to a string. Each cell is converted to a string. Default order: iteration over rows. The row separation delimiter (default: '
') and the column separation delimiter (default: ',') can be chosen. It also can be chosen if the headers should be exported to the string.
Definition at line 28 of file QmitkStatisticsModelToStringConverter.h.
◆ QmitkStatisticsModelToStringConverter()
QmitkStatisticsModelToStringConverter::QmitkStatisticsModelToStringConverter |
( |
| ) |
|
◆ GetString()
QString QmitkStatisticsModelToStringConverter::GetString |
( |
| ) |
const |
Returns the string.
- Exceptions
-
throws | exception if model is nullptr |
◆ SetColumnDelimiter()
void QmitkStatisticsModelToStringConverter::SetColumnDelimiter |
( |
QChar |
columnDelimiter | ) |
|
◆ SetIncludeHeaderData()
void QmitkStatisticsModelToStringConverter::SetIncludeHeaderData |
( |
bool |
includeHeaderData | ) |
|
If header data (column/row captions) are exported.
◆ SetModel()
◆ SetRootIndex()
void QmitkStatisticsModelToStringConverter::SetRootIndex |
( |
QModelIndex |
rootIndex | ) |
|
◆ SetRowDelimiter()
void QmitkStatisticsModelToStringConverter::SetRowDelimiter |
( |
QChar |
rowDelimiter | ) |
|
The documentation for this class was generated from the following file: