Medical Imaging Interaction Toolkit  2026.06.00
Medical Imaging Interaction Toolkit
QmitkDataStorageSelectionHistoryInspector Class Reference

Inspector that offers a simple list view on the last selected nodes (in chronologic order) in a data storage. More...

#include <QmitkDataStorageSelectionHistoryInspector.h>

Inheritance diagram for QmitkDataStorageSelectionHistoryInspector:
Collaboration diagram for QmitkDataStorageSelectionHistoryInspector:

Public Member Functions

 QmitkDataStorageSelectionHistoryInspector (QWidget *parent=nullptr)
 
 ~QmitkDataStorageSelectionHistoryInspector () override
 
QAbstractItemView * GetView () override
 Returns a pointer to the view used to display the data storage content. More...
 
const QAbstractItemView * GetView () const override
 Returns a pointer to the view used to display the data storage content. More...
 
void SetSelectionMode (SelectionMode mode) override
 Sets the selection mode of the inspector's item view. More...
 
SelectionMode GetSelectionMode () const override
 Returns the current selection mode of the inspector's item view. More...
 
- Public Member Functions inherited from QmitkAbstractDataStorageInspector
 ~QmitkAbstractDataStorageInspector () override
 
void SetDataStorage (mitk::DataStorage *dataStorage)
 Sets the data storage that will be used and monitored by this widget. More...
 
virtual void SetNodePredicate (const mitk::NodePredicateBase *nodePredicate)
 Sets the node predicate and re-initializes the widget accordingly. More...
 
const mitk::NodePredicateBase * GetNodePredicate () const
 Returns the currently set node predicate. More...
 
NodeList GetSelectedNodes () const
 Returns the list of currently selected data nodes. More...
 
bool GetSelectOnlyVisibleNodes () const
 Returns whether only visible nodes can be selected. More...
 

Static Public Member Functions

static void AddNodeToHistory (mitk::DataNode *node)
 
static void ResetHistory ()
 
constexpr static const char * INSPECTOR_ID ()
 

Protected Member Functions

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

Protected Attributes

QmitkAbstractDataStorageModel * m_StorageModel
 
std::unique_ptr< Ui::QmitkDataStorageSelectionHistoryInspector > m_Controls
 
QmitkSimpleTextOverlayWidget * m_Overlay
 
- Protected Attributes inherited from QmitkAbstractDataStorageInspector
mitk::WeakPointer< mitk::DataStorage > m_DataStorage
 
mitk::NodePredicateBase::ConstPointer m_NodePredicate
 
std::unique_ptr< QmitkModelViewSelectionConnector > m_Connector
 

Additional Inherited Members

- Public Types inherited from QmitkAbstractDataStorageInspector
using NodeList = QList< mitk::DataNode::Pointer >
 Convenience type alias for a list of data node pointers. More...
 
using SelectionMode = QAbstractItemView::SelectionMode
 Convenience type alias for the Qt selection mode. More...
 
- Public Slots inherited from QmitkAbstractDataStorageInspector
void SetSelectOnlyVisibleNodes (bool selectOnlyVisibleNodes)
 Controls whether selections are restricted to visible nodes only. More...
 
void SetCurrentSelection (NodeList selectedNodes)
 Sets the given list of data nodes as the new selection. More...
 
- Signals inherited from QmitkAbstractDataStorageInspector
void CurrentSelectionChanged (NodeList nodes)
 Emitted when the set of selected nodes has changed. More...
 
- Protected Slots inherited from QmitkAbstractDataStorageInspector
void OnSelectionChanged (NodeList selectedNodes)
 

Detailed Description

Inspector that offers a simple list view on the last selected nodes (in chronologic order) in a data storage.

Definition at line 31 of file QmitkDataStorageSelectionHistoryInspector.h.

Constructor & Destructor Documentation

◆ QmitkDataStorageSelectionHistoryInspector()

QmitkDataStorageSelectionHistoryInspector::QmitkDataStorageSelectionHistoryInspector ( QWidget *  parent = nullptr)

◆ ~QmitkDataStorageSelectionHistoryInspector()

QmitkDataStorageSelectionHistoryInspector::~QmitkDataStorageSelectionHistoryInspector ( )
override

Member Function Documentation

◆ AddNodeToHistory()

static void QmitkDataStorageSelectionHistoryInspector::AddNodeToHistory ( mitk::DataNode *  node)
static

◆ GetSelectionMode()

SelectionMode QmitkDataStorageSelectionHistoryInspector::GetSelectionMode ( ) const
overridevirtual

Returns the current selection mode of the inspector's item view.

Returns
The active QAbstractItemView::SelectionMode.

Implements QmitkAbstractDataStorageInspector.

◆ GetView() [1/2]

const QAbstractItemView* QmitkDataStorageSelectionHistoryInspector::GetView ( ) const
overridevirtual

Returns a pointer to the view used to display the data storage content.

Returns
Pointer to the internal QAbstractItemView.

Implements QmitkAbstractDataStorageInspector.

◆ GetView() [2/2]

QAbstractItemView* QmitkDataStorageSelectionHistoryInspector::GetView ( )
overridevirtual

Returns a pointer to the view used to display the data storage content.

Returns
Pointer to the internal QAbstractItemView.

Implements QmitkAbstractDataStorageInspector.

◆ Initialize()

void QmitkDataStorageSelectionHistoryInspector::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.

◆ INSPECTOR_ID()

constexpr static const char* QmitkDataStorageSelectionHistoryInspector::INSPECTOR_ID ( )
inlinestaticconstexpr

Definition at line 48 of file QmitkDataStorageSelectionHistoryInspector.h.

◆ ResetHistory()

static void QmitkDataStorageSelectionHistoryInspector::ResetHistory ( )
static

◆ SetSelectionMode()

void QmitkDataStorageSelectionHistoryInspector::SetSelectionMode ( SelectionMode  mode)
overridevirtual

Sets the selection mode of the inspector's item view.

Parameters
[in]modeThe desired QAbstractItemView::SelectionMode.

Implements QmitkAbstractDataStorageInspector.

Member Data Documentation

◆ m_Controls

std::unique_ptr<Ui::QmitkDataStorageSelectionHistoryInspector> QmitkDataStorageSelectionHistoryInspector::m_Controls
protected

Definition at line 57 of file QmitkDataStorageSelectionHistoryInspector.h.

◆ m_Overlay

QmitkSimpleTextOverlayWidget* QmitkDataStorageSelectionHistoryInspector::m_Overlay
protected

Definition at line 58 of file QmitkDataStorageSelectionHistoryInspector.h.

◆ m_StorageModel

QmitkAbstractDataStorageModel* QmitkDataStorageSelectionHistoryInspector::m_StorageModel
protected

Definition at line 56 of file QmitkDataStorageSelectionHistoryInspector.h.


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