Medical Imaging Interaction Toolkit  2021.02.99-c051ab3b
Medical Imaging Interaction Toolkit
QmitkDataStorageTreeInspector Class Reference

#include <QmitkDataStorageTreeInspector.h>

Inheritance diagram for QmitkDataStorageTreeInspector:
Collaboration diagram for QmitkDataStorageTreeInspector:

Public Member Functions

 QmitkDataStorageTreeInspector (QWidget *parent=nullptr)
QAbstractItemView * GetView () override
const QAbstractItemView * GetView () const override
void SetSelectionMode (SelectionMode mode) override
SelectionMode GetSelectionMode () const override
- Public Member Functions inherited from QmitkAbstractDataStorageInspector
 ~QmitkAbstractDataStorageInspector () override
void SetDataStorage (mitk::DataStorage *dataStorage)
 Sets the data storage that will be used /monitored by the widget. More...
virtual void SetNodePredicate (const mitk::NodePredicateBase *nodePredicate)
 Sets the node predicate and updates the widget, according to the node predicate. More...
const mitk::NodePredicateBaseGetNodePredicate () const
NodeList GetSelectedNodes () const
bool GetSelectOnlyVisibleNodes () const

Protected Member Functions

void Initialize () override
void OnModelReset ()
- Protected Member Functions inherited from QmitkAbstractDataStorageInspector
 QmitkAbstractDataStorageInspector (QWidget *parent=nullptr)

Protected Attributes

Ui_QmitkDataStorageTreeInspector m_Controls
- Protected Attributes inherited from QmitkAbstractDataStorageInspector
mitk::WeakPointer< mitk::DataStoragem_DataStorage
mitk::NodePredicateBase::ConstPointer m_NodePredicate
std::unique_ptr< QmitkModelViewSelectionConnectorm_Connector

Additional Inherited Members

- Public Types inherited from QmitkAbstractDataStorageInspector
using NodeList = QList< mitk::DataNode::Pointer >
using SelectionMode = QAbstractItemView::SelectionMode
- Public Slots inherited from QmitkAbstractDataStorageInspector
void SetSelectOnlyVisibleNodes (bool selectOnlyVisibleNodes)
 Change the selection modus of the item view's selection model. More...
void SetCurrentSelection (NodeList selectedNodes)
 Transform a list of data nodes into a model selection and set this as a new selection of the selection model of the private member item view. More...
- Signals inherited from QmitkAbstractDataStorageInspector
void CurrentSelectionChanged (NodeList nodes)
 A signal that will be emitted if the selected node has changed. More...
- Protected Slots inherited from QmitkAbstractDataStorageInspector
void OnSelectionChanged (NodeList selectedNodes)

Detailed Description

Definition at line 29 of file QmitkDataStorageTreeInspector.h.

Constructor & Destructor Documentation

◆ QmitkDataStorageTreeInspector()

QmitkDataStorageTreeInspector::QmitkDataStorageTreeInspector ( QWidget *  parent = nullptr)

Member Function Documentation

◆ GetSelectionMode()

SelectionMode QmitkDataStorageTreeInspector::GetSelectionMode ( ) const

◆ GetView() [1/2]

QAbstractItemView* QmitkDataStorageTreeInspector::GetView ( )

Returns an pointer to the view that is used in the inspector to show the content.

Implements QmitkAbstractDataStorageInspector.

◆ GetView() [2/2]

const QAbstractItemView* QmitkDataStorageTreeInspector::GetView ( ) const

◆ Initialize()

void QmitkDataStorageTreeInspector::Initialize ( )

Helper function is called if data storage or predicate is changed to (re) initialize the widget correctly. Implement the function in derived classes.

Implements QmitkAbstractDataStorageInspector.

◆ OnModelReset()

void QmitkDataStorageTreeInspector::OnModelReset ( )

◆ SetSelectionMode()

void QmitkDataStorageTreeInspector::SetSelectionMode ( SelectionMode  mode)

Sets the selection mode of the inspector.

Implements QmitkAbstractDataStorageInspector.

Member Data Documentation

◆ m_Controls

Ui_QmitkDataStorageTreeInspector QmitkDataStorageTreeInspector::m_Controls

Definition at line 47 of file QmitkDataStorageTreeInspector.h.

◆ m_Overlay

QmitkSimpleTextOverlayWidget* QmitkDataStorageTreeInspector::m_Overlay

Definition at line 48 of file QmitkDataStorageTreeInspector.h.

◆ m_StorageModel

QmitkAbstractDataStorageModel* QmitkDataStorageTreeInspector::m_StorageModel

Definition at line 46 of file QmitkDataStorageTreeInspector.h.

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