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

A view that shows all data nodes of the data storage in a qt tree view. More...

#include <QmitkDataManagerView.h>

Inheritance diagram for QmitkDataManagerView:
Collaboration diagram for QmitkDataManagerView:

Public Slots

void OnPreferencesChanged (const mitk::IPreferences *prefs) override
 
void NodeTreeViewRowsInserted (const QModelIndex &parent, int start, int end)
 When rows are inserted auto expand them. More...
 
void NodeTreeViewRowsRemoved (const QModelIndex &parent, int start, int end)
 will setup m_CurrentRowCount More...
 
void NodeSelectionChanged (const QItemSelection &selected, const QItemSelection &deselected)
 Whenever the selection changes set the "selected" property respectively. More...
 
void OnNodeVisibilityChanged ()
 

Public Member Functions

 QmitkDataManagerView ()
 
 ~QmitkDataManagerView () override
 
- Public Member Functions inherited from QmitkAbstractView
 berryObjectMacro (QmitkAbstractView)
 
 QmitkAbstractView ()
 
 ~QmitkAbstractView () override
 
- Public Member Functions inherited from berry::QtViewPart
 berryObjectMacro (QtViewPart)
 
- Public Member Functions inherited from berry::ViewPart
 berryObjectMacro (ViewPart, WorkbenchPart, IViewPart)
 
void Init (IViewSite::Pointer site, IMemento::Pointer memento=IMemento::Pointer(nullptr)) override
 
void SaveState (IMemento::Pointer memento) override
 
IViewSite::Pointer GetViewSite () override
 
- Public Member Functions inherited from berry::WorkbenchPart
 berryObjectMacro (WorkbenchPart, QObject, IWorkbenchPart, IExecutableExtension)
 
 ~WorkbenchPart () override
 
void AddPropertyListener (IPropertyChangeListener *l) override
 
void RemovePropertyListener (IPropertyChangeListener *l) override
 
void SetPartProperty (const QString &key, const QString &value) override
 
QString GetPartProperty (const QString &key) const override
 
const QHash< QString, QString > & GetPartProperties () const override
 
void SetInitializationData (const IConfigurationElement::Pointer &cfig, const QString &propertyName, const Object::Pointer &data) override
 
IWorkbenchPartSite::Pointer GetSite () const override
 
QString GetPartName () const override
 
QString GetContentDescription () const override
 
QIcon GetTitleImage () const override
 
QString GetTitleToolTip () const override
 
- Public Member Functions inherited from berry::IWorkbenchPart
 berryObjectMacro (berry::IWorkbenchPart, Object)
 
 ~IWorkbenchPart () 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
 
- Public Member Functions inherited from berry::IExecutableExtension
virtual ~IExecutableExtension ()
 
virtual void SetInitializationData (const SmartPointer< IConfigurationElement > &config, const QString &propertyName, const Object::Pointer &data)=0
 
- Public Member Functions inherited from berry::IViewPart
 berryObjectMacro (berry::IViewPart, IWorkbenchPart)
 
 ~IViewPart () override
 

Static Public Attributes

static const QString VIEW_ID
 

Protected Member Functions

void CreateQtPartControl (QWidget *parent) override
 
void SetFocus () override
 
void NodeChanged (const mitk::DataNode *node) override
 
- Protected Member Functions inherited from QmitkAbstractView
void FireNodeSelected (mitk::DataNode::Pointer node)
 
virtual void FireNodesSelected (const QList< mitk::DataNode::Pointer > &nodes)
 
QList< mitk::DataNode::PointerGetCurrentSelection () const
 
bool IsCurrentSelectionValid () const
 
QList< mitk::DataNode::PointerGetDataManagerSelection () const
 
bool IsDataManagerSelectionValid () const
 
void SetDataManagerSelection (const berry::ISelection::ConstPointer &selection, QItemSelectionModel::SelectionFlags flags=QItemSelectionModel::ClearAndSelect) const
 
void SynchronizeDataManagerSelection () const
 
virtual mitk::IPreferencesGetPreferences () const
 
mitk::IDataStorageReference::Pointer GetDataStorageReference () const
 
mitk::DataStorage::Pointer GetDataStorage () const
 
mitk::IRenderWindowPartGetRenderWindowPart (mitk::WorkbenchUtil::IRenderWindowPartStrategies strategies=mitk::WorkbenchUtil::NONE) const
 
void RequestRenderWindowUpdate (mitk::RenderingManager::RequestType requestType=mitk::RenderingManager::REQUEST_UPDATE_ALL)
 
void HandleException (std::exception &e, QWidget *parent=nullptr, bool showDialog=true) const
 
void HandleException (const char *str, QWidget *parent=nullptr, bool showDialog=true) const
 
void WaitCursorOn ()
 
void WaitCursorOff ()
 
void BusyCursorOn ()
 
void BusyCursorOff ()
 
void RestoreOverrideCursor ()
 
- Protected Member Functions inherited from berry::ViewPart
 ViewPart ()
 
void CheckSite (IWorkbenchPartSite::Pointer site) override
 
- Protected Member Functions inherited from berry::WorkbenchPart
 WorkbenchPart ()
 
IConfigurationElement::Pointer GetConfigurationElement () const
 
void SetSite (IWorkbenchPartSite::Pointer site)
 
virtual void SetTitleImage (const QIcon &titleImage)
 
virtual void SetTitleToolTip (const QString &toolTip)
 
virtual void SetPartName (const QString &partName)
 
virtual void SetContentDescription (const QString &description)
 
void FirePropertyChanged (const QString &key, const QString &oldValue, const QString &newValue)
 
void FirePropertyChange (int propertyId)
 
- 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
 

Protected Attributes

QWidget * m_Parent
 
QmitkDnDFrameWidgetm_DnDFrameWidget
 
QmitkDataStorageTreeModelm_NodeTreeModel
 A plain widget as the base pane. More...
 
QmitkDataStorageFilterProxyModelm_FilterModel
 
mitk::NodePredicateBase::Pointer m_HelperObjectFilterPredicate
 
mitk::NodePredicateBase::Pointer m_NodeWithNoDataFilterPredicate
 
QTreeView * m_NodeTreeView
 The Table view to show the selected nodes. More...
 
QmitkDataNodeContextMenum_DataNodeContextMenu
 The context menu that shows up when right clicking on a node. More...
 
size_t m_CurrentRowCount
 saves the current amount of rows shown in the data manager More...
 
QmitkDataManagerItemDelegate * m_ItemDelegate
 
- Protected Attributes inherited from berry::Object
QAtomicInt m_ReferenceCount
 
QMutex m_ReferenceCountLock
 

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

Detailed Description

A view that shows all data nodes of the data storage in a qt tree view.

Definition at line 43 of file QmitkDataManagerView.h.

Constructor & Destructor Documentation

◆ QmitkDataManagerView()

QmitkDataManagerView::QmitkDataManagerView ( )

◆ ~QmitkDataManagerView()

QmitkDataManagerView::~QmitkDataManagerView ( )
override

Member Function Documentation

◆ CreateQtPartControl()

void QmitkDataManagerView::CreateQtPartControl ( QWidget *  parent)
overrideprotectedvirtual

Implements berry::QtViewPart.

◆ NodeChanged()

void QmitkDataManagerView::NodeChanged ( const mitk::DataNode node)
overrideprotectedvirtual

React to node changes. Overridden from QmitkAbstractView.

Reimplemented from QmitkAbstractView.

◆ NodeSelectionChanged

void QmitkDataManagerView::NodeSelectionChanged ( const QItemSelection &  selected,
const QItemSelection &  deselected 
)
slot

Whenever the selection changes set the "selected" property respectively.

◆ NodeTreeViewRowsInserted

void QmitkDataManagerView::NodeTreeViewRowsInserted ( const QModelIndex &  parent,
int  start,
int  end 
)
slot

When rows are inserted auto expand them.

◆ NodeTreeViewRowsRemoved

void QmitkDataManagerView::NodeTreeViewRowsRemoved ( const QModelIndex &  parent,
int  start,
int  end 
)
slot

will setup m_CurrentRowCount

◆ OnNodeVisibilityChanged

void QmitkDataManagerView::OnNodeVisibilityChanged ( )
slot

◆ OnPreferencesChanged

void QmitkDataManagerView::OnPreferencesChanged ( const mitk::IPreferences prefs)
overrideslot

◆ SetFocus()

void QmitkDataManagerView::SetFocus ( )
overrideprotectedvirtual

Asks this part to take focus within the workbench.

Clients should not call this method (the workbench calls this method at appropriate times). To have the workbench activate a part, use IWorkbenchPage.activate(IWorkbenchPart) instead.

Implements berry::WorkbenchPart.

Member Data Documentation

◆ m_CurrentRowCount

size_t QmitkDataManagerView::m_CurrentRowCount
protected

saves the current amount of rows shown in the data manager

Definition at line 107 of file QmitkDataManagerView.h.

◆ m_DataNodeContextMenu

QmitkDataNodeContextMenu* QmitkDataManagerView::m_DataNodeContextMenu
protected

The context menu that shows up when right clicking on a node.

Definition at line 104 of file QmitkDataManagerView.h.

◆ m_DnDFrameWidget

QmitkDnDFrameWidget* QmitkDataManagerView::m_DnDFrameWidget
protected

Definition at line 87 of file QmitkDataManagerView.h.

◆ m_FilterModel

QmitkDataStorageFilterProxyModel* QmitkDataManagerView::m_FilterModel
protected

Definition at line 93 of file QmitkDataManagerView.h.

◆ m_HelperObjectFilterPredicate

mitk::NodePredicateBase::Pointer QmitkDataManagerView::m_HelperObjectFilterPredicate
protected

Definition at line 94 of file QmitkDataManagerView.h.

◆ m_ItemDelegate

QmitkDataManagerItemDelegate* QmitkDataManagerView::m_ItemDelegate
protected

Definition at line 109 of file QmitkDataManagerView.h.

◆ m_NodeTreeModel

QmitkDataStorageTreeModel* QmitkDataManagerView::m_NodeTreeModel
protected

A plain widget as the base pane.

Definition at line 92 of file QmitkDataManagerView.h.

◆ m_NodeTreeView

QTreeView* QmitkDataManagerView::m_NodeTreeView
protected

The Table view to show the selected nodes.

Definition at line 100 of file QmitkDataManagerView.h.

◆ m_NodeWithNoDataFilterPredicate

mitk::NodePredicateBase::Pointer QmitkDataManagerView::m_NodeWithNoDataFilterPredicate
protected

Definition at line 95 of file QmitkDataManagerView.h.

◆ m_Parent

QWidget* QmitkDataManagerView::m_Parent
protected

Definition at line 86 of file QmitkDataManagerView.h.

◆ VIEW_ID

const QString QmitkDataManagerView::VIEW_ID
static

Definition at line 49 of file QmitkDataManagerView.h.


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