Medical Imaging Interaction Toolkit
2016.11.0
Medical Imaging Interaction Toolkit
|
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>
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=0, Qt::WindowFlags f=0) | |
~QmitkNavigationToolManagementWidget () | |
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 | OnAddToolCancel () |
void | OnAddToolSave () |
Protected Member Functions | |
virtual void | CreateConnections () |
Creation of the connections. More... | |
virtual void | CreateQtPartControl (QWidget *parent) |
void | MessageBox (std::string s) |
void | UpdateToolTable () |
void | DisableStorageControls () |
void | EnableStorageControls () |
Protected Attributes | |
Ui::QmitkNavigationToolManagementWidgetControls * | m_Controls |
mitk::DataStorage * | m_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... | |
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 41 of file QmitkNavigationToolManagementWidget.h.
QmitkNavigationToolManagementWidget::QmitkNavigationToolManagementWidget | ( | QWidget * | parent = 0 , |
Qt::WindowFlags | f = 0 |
||
) |
Definition at line 38 of file QmitkNavigationToolManagementWidget.cpp.
References CreateConnections(), CreateQtPartControl(), and m_Controls.
QmitkNavigationToolManagementWidget::~QmitkNavigationToolManagementWidget | ( | ) |
Definition at line 46 of file QmitkNavigationToolManagementWidget.cpp.
|
protectedvirtual |
Creation of the connections.
Definition at line 100 of file QmitkNavigationToolManagementWidget.cpp.
References m_Controls, OnAddTool(), OnAddToolCancel(), OnAddToolSave(), OnCreateStorage(), OnDeleteTool(), OnEditTool(), OnLoadStorage(), OnLoadTool(), OnMoveToolDown(), OnMoveToolUp(), OnSaveStorage(), and OnSaveTool().
Referenced by QmitkNavigationToolManagementWidget().
|
protectedvirtual |
Definition at line 50 of file QmitkNavigationToolManagementWidget.cpp.
References DisableStorageControls(), and m_Controls.
Referenced by QmitkNavigationToolManagementWidget().
|
protected |
Definition at line 367 of file QmitkNavigationToolManagementWidget.cpp.
References m_Controls.
Referenced by CreateQtPartControl(), and LoadStorage().
|
protected |
Definition at line 383 of file QmitkNavigationToolManagementWidget.cpp.
References m_Controls.
Referenced by LoadStorage(), and OnCreateStorage().
void QmitkNavigationToolManagementWidget::Initialize | ( | mitk::DataStorage * | dataStorage | ) |
Initializes the widget. Has to be called before any action, otherwise errors might occur.
Definition at line 122 of file QmitkNavigationToolManagementWidget.cpp.
References m_Controls, and m_DataStorage.
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.
storageToLoad | This storage will be loaded and might be modified by the user. |
Definition at line 128 of file QmitkNavigationToolManagementWidget.cpp.
References DisableStorageControls(), EnableStorageControls(), m_Controls, m_NavigationToolStorage, and UpdateToolTable().
Referenced by OnLoadStorage().
|
protected |
Definition at line 360 of file QmitkNavigationToolManagementWidget.cpp.
Referenced by OnAddTool(), OnDeleteTool(), OnEditTool(), OnLoadStorage(), OnLoadTool(), OnSaveStorage(), and OnSaveTool().
|
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.
newStorage | Holds the new storage which was added. |
storageName | Name of the new storage (e.g. filename) |
Referenced by OnCreateStorage(), and OnLoadStorage().
|
protectedslot |
Definition at line 191 of file QmitkNavigationToolManagementWidget.cpp.
References m_Controls, m_DataStorage, m_edit, m_NavigationToolStorage, and MessageBox().
Referenced by CreateConnections().
|
protectedslot |
Definition at line 327 of file QmitkNavigationToolManagementWidget.cpp.
References m_Controls.
Referenced by CreateConnections().
|
protectedslot |
Definition at line 307 of file QmitkNavigationToolManagementWidget.cpp.
References m_Controls, m_edit, m_NavigationToolStorage, and UpdateToolTable().
Referenced by CreateConnections().
|
protectedslot |
Definition at line 246 of file QmitkNavigationToolManagementWidget.cpp.
References EnableStorageControls(), m_Controls, m_DataStorage, m_NavigationToolStorage, mitk::NavigationToolStorage::New(), and NewStorageAdded().
Referenced by CreateConnections().
|
protectedslot |
Definition at line 206 of file QmitkNavigationToolManagementWidget.cpp.
References m_Controls, m_DataStorage, m_NavigationToolStorage, MessageBox(), mitk::DataStorage::Remove(), and UpdateToolTable().
Referenced by CreateConnections().
|
protectedslot |
Definition at line 226 of file QmitkNavigationToolManagementWidget.cpp.
References m_Controls, m_edit, m_NavigationToolStorage, and MessageBox().
Referenced by CreateConnections().
|
protectedslot |
Definition at line 257 of file QmitkNavigationToolManagementWidget.cpp.
References filename, LoadStorage(), m_DataStorage, m_NavigationToolStorage, MessageBox(), mitk::New(), and NewStorageAdded().
Referenced by CreateConnections().
|
protectedslot |
Definition at line 63 of file QmitkNavigationToolManagementWidget.cpp.
References filename, m_DataStorage, m_NavigationToolStorage, MessageBox(), mitk::NavigationToolReader::New(), mitk::DataStorage::Remove(), and UpdateToolTable().
Referenced by CreateConnections().
|
protectedslot |
Definition at line 170 of file QmitkNavigationToolManagementWidget.cpp.
References m_Controls, m_NavigationToolStorage, MITK_WARN, and UpdateToolTable().
Referenced by CreateConnections().
|
protectedslot |
Definition at line 149 of file QmitkNavigationToolManagementWidget.cpp.
References m_Controls, m_NavigationToolStorage, MITK_WARN, and UpdateToolTable().
Referenced by CreateConnections().
|
protectedslot |
Definition at line 283 of file QmitkNavigationToolManagementWidget.cpp.
References filename, m_Controls, m_NavigationToolStorage, MessageBox(), and mitk::NavigationToolStorageSerializer::New().
Referenced by CreateConnections().
|
protectedslot |
Definition at line 87 of file QmitkNavigationToolManagementWidget.cpp.
References filename, m_Controls, m_NavigationToolStorage, MessageBox(), and mitk::NavigationToolWriter::New().
Referenced by CreateConnections().
|
protected |
Definition at line 335 of file QmitkNavigationToolManagementWidget.cpp.
References mitk::NavigationTool::Fiducial, mitk::NavigationTool::Instrument, m_Controls, m_NavigationToolStorage, and mitk::NavigationTool::Skinmarker.
Referenced by LoadStorage(), OnAddToolSave(), OnDeleteTool(), OnLoadTool(), OnMoveToolDown(), and OnMoveToolUp().
|
protected |
Definition at line 95 of file QmitkNavigationToolManagementWidget.h.
Referenced by CreateConnections(), CreateQtPartControl(), DisableStorageControls(), EnableStorageControls(), Initialize(), LoadStorage(), OnAddTool(), OnAddToolCancel(), OnAddToolSave(), OnCreateStorage(), OnDeleteTool(), OnEditTool(), OnMoveToolDown(), OnMoveToolUp(), OnSaveStorage(), OnSaveTool(), QmitkNavigationToolManagementWidget(), and UpdateToolTable().
|
protected |
holds the DataStorage
Definition at line 98 of file QmitkNavigationToolManagementWidget.h.
Referenced by Initialize(), OnAddTool(), OnCreateStorage(), OnDeleteTool(), OnLoadStorage(), and OnLoadTool().
|
protected |
shows if we are in edit mode, if not we create new navigation tool objects.
Definition at line 104 of file QmitkNavigationToolManagementWidget.h.
Referenced by OnAddTool(), OnAddToolSave(), and OnEditTool().
|
protected |
holds the NavigationToolStorage we are working with.
Definition at line 101 of file QmitkNavigationToolManagementWidget.h.
Referenced by LoadStorage(), OnAddTool(), OnAddToolSave(), OnCreateStorage(), OnDeleteTool(), OnEditTool(), OnLoadStorage(), OnLoadTool(), OnMoveToolDown(), OnMoveToolUp(), OnSaveStorage(), OnSaveTool(), and UpdateToolTable().
|
static |
Definition at line 46 of file QmitkNavigationToolManagementWidget.h.