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

The 'QmitkDataStorageLayerStackModel' is a customized table model, derived from the 'QmitkAbstractDataStorageModel'. It provides functions to accept a data storage and a node predicate in order to customize the model data nodes. Furthermore it overrides the functions of 'QAbstractItemModel' to create a customized qt table model. This model can be used in conjunction with a 'QmitkDataStorageSelectionConnector'. More...

#include <QmitkDataStorageLayerStackModel.h>

Inheritance diagram for QmitkDataStorageLayerStackModel:
Collaboration diagram for QmitkDataStorageLayerStackModel:

Public Member Functions

 QmitkDataStorageLayerStackModel (QObject *parent=nullptr)
 
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
 
void SetCurrentRenderer (const std::string &rendererName)
 
mitk::BaseRendererGetCurrentRenderer () const
 
QModelIndex index (int row, int column, const QModelIndex &parent) const
 overridden functions from QAbstractItemModel More...
 
QModelIndex parent (const QModelIndex &child) const
 
Qt::ItemFlags flags (const QModelIndex &index) 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
 
QVariant data (const QModelIndex &index, int role) const override
 
bool setData (const QModelIndex &index, const QVariant &value, int role=Qt::EditRole) 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
 

Additional Inherited Members

- Protected Member Functions inherited from QmitkAbstractDataStorageModel
 QmitkAbstractDataStorageModel (QObject *parent=nullptr)
 
 QmitkAbstractDataStorageModel (mitk::DataStorage *dataStorage, QObject *parent=nullptr)
 
- Protected Attributes inherited from QmitkAbstractDataStorageModel
mitk::WeakPointer< mitk::DataStoragem_DataStorage
 
mitk::NodePredicateBase::ConstPointer m_NodePredicate
 

Detailed Description

The 'QmitkDataStorageLayerStackModel' is a customized table model, derived from the 'QmitkAbstractDataStorageModel'. It provides functions to accept a data storage and a node predicate in order to customize the model data nodes. Furthermore it overrides the functions of 'QAbstractItemModel' to create a customized qt table model. This model can be used in conjunction with a 'QmitkDataStorageSelectionConnector'.

Definition at line 31 of file QmitkDataStorageLayerStackModel.h.

Constructor & Destructor Documentation

◆ QmitkDataStorageLayerStackModel()

QmitkDataStorageLayerStackModel::QmitkDataStorageLayerStackModel ( QObject *  parent = nullptr)

Member Function Documentation

◆ columnCount()

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

◆ data()

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

◆ DataStorageChanged()

void QmitkDataStorageLayerStackModel::DataStorageChanged ( )
overridevirtual

◆ flags()

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

◆ GetCurrentRenderer()

mitk::BaseRenderer* QmitkDataStorageLayerStackModel::GetCurrentRenderer ( ) const

◆ headerData()

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

◆ index()

QModelIndex QmitkDataStorageLayerStackModel::index ( int  row,
int  column,
const QModelIndex &  parent 
) const

overridden functions from QAbstractItemModel

◆ NodeAdded()

void QmitkDataStorageLayerStackModel::NodeAdded ( const mitk::DataNode node)
overridevirtual

◆ NodeChanged()

void QmitkDataStorageLayerStackModel::NodeChanged ( const mitk::DataNode node)
overridevirtual

◆ NodePredicateChanged()

void QmitkDataStorageLayerStackModel::NodePredicateChanged ( )
overridevirtual

◆ NodeRemoved()

void QmitkDataStorageLayerStackModel::NodeRemoved ( const mitk::DataNode node)
overridevirtual

◆ parent()

QModelIndex QmitkDataStorageLayerStackModel::parent ( const QModelIndex &  child) const

◆ rowCount()

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

◆ SetCurrentRenderer()

void QmitkDataStorageLayerStackModel::SetCurrentRenderer ( const std::string &  rendererName)

◆ setData()

bool QmitkDataStorageLayerStackModel::setData ( const QModelIndex &  index,
const QVariant &  value,
int  role = Qt::EditRole 
)
override

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