Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
QmitkToolReferenceDataSelectionBox Class Reference

Display the data selection of a ToolManager. More...

#include <QmitkToolReferenceDataSelectionBox.h>

Inheritance diagram for QmitkToolReferenceDataSelectionBox:
Collaboration diagram for QmitkToolReferenceDataSelectionBox:

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::DataStorageGetDataStorage ()
 
void SetDataStorage (mitk::DataStorage &storage)
 
void Initialize (mitk::DataStorage *)
 initialization with a data storage object More...
 
void UpdateDataDisplay ()
 
mitk::ToolManagerGetToolManager ()
 
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
 
QmitkDataStorageComboBoxm_ReferenceDataSelectionBox
 
bool m_SelfCall
 
DisplayMode m_DisplayMode
 
std::string m_ToolGroupsForFiltering
 
QVBoxLayout * m_Layout
 

Detailed Description

Display the data selection of a ToolManager.

See also
mitk::ToolManager
mitk::DataStorage

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.

Author
maleike

Definition at line 47 of file QmitkToolReferenceDataSelectionBox.h.

Constructor & Destructor Documentation

QmitkToolReferenceDataSelectionBox::QmitkToolReferenceDataSelectionBox ( QWidget *  parent = 0)
QmitkToolReferenceDataSelectionBox::~QmitkToolReferenceDataSelectionBox ( )
virtual

Member Function Documentation

void QmitkToolReferenceDataSelectionBox::EnsureOnlyReferenceImageIsVisibile ( )
protectedslot
mitk::DataStorage::SetOfObjects::ConstPointer QmitkToolReferenceDataSelectionBox::GetAllPossibleReferenceImages ( )
protected
mitk::NodePredicateBase::ConstPointer QmitkToolReferenceDataSelectionBox::GetAllPossibleReferenceImagesPredicate ( )
protected

Build up predicate:

  • ask each tool that is displayed for a predicate (indicating the type of data that this tool will work with)
  • connect all predicates using AND or OR, depending on the parameter m_DisplayMode (ListDataIfAllToolsMatch or ListDataIfAnyToolMatches)
    See also
    SetDisplayMode

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

void QmitkToolReferenceDataSelectionBox::OnReferenceDataSelected ( const mitk::DataNode node)
protectedslot
void QmitkToolReferenceDataSelectionBox::OnToolManagerReferenceDataModified ( )
void QmitkToolReferenceDataSelectionBox::ReferenceNodeSelected ( const mitk::DataNode )
signal
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.

See also
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)

Member Data Documentation

DisplayMode QmitkToolReferenceDataSelectionBox::m_DisplayMode
protected
QVBoxLayout* QmitkToolReferenceDataSelectionBox::m_Layout
protected
QmitkDataStorageComboBox* QmitkToolReferenceDataSelectionBox::m_ReferenceDataSelectionBox
protected
bool QmitkToolReferenceDataSelectionBox::m_SelfCall
protected
std::string QmitkToolReferenceDataSelectionBox::m_ToolGroupsForFiltering
protected

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