Medical Imaging Interaction Toolkit
2016.11.0
Medical Imaging Interaction Toolkit
|
Display the data selection of a ToolManager. More...
#include <QmitkToolReferenceDataSelectionBox.h>
Public Types | |
enum | DisplayMode { ListDataIfAllToolsMatch, ListDataIfAnyToolMatches } |
What kind of items should be displayed. More... | |
Signals | |
void | ReferenceNodeSelected (const mitk::DataNode *) |
Public Member Functions | |
QmitkToolReferenceDataSelectionBox (QWidget *parent=0) | |
virtual | ~QmitkToolReferenceDataSelectionBox () |
mitk::DataStorage * | GetDataStorage () |
void | SetDataStorage (mitk::DataStorage &storage) |
void | Initialize (mitk::DataStorage *) |
initialization with a data storage object More... | |
void | UpdateDataDisplay () |
mitk::ToolManager * | GetToolManager () |
void | SetToolManager (mitk::ToolManager &) |
void | OnToolManagerReferenceDataModified () |
void | SetToolGroupsForFiltering (const std::string &groups) |
No brief description. More... | |
void | SetDisplayMode (DisplayMode mode) |
How the list contents is determined. More... | |
Protected Slots | |
void | OnReferenceDataSelected (const mitk::DataNode *node) |
void | EnsureOnlyReferenceImageIsVisibile () |
Protected Member Functions | |
mitk::DataStorage::SetOfObjects::ConstPointer | GetAllPossibleReferenceImages () |
mitk::NodePredicateBase::ConstPointer | GetAllPossibleReferenceImagesPredicate () |
Protected Attributes | |
mitk::ToolManager::Pointer | m_ToolManager |
QmitkDataStorageComboBox * | m_ReferenceDataSelectionBox |
bool | m_SelfCall |
DisplayMode | m_DisplayMode |
std::string | m_ToolGroupsForFiltering |
QVBoxLayout * | m_Layout |
Display the data selection of a ToolManager.
There is a separate page describing the general design of QmitkInteractiveSegmentation: QmitkInteractiveSegmentationTechnicalPage
Shows the reference data of a ToolManager in a segmentation setting.
The reference image can be selected from a combobox, where all images of the scene are listed.
Definition at line 47 of file QmitkToolReferenceDataSelectionBox.h.
QmitkToolReferenceDataSelectionBox::QmitkToolReferenceDataSelectionBox | ( | QWidget * | parent = 0 | ) |
Definition at line 32 of file QmitkToolReferenceDataSelectionBox.cpp.
References mitk::ToolManagerProvider::GetInstance(), mitk::ToolManagerProvider::GetToolManager(), m_Layout, m_ReferenceDataSelectionBox, m_ToolManager, OnReferenceDataSelected(), and OnToolManagerReferenceDataModified().
|
virtual |
Definition at line 52 of file QmitkToolReferenceDataSelectionBox.cpp.
References m_ToolManager, and OnToolManagerReferenceDataModified().
|
protectedslot |
Definition at line 111 of file QmitkToolReferenceDataSelectionBox.cpp.
References GetAllPossibleReferenceImages(), mitk::RenderingManager::GetInstance(), m_ToolManager, mitk::RenderingManager::RequestUpdateAll(), and mitk::DataNode::SetVisibility().
Referenced by OnReferenceDataSelected(), and UpdateDataDisplay().
|
protected |
display everything matching the predicate
Definition at line 187 of file QmitkToolReferenceDataSelectionBox.cpp.
References mitk::DataStorage::GetAll(), GetAllPossibleReferenceImagesPredicate(), mitk::DataStorage::GetSubset(), m_ToolManager, and mitk::New().
Referenced by EnsureOnlyReferenceImageIsVisibile().
|
protected |
Build up predicate:
Definition at line 140 of file QmitkToolReferenceDataSelectionBox.cpp.
References mitk::Tool::GetGroup(), mitk::Tool::GetName(), mitk::Tool::GetReferenceDataPreference(), ListDataIfAnyToolMatches, m_DisplayMode, m_ToolGroupsForFiltering, m_ToolManager, mitk::NodePredicateOr::New(), and mitk::NodePredicateAnd::New().
Referenced by GetAllPossibleReferenceImages(), and UpdateDataDisplay().
mitk::DataStorage * QmitkToolReferenceDataSelectionBox::GetDataStorage | ( | ) |
Definition at line 58 of file QmitkToolReferenceDataSelectionBox.cpp.
References m_ToolManager.
mitk::ToolManager * QmitkToolReferenceDataSelectionBox::GetToolManager | ( | ) |
Definition at line 75 of file QmitkToolReferenceDataSelectionBox.cpp.
References m_ToolManager.
void QmitkToolReferenceDataSelectionBox::Initialize | ( | mitk::DataStorage * | storage | ) |
initialization with a data storage object
Definition at line 68 of file QmitkToolReferenceDataSelectionBox.cpp.
References m_ReferenceDataSelectionBox, QmitkDataStorageComboBox::SetDataStorage(), and UpdateDataDisplay().
|
protectedslot |
Definition at line 100 of file QmitkToolReferenceDataSelectionBox.cpp.
References EnsureOnlyReferenceImageIsVisibile(), m_SelfCall, m_ToolManager, and ReferenceNodeSelected().
Referenced by QmitkToolReferenceDataSelectionBox().
void QmitkToolReferenceDataSelectionBox::OnToolManagerReferenceDataModified | ( | ) |
Definition at line 129 of file QmitkToolReferenceDataSelectionBox.cpp.
References m_SelfCall, m_ToolManager, ReferenceNodeSelected(), and UpdateDataDisplay().
Referenced by QmitkToolReferenceDataSelectionBox(), SetToolManager(), and ~QmitkToolReferenceDataSelectionBox().
|
signal |
Referenced by OnReferenceDataSelected(), and OnToolManagerReferenceDataModified().
void QmitkToolReferenceDataSelectionBox::SetDataStorage | ( | mitk::DataStorage & | storage | ) |
Definition at line 63 of file QmitkToolReferenceDataSelectionBox.cpp.
References m_ToolManager.
void QmitkToolReferenceDataSelectionBox::SetDisplayMode | ( | QmitkToolReferenceDataSelectionBox::DisplayMode | mode | ) |
How the list contents is determined.
See also documentation of DisplayMode.
Definition at line 231 of file QmitkToolReferenceDataSelectionBox.cpp.
References m_DisplayMode, and UpdateDataDisplay().
void QmitkToolReferenceDataSelectionBox::SetToolGroupsForFiltering | ( | const std::string & | groups | ) |
No brief description.
Should be called to restrict the number of tools that are evaluated to build up the list. Default is to ask all tools for their predicate, by setting the 'groups' string this can be restricted to certain groups of tools or single tools.
Definition at line 225 of file QmitkToolReferenceDataSelectionBox.cpp.
References m_ToolGroupsForFiltering, and UpdateDataDisplay().
void QmitkToolReferenceDataSelectionBox::SetToolManager | ( | mitk::ToolManager & | newManager | ) |
Definition at line 80 of file QmitkToolReferenceDataSelectionBox.cpp.
References m_ToolManager, OnToolManagerReferenceDataModified(), and UpdateDataDisplay().
void QmitkToolReferenceDataSelectionBox::UpdateDataDisplay | ( | ) |
Definition at line 94 of file QmitkToolReferenceDataSelectionBox.cpp.
References EnsureOnlyReferenceImageIsVisibile(), GetAllPossibleReferenceImagesPredicate(), m_ReferenceDataSelectionBox, and QmitkDataStorageComboBox::SetPredicate().
Referenced by Initialize(), OnToolManagerReferenceDataModified(), SetDisplayMode(), SetToolGroupsForFiltering(), and SetToolManager().
|
protected |
Definition at line 124 of file QmitkToolReferenceDataSelectionBox.h.
Referenced by GetAllPossibleReferenceImagesPredicate(), and SetDisplayMode().
|
protected |
Definition at line 127 of file QmitkToolReferenceDataSelectionBox.h.
Referenced by QmitkToolReferenceDataSelectionBox().
|
protected |
Definition at line 120 of file QmitkToolReferenceDataSelectionBox.h.
Referenced by Initialize(), QmitkToolReferenceDataSelectionBox(), and UpdateDataDisplay().
|
protected |
Definition at line 122 of file QmitkToolReferenceDataSelectionBox.h.
Referenced by OnReferenceDataSelected(), and OnToolManagerReferenceDataModified().
|
protected |
Definition at line 125 of file QmitkToolReferenceDataSelectionBox.h.
Referenced by GetAllPossibleReferenceImagesPredicate(), and SetToolGroupsForFiltering().
|
protected |
Definition at line 118 of file QmitkToolReferenceDataSelectionBox.h.
Referenced by EnsureOnlyReferenceImageIsVisibile(), GetAllPossibleReferenceImages(), GetAllPossibleReferenceImagesPredicate(), GetDataStorage(), GetToolManager(), OnReferenceDataSelected(), OnToolManagerReferenceDataModified(), QmitkToolReferenceDataSelectionBox(), SetDataStorage(), SetToolManager(), and ~QmitkToolReferenceDataSelectionBox().