Medical Imaging Interaction Toolkit  2023.12.00
Medical Imaging Interaction Toolkit
QmitkDataNodeSelectionProvider Class Reference

A BlueBerry selection provider for mitk::DataNode selections. More...

#include <QmitkDataNodeSelectionProvider.h>

Inheritance diagram for QmitkDataNodeSelectionProvider:
Collaboration diagram for QmitkDataNodeSelectionProvider:

Public Member Functions

 berryObjectMacro (QmitkDataNodeSelectionProvider)
 
 QmitkDataNodeSelectionProvider ()
 
berry::ISelection::ConstPointer GetSelection () const override
 
void SetSelection (const berry::ISelection::ConstPointer &selection, QItemSelectionModel::SelectionFlags flags) override
 
- Public Member Functions inherited from berry::QtSelectionProvider
 berryObjectMacro (QtSelectionProvider)
 
 QtSelectionProvider ()
 
void AddSelectionChangedListener (ISelectionChangedListener *listener) override
 
void RemoveSelectionChangedListener (ISelectionChangedListener *listener) override
 
void SetSelection (const ISelection::ConstPointer &selection) override
 
QItemSelection GetQItemSelection () const
 
void SetQItemSelection (const QItemSelection &selection)
 
QItemSelectionModel * GetItemSelectionModel () const
 
void SetItemSelectionModel (QItemSelectionModel *combo)
 
- Public Member Functions inherited from berry::ISelectionProvider
 berryObjectMacro (berry::ISelectionProvider)
 
 ~ISelectionProvider () override
 
- Public Member Functions inherited from berry::Object
virtual QString GetClassName () const
 
virtual Reflection::TypeInfo GetTypeInfo () const
 
virtual QList< Reflection::TypeInfoGetSuperclasses () const
 
virtual void Delete ()
 
QDebug Print (QDebug os, Indent Indent=0) const
 
virtual QString ToString () const
 
virtual uint HashCode () const
 
virtual bool operator< (const Object *) const
 
void Register () const
 
void UnRegister (bool del=true) const
 
int GetReferenceCount () const
 
void SetReferenceCount (int)
 
void AddDestroyListener (const MessageAbstractDelegate<> &delegate) const
 
void RemoveDestroyListener (const MessageAbstractDelegate<> &delegate) const
 
virtual bool operator== (const Object *) const
 

Protected Member Functions

mitk::DataNodeSelection::ConstPointer GetDataNodeSelection () const
 
void FireSelectionChanged (const QItemSelection &selected, const QItemSelection &deselected) override
 
- Protected Member Functions inherited from berry::Object
 Object ()
 
virtual ~Object ()
 
virtual QDebug PrintSelf (QDebug os, Indent indent) const
 
virtual QDebug PrintHeader (QDebug os, Indent indent) const
 
virtual QDebug PrintTrailer (QDebug os, Indent indent) const
 

Additional Inherited Members

- Public Types inherited from berry::Object
typedef Object Self
 
typedef berry::SmartPointer< SelfPointer
 
typedef berry::SmartPointer< const SelfConstPointer
 
typedef berry::WeakPointer< SelfWeakPtr
 
typedef berry::WeakPointer< const SelfConstWeakPtr
 
- Static Public Member Functions inherited from berry::Object
static const char * GetStaticClassName ()
 
static Reflection::TypeInfo GetStaticTypeInfo ()
 
static QList< Reflection::TypeInfoGetStaticSuperclasses ()
 
- Protected Slots inherited from berry::QtSelectionProvider
- Protected Attributes inherited from berry::QtSelectionProvider
ISelectionChangedListener::Events selectionEvents
 
QItemSelectionModel * qSelectionModel
 
- Protected Attributes inherited from berry::Object
QAtomicInt m_ReferenceCount
 
QMutex m_ReferenceCountLock
 

Detailed Description

A BlueBerry selection provider for mitk::DataNode selections.

This class works together with a Qt item selection model which holds the actual selection. The underlying Qt model must support the data role QmitkDataNodeRole and return a mitk::DataNode::Pointer object for each QModelIndex in the selection.

You can set a Qt item selection model using QtSelectionProvider::SetItemSelectionModel().

Definition at line 33 of file QmitkDataNodeSelectionProvider.h.

Constructor & Destructor Documentation

◆ QmitkDataNodeSelectionProvider()

QmitkDataNodeSelectionProvider::QmitkDataNodeSelectionProvider ( )

Member Function Documentation

◆ berryObjectMacro()

QmitkDataNodeSelectionProvider::berryObjectMacro ( QmitkDataNodeSelectionProvider  )

◆ FireSelectionChanged()

void QmitkDataNodeSelectionProvider::FireSelectionChanged ( const QItemSelection &  selected,
const QItemSelection &  deselected 
)
overrideprotectedvirtual

Reimplemented from berry::QtSelectionProvider.

◆ GetDataNodeSelection()

mitk::DataNodeSelection::ConstPointer QmitkDataNodeSelectionProvider::GetDataNodeSelection ( ) const
protected

◆ GetSelection()

berry::ISelection::ConstPointer QmitkDataNodeSelectionProvider::GetSelection ( ) const
overridevirtual

This method will always return a mitk::DataNodeSelection object.

Reimplemented from berry::QtSelectionProvider.

◆ SetSelection()

void QmitkDataNodeSelectionProvider::SetSelection ( const berry::ISelection::ConstPointer selection,
QItemSelectionModel::SelectionFlags  flags 
)
overridevirtual

Reimplemented from berry::QtSelectionProvider.


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