Medical Imaging Interaction Toolkit  2018.4.99-389bf124
Medical Imaging Interaction Toolkit
QmitkPatientTableInspector Class Reference

#include <QmitkPatientTableInspector.h>

Inheritance diagram for QmitkPatientTableInspector:
Collaboration diagram for QmitkPatientTableInspector:

Signals

void DataNodeDoubleClicked (const mitk::DataNode *)
 
void OnContextMenuRequested (const QPoint &)
 
void OnNodeRemoved (const mitk::DataNode *)
 
- Signals inherited from QmitkAbstractDataStorageInspector
void CurrentSelectionChanged (NodeList nodes)
 A signal that will be emitted if the selected node has changed. More...
 

Public Member Functions

 QmitkPatientTableInspector (QWidget *parent=nullptr)
 
QAbstractItemView * GetView () override
 
const QAbstractItemView * GetView () const override
 
void SetSelectionMode (SelectionMode mode) override
 
SelectionMode GetSelectionMode () const override
 
void SetCaseID (const mitk::SemanticTypes::CaseID &caseID) override
 Extends the abstract base class to allow setting the current case ID which is needed to access the semantic relations storage. The function sets the case ID in the storage model. More...
 
void SetLesion (const mitk::SemanticTypes::Lesion &lesion) override
 Extends the abstract base class to allow setting the current lesion. The function sets the lesion in the storage model. More...
 
QItemSelectionModel * GetSelectionModel ()
 
- Public Member Functions inherited from QmitkAbstractSemanticRelationsStorageInspector
 ~QmitkAbstractSemanticRelationsStorageInspector () 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
 
- Protected Member Functions inherited from QmitkAbstractSemanticRelationsStorageInspector
 QmitkAbstractSemanticRelationsStorageInspector (QWidget *parent=nullptr)
 
- Protected Member Functions inherited from QmitkAbstractDataStorageInspector
 QmitkAbstractDataStorageInspector (QWidget *parent=nullptr)
 

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...
 
- Protected Slots inherited from QmitkAbstractDataStorageInspector
void OnSelectionChanged (NodeList selectedNodes)
 
- Protected Attributes inherited from QmitkAbstractDataStorageInspector
mitk::WeakPointer< mitk::DataStoragem_DataStorage
 
mitk::NodePredicateBase::ConstPointer m_NodePredicate
 
std::unique_ptr< QmitkModelViewSelectionConnectorm_Connector
 

Detailed Description

Definition at line 37 of file QmitkPatientTableInspector.h.

Constructor & Destructor Documentation

◆ QmitkPatientTableInspector()

QmitkPatientTableInspector::QmitkPatientTableInspector ( QWidget *  parent = nullptr)

Definition at line 25 of file QmitkPatientTableInspector.cpp.

Member Function Documentation

◆ DataNodeDoubleClicked

void QmitkPatientTableInspector::DataNodeDoubleClicked ( const mitk::DataNode )
signal

Referenced by Initialize().

◆ GetSelectionMode()

QmitkPatientTableInspector::SelectionMode QmitkPatientTableInspector::GetSelectionMode ( ) const
overridevirtual

Implements QmitkAbstractDataStorageInspector.

Definition at line 63 of file QmitkPatientTableInspector.cpp.

◆ GetSelectionModel()

QItemSelectionModel * QmitkPatientTableInspector::GetSelectionModel ( )

Definition at line 78 of file QmitkPatientTableInspector.cpp.

◆ GetView() [1/2]

QAbstractItemView * QmitkPatientTableInspector::GetView ( )
overridevirtual

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

Implements QmitkAbstractDataStorageInspector.

Definition at line 48 of file QmitkPatientTableInspector.cpp.

◆ GetView() [2/2]

const QAbstractItemView * QmitkPatientTableInspector::GetView ( ) const
overridevirtual

Implements QmitkAbstractDataStorageInspector.

Definition at line 53 of file QmitkPatientTableInspector.cpp.

◆ Initialize()

◆ OnContextMenuRequested

void QmitkPatientTableInspector::OnContextMenuRequested ( const QPoint &  )
signal

Referenced by Initialize().

◆ OnNodeRemoved

void QmitkPatientTableInspector::OnNodeRemoved ( const mitk::DataNode )
signal

Referenced by Initialize().

◆ SetCaseID()

void QmitkPatientTableInspector::SetCaseID ( const mitk::SemanticTypes::CaseID caseID)
overridevirtual

Extends the abstract base class to allow setting the current case ID which is needed to access the semantic relations storage. The function sets the case ID in the storage model.

Parameters
caseIDA case ID as string

Implements QmitkAbstractSemanticRelationsStorageInspector.

Definition at line 68 of file QmitkPatientTableInspector.cpp.

References QmitkAbstractSemanticRelationsStorageModel::SetCaseID().

◆ SetLesion()

void QmitkPatientTableInspector::SetLesion ( const mitk::SemanticTypes::Lesion lesion)
overridevirtual

Extends the abstract base class to allow setting the current lesion. The function sets the lesion in the storage model.

Parameters
lesionThe selected lesion

Implements QmitkAbstractSemanticRelationsStorageInspector.

Definition at line 73 of file QmitkPatientTableInspector.cpp.

References QmitkAbstractSemanticRelationsStorageModel::SetLesion().

◆ SetSelectionMode()

void QmitkPatientTableInspector::SetSelectionMode ( SelectionMode  mode)
overridevirtual

Sets the selection mode of the inspector.

Implements QmitkAbstractDataStorageInspector.

Definition at line 58 of file QmitkPatientTableInspector.cpp.


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