Medical Imaging Interaction Toolkit  2023.12.00
Medical Imaging Interaction Toolkit
QmitkNavigationToolManagementWidget Class Reference

An object of this class offers an UI to manage NavigationTools and NavigationToolStorages. This means a user may create, save and load single NavigationTools and/or NavigationToolStorages with this widget. More...

#include <QmitkNavigationToolManagementWidget.h>

Inheritance diagram for QmitkNavigationToolManagementWidget:
Collaboration diagram for QmitkNavigationToolManagementWidget:

Signals

void NewStorageAdded (mitk::NavigationToolStorage::Pointer newStorage, std::string storageName)
 

Public Member Functions

void Initialize (mitk::DataStorage *dataStorage)
 
void LoadStorage (mitk::NavigationToolStorage::Pointer storageToLoad)
 
 QmitkNavigationToolManagementWidget (QWidget *parent=nullptr, Qt::WindowFlags f=nullptr)
 
 ~QmitkNavigationToolManagementWidget () override
 

Static Public Attributes

static const std::string VIEW_ID
 

Protected Slots

void OnAddTool ()
 
void OnDeleteTool ()
 
void OnEditTool ()
 
void OnLoadTool ()
 
void OnSaveTool ()
 
void OnMoveToolUp ()
 
void OnMoveToolDown ()
 
void OnLoadStorage ()
 
void OnSaveStorage ()
 
void OnCreateStorage ()
 
void OnToolSelected ()
 
void OnAddToolCancel ()
 
void OnAddToolSave ()
 

Protected Member Functions

virtual void CreateConnections ()
 Creation of the connections. More...
 
virtual void CreateQtPartControl (QWidget *parent)
 
void MessageBox (const std::string &s)
 
void UpdateToolTable ()
 
void DisableStorageControls ()
 
void EnableStorageControls ()
 

Protected Attributes

Ui::QmitkNavigationToolManagementWidgetControls * m_Controls
 
mitk::DataStoragem_DataStorage
 holds the DataStorage More...
 
mitk::NavigationToolStorage::Pointer m_NavigationToolStorage
 holds the NavigationToolStorage we are working with. More...
 
bool m_edit
 shows if we are in edit mode, if not we create new navigation tool objects. More...
 

Detailed Description

An object of this class offers an UI to manage NavigationTools and NavigationToolStorages. This means a user may create, save and load single NavigationTools and/or NavigationToolStorages with this widget.

Documentation: Be sure to call the Initialize-methode before you start the widget otherwise some errors might occure.

Definition at line 37 of file QmitkNavigationToolManagementWidget.h.

Constructor & Destructor Documentation

◆ QmitkNavigationToolManagementWidget()

QmitkNavigationToolManagementWidget::QmitkNavigationToolManagementWidget ( QWidget *  parent = nullptr,
Qt::WindowFlags  f = nullptr 
)

◆ ~QmitkNavigationToolManagementWidget()

QmitkNavigationToolManagementWidget::~QmitkNavigationToolManagementWidget ( )
override

Member Function Documentation

◆ CreateConnections()

virtual void QmitkNavigationToolManagementWidget::CreateConnections ( )
protectedvirtual

Creation of the connections.

◆ CreateQtPartControl()

virtual void QmitkNavigationToolManagementWidget::CreateQtPartControl ( QWidget *  parent)
protectedvirtual

◆ DisableStorageControls()

void QmitkNavigationToolManagementWidget::DisableStorageControls ( )
protected

◆ EnableStorageControls()

void QmitkNavigationToolManagementWidget::EnableStorageControls ( )
protected

◆ Initialize()

void QmitkNavigationToolManagementWidget::Initialize ( mitk::DataStorage dataStorage)

Initializes the widget. Has to be called before any action, otherwise errors might occur.

◆ LoadStorage()

void QmitkNavigationToolManagementWidget::LoadStorage ( mitk::NavigationToolStorage::Pointer  storageToLoad)

Loads a storage to the widget. The old storage storage is dropped, so be careful, if the storage is not saved somewhere else it might be lost. You might want to ask the user if he wants to save the storage to the harddisk before calling this method.

Parameters
storageToLoadThis storage will be loaded and might be modified by the user.

◆ MessageBox()

void QmitkNavigationToolManagementWidget::MessageBox ( const std::string &  s)
protected

◆ NewStorageAdded

void QmitkNavigationToolManagementWidget::NewStorageAdded ( mitk::NavigationToolStorage::Pointer  newStorage,
std::string  storageName 
)
signal

This signal is emmited if a new storage was added by the widget itself, e.g. because a storage was loaded from the harddisk.

Parameters
newStorageHolds the new storage which was added.
storageNameName of the new storage (e.g. filename)

◆ OnAddTool

void QmitkNavigationToolManagementWidget::OnAddTool ( )
protectedslot

◆ OnAddToolCancel

void QmitkNavigationToolManagementWidget::OnAddToolCancel ( )
protectedslot

◆ OnAddToolSave

void QmitkNavigationToolManagementWidget::OnAddToolSave ( )
protectedslot

◆ OnCreateStorage

void QmitkNavigationToolManagementWidget::OnCreateStorage ( )
protectedslot

◆ OnDeleteTool

void QmitkNavigationToolManagementWidget::OnDeleteTool ( )
protectedslot

◆ OnEditTool

void QmitkNavigationToolManagementWidget::OnEditTool ( )
protectedslot

◆ OnLoadStorage

void QmitkNavigationToolManagementWidget::OnLoadStorage ( )
protectedslot

◆ OnLoadTool

void QmitkNavigationToolManagementWidget::OnLoadTool ( )
protectedslot

◆ OnMoveToolDown

void QmitkNavigationToolManagementWidget::OnMoveToolDown ( )
protectedslot

◆ OnMoveToolUp

void QmitkNavigationToolManagementWidget::OnMoveToolUp ( )
protectedslot

◆ OnSaveStorage

void QmitkNavigationToolManagementWidget::OnSaveStorage ( )
protectedslot

◆ OnSaveTool

void QmitkNavigationToolManagementWidget::OnSaveTool ( )
protectedslot

◆ OnToolSelected

void QmitkNavigationToolManagementWidget::OnToolSelected ( )
protectedslot

◆ UpdateToolTable()

void QmitkNavigationToolManagementWidget::UpdateToolTable ( )
protected

Member Data Documentation

◆ m_Controls

Ui::QmitkNavigationToolManagementWidgetControls* QmitkNavigationToolManagementWidget::m_Controls
protected

Definition at line 92 of file QmitkNavigationToolManagementWidget.h.

◆ m_DataStorage

mitk::DataStorage* QmitkNavigationToolManagementWidget::m_DataStorage
protected

holds the DataStorage

Definition at line 95 of file QmitkNavigationToolManagementWidget.h.

◆ m_edit

bool QmitkNavigationToolManagementWidget::m_edit
protected

shows if we are in edit mode, if not we create new navigation tool objects.

Definition at line 101 of file QmitkNavigationToolManagementWidget.h.

◆ m_NavigationToolStorage

mitk::NavigationToolStorage::Pointer QmitkNavigationToolManagementWidget::m_NavigationToolStorage
protected

holds the NavigationToolStorage we are working with.

Definition at line 98 of file QmitkNavigationToolManagementWidget.h.

◆ VIEW_ID

const std::string QmitkNavigationToolManagementWidget::VIEW_ID
static

Definition at line 42 of file QmitkNavigationToolManagementWidget.h.


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