Medical Imaging Interaction Toolkit  2018.4.99-bd7b41ba
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::DataStorageGetDataStorage () 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)

Definition at line 24 of file QmitkImageStatisticsTreeModel.cpp.

◆ ~QmitkImageStatisticsTreeModel()

QmitkImageStatisticsTreeModel::~QmitkImageStatisticsTreeModel ( )
override

Member Function Documentation

◆ Clear()

void QmitkImageStatisticsTreeModel::Clear ( )

Definition at line 200 of file QmitkImageStatisticsTreeModel.cpp.

References modelChanged().

Referenced by QmitkImageStatisticsWidget::Reset().

◆ 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

Implements QmitkAbstractDataStorageModel.

Definition at line 36 of file QmitkImageStatisticsTreeModel.cpp.

References modelChanged().

◆ flags()

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

Definition at line 123 of file QmitkImageStatisticsTreeModel.cpp.

◆ GetHistogramNBins()

◆ GetIgnoreZeroValueVoxel()

bool QmitkImageStatisticsTreeModel::GetIgnoreZeroValueVoxel ( ) const

/brief Get status of zero value voxel ignoring.

Definition at line 224 of file QmitkImageStatisticsTreeModel.cpp.

Referenced by QmitkImageStatisticsWidget::GetIgnoreZeroValueVoxel().

◆ 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

◆ NodeAdded()

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

Implements QmitkAbstractDataStorageModel.

Definition at line 411 of file QmitkImageStatisticsTreeModel.cpp.

References modelChanged().

◆ NodeChanged()

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

Implements QmitkAbstractDataStorageModel.

Definition at line 419 of file QmitkImageStatisticsTreeModel.cpp.

References modelChanged().

◆ NodePredicateChanged()

void QmitkImageStatisticsTreeModel::NodePredicateChanged ( )
overrideprotectedvirtual

Implements QmitkAbstractDataStorageModel.

Definition at line 44 of file QmitkImageStatisticsTreeModel.cpp.

References modelChanged().

◆ NodeRemoved()

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

Implements QmitkAbstractDataStorageModel.

Definition at line 403 of file QmitkImageStatisticsTreeModel.cpp.

References modelChanged().

◆ 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.

Definition at line 229 of file QmitkImageStatisticsTreeModel.cpp.

References modelChanged().

Referenced by QmitkImageStatisticsWidget::SetHistogramNBins().

◆ SetIgnoreZeroValueVoxel()

void QmitkImageStatisticsTreeModel::SetIgnoreZeroValueVoxel ( bool  _arg)

/brief Set flag to ignore zero valued voxels

Definition at line 212 of file QmitkImageStatisticsTreeModel.cpp.

References modelChanged().

Referenced by QmitkImageStatisticsWidget::SetIgnoreZeroValueVoxel().

◆ SetImageNodes()

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

Definition at line 147 of file QmitkImageStatisticsTreeModel.cpp.

References data(), and modelChanged().

Referenced by QmitkImageStatisticsWidget::SetImageNodes().

◆ SetMaskNodes()

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

Definition at line 171 of file QmitkImageStatisticsTreeModel.cpp.

References data(), and modelChanged().

Referenced by QmitkImageStatisticsWidget::SetMaskNodes().


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