Medical Imaging Interaction Toolkit  2024.12.99-0da743f6
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

QmitkAbstractDataStorageModelm_StorageModel
 
Ui_QmitkDataStorageTreeInspector m_Controls
 
QmitkSimpleTextOverlayWidgetm_Overlay
 
- 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
overridevirtual

◆ GetView() [1/2]

const QAbstractItemView* QmitkDataStorageTreeInspector::GetView ( ) const
overridevirtual

◆ GetView() [2/2]

QAbstractItemView* QmitkDataStorageTreeInspector::GetView ( )
overridevirtual

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

Implements QmitkAbstractDataStorageInspector.

◆ Initialize()

void QmitkDataStorageTreeInspector::Initialize ( )
overrideprotectedvirtual

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 ( )
protected

◆ SetSelectionMode()

void QmitkDataStorageTreeInspector::SetSelectionMode ( SelectionMode  mode)
overridevirtual

Sets the selection mode of the inspector.

Implements QmitkAbstractDataStorageInspector.

Member Data Documentation

◆ m_Controls

Ui_QmitkDataStorageTreeInspector QmitkDataStorageTreeInspector::m_Controls
protected

Definition at line 47 of file QmitkDataStorageTreeInspector.h.

◆ m_Overlay

QmitkSimpleTextOverlayWidget* QmitkDataStorageTreeInspector::m_Overlay
protected

Definition at line 48 of file QmitkDataStorageTreeInspector.h.

◆ m_StorageModel

QmitkAbstractDataStorageModel* QmitkDataStorageTreeInspector::m_StorageModel
protected

Definition at line 46 of file QmitkDataStorageTreeInspector.h.


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