Medical Imaging Interaction Toolkit  2024.12.99-0da743f6
Medical Imaging Interaction Toolkit
QmitkStatisticsModelToStringConverter Class Reference

Converts the content of the statistics model to a string. More...

#include <QmitkStatisticsModelToStringConverter.h>

Public Member Functions

 QmitkStatisticsModelToStringConverter ()
 
void SetModel (QmitkImageStatisticsTreeModel *model)
 
void SetRootIndex (QModelIndex rootIndex)
 
QString GetString () const
 Returns the string. More...
 
void SetRowDelimiter (QChar rowDelimiter)
 
void SetColumnDelimiter (QChar columnDelimiter)
 
void SetIncludeHeaderData (bool includeHeaderData)
 If header data (column/row captions) are exported. More...
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ QmitkStatisticsModelToStringConverter()

QmitkStatisticsModelToStringConverter::QmitkStatisticsModelToStringConverter ( )

Member Function Documentation

◆ GetString()

QString QmitkStatisticsModelToStringConverter::GetString ( ) const

Returns the string.

Exceptions
throwsexception 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()

void QmitkStatisticsModelToStringConverter::SetModel ( QmitkImageStatisticsTreeModel model)

◆ SetRootIndex()

void QmitkStatisticsModelToStringConverter::SetRootIndex ( QModelIndex  rootIndex)

◆ SetRowDelimiter()

void QmitkStatisticsModelToStringConverter::SetRowDelimiter ( QChar  rowDelimiter)

The documentation for this class was generated from the following file: