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

#include <QmitkDataStorageSelectionHistoryInspector.h>

Inheritance diagram for QmitkDataStorageSelectionHistoryInspector:
Collaboration diagram for QmitkDataStorageSelectionHistoryInspector:

Public Member Functions

 QmitkDataStorageSelectionHistoryInspector (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
 

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

QmitkAbstractDataStorageModelm_StorageModel
 
Ui_QmitkDataStorageSelectionHistoryInspector 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 27 of file QmitkDataStorageSelectionHistoryInspector.h.

Constructor & Destructor Documentation

◆ QmitkDataStorageSelectionHistoryInspector()

QmitkDataStorageSelectionHistoryInspector::QmitkDataStorageSelectionHistoryInspector ( QWidget *  parent = nullptr)

Member Function Documentation

◆ AddNodeToHistory()

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

◆ GetSelectionMode()

SelectionMode QmitkDataStorageSelectionHistoryInspector::GetSelectionMode ( ) const
overridevirtual

◆ GetView() [1/2]

const QAbstractItemView* QmitkDataStorageSelectionHistoryInspector::GetView ( ) const
overridevirtual

◆ GetView() [2/2]

QAbstractItemView* QmitkDataStorageSelectionHistoryInspector::GetView ( )
overridevirtual

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

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 43 of file QmitkDataStorageSelectionHistoryInspector.h.

◆ ResetHistory()

static void QmitkDataStorageSelectionHistoryInspector::ResetHistory ( )
static

◆ SetSelectionMode()

void QmitkDataStorageSelectionHistoryInspector::SetSelectionMode ( SelectionMode  mode)
overridevirtual

Sets the selection mode of the inspector.

Implements QmitkAbstractDataStorageInspector.

Member Data Documentation

◆ m_Controls

Ui_QmitkDataStorageSelectionHistoryInspector QmitkDataStorageSelectionHistoryInspector::m_Controls
protected

Definition at line 52 of file QmitkDataStorageSelectionHistoryInspector.h.

◆ m_Overlay

QmitkSimpleTextOverlayWidget* QmitkDataStorageSelectionHistoryInspector::m_Overlay
protected

Definition at line 53 of file QmitkDataStorageSelectionHistoryInspector.h.

◆ m_StorageModel

QmitkAbstractDataStorageModel* QmitkDataStorageSelectionHistoryInspector::m_StorageModel
protected

Definition at line 51 of file QmitkDataStorageSelectionHistoryInspector.h.


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