Medical Imaging Interaction Toolkit  2022.04.99-01b95b17
Medical Imaging Interaction Toolkit
QmitkImageStatisticsTreeModel Class Reference

#include <QmitkImageStatisticsTreeModel.h>

Inheritance diagram for QmitkImageStatisticsTreeModel:
Collaboration diagram for QmitkImageStatisticsTreeModel:

Signals

void dataAvailable ()
 
void modelChanged ()
 

Public Member Functions

 QmitkImageStatisticsTreeModel (QObject *parent=nullptr)
 
 ~QmitkImageStatisticsTreeModel () override
 
void SetImageNodes (const std::vector< mitk::DataNode::ConstPointer > &nodes)
 
void SetMaskNodes (const std::vector< mitk::DataNode::ConstPointer > &nodes)
 
void Clear ()
 
void SetIgnoreZeroValueVoxel (bool _arg)
 
bool GetIgnoreZeroValueVoxel () const
 
void SetHistogramNBins (unsigned int nbins)
 
unsigned int GetHistogramNBins () const
 
Qt::ItemFlags flags (const QModelIndex &index) const override
 
QVariant data (const QModelIndex &index, int role) const override
 
QVariant headerData (int section, Qt::Orientation orientation, int role) const override
 
int rowCount (const QModelIndex &parent=QModelIndex()) const override
 
int columnCount (const QModelIndex &parent=QModelIndex()) const override
 
QModelIndex index (int row, int column, const QModelIndex &parent=QModelIndex()) const override
 
QModelIndex parent (const QModelIndex &child) const override
 
- Public Member Functions inherited from QmitkAbstractDataStorageModel
 ~QmitkAbstractDataStorageModel () override
 
void SetDataStorage (mitk::DataStorage *dataStorage)
 
mitk::DataStorage::Pointer GetDataStorage () const
 
void SetNodePredicate (const mitk::NodePredicateBase *nodePredicate)
 
const mitk::NodePredicateBaseGetNodePredicate () const
 

Protected Member Functions

void DataStorageChanged () override
 
void NodePredicateChanged () override
 
void NodeAdded (const mitk::DataNode *node) override
 
void NodeChanged (const mitk::DataNode *node) override
 
void NodeRemoved (const mitk::DataNode *node) override
 
- Protected Member Functions inherited from QmitkAbstractDataStorageModel
 QmitkAbstractDataStorageModel (QObject *parent=nullptr)
 
 QmitkAbstractDataStorageModel (mitk::DataStorage *dataStorage, QObject *parent=nullptr)
 

Additional Inherited Members

- Protected Attributes inherited from QmitkAbstractDataStorageModel
mitk::WeakPointer< mitk::DataStoragem_DataStorage
 
mitk::NodePredicateBase::ConstPointer m_NodePredicate
 

Detailed Description

The class is used to represent the information of mitk::ImageStatisticsContainer in the set datastorage in the context of the QT view-model-concept. The represented ImageStatisticContainer are specified by setting the image and mask nodes that should be regarded. In addition you may specified the statistic computation property HistorgramNBins and IgnoreZeroValueVoxel to select the correct statistics.

Definition at line 34 of file QmitkImageStatisticsTreeModel.h.

Constructor & Destructor Documentation

◆ QmitkImageStatisticsTreeModel()

QmitkImageStatisticsTreeModel::QmitkImageStatisticsTreeModel ( QObject *  parent = nullptr)

◆ ~QmitkImageStatisticsTreeModel()

QmitkImageStatisticsTreeModel::~QmitkImageStatisticsTreeModel ( )
override

Member Function Documentation

◆ Clear()

void QmitkImageStatisticsTreeModel::Clear ( )

◆ columnCount()

int QmitkImageStatisticsTreeModel::columnCount ( const QModelIndex &  parent = QModelIndex()) const
override

◆ data()

QVariant QmitkImageStatisticsTreeModel::data ( const QModelIndex &  index,
int  role 
) const
override

◆ dataAvailable

void QmitkImageStatisticsTreeModel::dataAvailable ( )
signal

◆ DataStorageChanged()

void QmitkImageStatisticsTreeModel::DataStorageChanged ( )
overrideprotectedvirtual

◆ flags()

Qt::ItemFlags QmitkImageStatisticsTreeModel::flags ( const QModelIndex &  index) const
override

◆ GetHistogramNBins()

unsigned int QmitkImageStatisticsTreeModel::GetHistogramNBins ( ) const

/brief Get bin size for histogram resolution.

◆ GetIgnoreZeroValueVoxel()

bool QmitkImageStatisticsTreeModel::GetIgnoreZeroValueVoxel ( ) const

/brief Get status of zero value voxel ignoring.

◆ headerData()

QVariant QmitkImageStatisticsTreeModel::headerData ( int  section,
Qt::Orientation  orientation,
int  role 
) const
override

◆ index()

QModelIndex QmitkImageStatisticsTreeModel::index ( int  row,
int  column,
const QModelIndex &  parent = QModelIndex() 
) const
override

◆ modelChanged

void QmitkImageStatisticsTreeModel::modelChanged ( )
signal

Is emitted whenever the model changes are finished (usually a bit later than dataAvailable()).

◆ NodeAdded()

void QmitkImageStatisticsTreeModel::NodeAdded ( const mitk::DataNode node)
overrideprotectedvirtual

◆ NodeChanged()

void QmitkImageStatisticsTreeModel::NodeChanged ( const mitk::DataNode node)
overrideprotectedvirtual

◆ NodePredicateChanged()

void QmitkImageStatisticsTreeModel::NodePredicateChanged ( )
overrideprotectedvirtual

◆ NodeRemoved()

void QmitkImageStatisticsTreeModel::NodeRemoved ( const mitk::DataNode node)
overrideprotectedvirtual

◆ parent()

QModelIndex QmitkImageStatisticsTreeModel::parent ( const QModelIndex &  child) const
override

◆ rowCount()

int QmitkImageStatisticsTreeModel::rowCount ( const QModelIndex &  parent = QModelIndex()) const
override

◆ SetHistogramNBins()

void QmitkImageStatisticsTreeModel::SetHistogramNBins ( unsigned int  nbins)

/brief Set bin size for histogram resolution.

◆ SetIgnoreZeroValueVoxel()

void QmitkImageStatisticsTreeModel::SetIgnoreZeroValueVoxel ( bool  _arg)

/brief Set flag to ignore zero valued voxels

◆ SetImageNodes()

void QmitkImageStatisticsTreeModel::SetImageNodes ( const std::vector< mitk::DataNode::ConstPointer > &  nodes)

◆ SetMaskNodes()

void QmitkImageStatisticsTreeModel::SetMaskNodes ( const std::vector< mitk::DataNode::ConstPointer > &  nodes)

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