Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
QmitkFunctionalityComponentContainer Class Reference

ContainerClass for components. More...

#include <QmitkFunctionalityComponentContainer.h>

Inheritance diagram for QmitkFunctionalityComponentContainer:
Collaboration diagram for QmitkFunctionalityComponentContainer:

Public Slots

virtual void SetContentContainerVisibility (bool)
 Method to set the "GetContentContainer"-visible or not, addicted to the visibility of a parent-component and the status of the checkable ComboBox from "GetMainCheckBoxContainer()". More...
 
virtual void TreeChanged ()
 
virtual void DataStorageChanged (mitk::DataStorage::Pointer ds)
 

Public Member Functions

 QmitkFunctionalityComponentContainer (QObject *parent=0, const char *parentName=0, bool updateSelector=true, bool showSelector=true)
 Standard-Constructor. More...
 
virtual ~QmitkFunctionalityComponentContainer ()
 Destructor. More...
 
virtual void CreateConnections ()
 Method to create all Signale-Slot-Connections. More...
 
virtual void CreateQtPartControl (QWidget *parent, mitk::DataStorage::Pointer dataStorage)
 Method to create the GUI-Object. More...
 
void CreateNavigationButtons ()
 Method to create the forward and backward -buttons to navigate through the wizard. More...
 
void SetWizardText (const QString &text)
 Method to create a textLabel at the Top of the wizard where a description can be created. More...
 
Ui::QmitkFunctionalityComponentContainerGUI * GetFunctionalityComponentContainerGUI ()
 also the Graphical User Interface for the component, like m_GUI, but with its specific type More...
 
virtual void SetDataStorage (mitk::DataStorage::Pointer dataStorage)
 Method to set the DataStorage. More...
 
virtual mitk::DataStorage::Pointer GetDataStorage ()
 Method to get the DataStorage. More...
 
virtual void SetComponentName (QString name)
 Method to set the Name of the FunctionalityComponent. More...
 
virtual QString GetComponentName ()
 Method to get the Name of the FunctionalityComponent. More...
 
QWidget * GetGUI ()
 Method to get the GUI of this component. More...
 
virtual QmitkDataStorageComboBoxGetTreeNodeSelector ()
 
virtual void SetSelectorVisibility (bool visibility)
 Method to set the Image Selector visible or invisible. More...
 
QmitkStdMultiWidgetGetMultiWidget ()
 
virtual QGroupBox * GetContentContainer ()
 Method to return the ComboBox that includes all GUI-elements instead of the outermost checkable CheckBox and that can be set visible or not. More...
 
virtual QGroupBox * GetMainCheckBoxContainer ()
 Method to return the outermost checkable ComboBox that is to decide whether the content shall be shown or not. More...
 
virtual void SetShowTreeNodeSelector (bool show)
 Method to set the Tree-Node-Selector visible or not as his parent group-box is set shown or not. More...
 
virtual QGroupBox * GetImageContent ()
 Method to return the group-box that contains the tree-node-selector. More...
 
virtual mitk::ImageGetParentMitkImage ()
 Method to return the Image Selected in the Container Combo Box. More...
 
QPushButton * GetNextButton ()
 Method to return the NextButton to switch to the next widgetStackPage. More...
 
QPushButton * GetBackButton ()
 Method to return the BackButton to switch to the last widgetStackPage. More...
 
virtual void AddComponent (QmitkFunctionalityComponentContainer *componentContainer)
 method to add components into this component. More...
 
virtual void AddComponent (QmitkFunctionalityComponentContainer *componentContainer, QString label, int stackPage)
 method to add components into this component. More...
 
virtual void TreeChanged (const itk::EventObject &treeChangedEvent)
 
virtual void Activated ()
 
virtual void Deactivated ()
 
void ImageSelected (const mitk::DataNode *item)
 Slot method that will be called if TreeNodeSelector widget was activated. More...
 

Public Attributes

bool m_UpdateSelector
 Attribute to decide whether the selector shall be updated when a parent-Selector is updatet or not. More...
 
bool m_ShowSelector
 Attribute to decide whether the selector shall be shown or not. More...
 

Protected Member Functions

virtual void UpdateDataTreeComboBoxes ()
 Method to update the content of all DataTreeComboBoxes. More...
 

Protected Attributes

unsigned long m_ObserverTag
 
QWidget * m_GUI
 
bool m_Active
 
QmitkDataStorageComboBoxm_SelectedItem
 
mitk::DataStorage::Pointer m_DataStorage
 

Detailed Description

ContainerClass for components.

  • QmitkBaseFunctionalityComponent

Overview

The FunctionalityComponentContainer is a containerclass for several components inherit from it. All Components including to one FunctionalityComponentContainer can be used together as one applied functionality. I.e. in particular that new functionalities can be combined with different components. As common ground for all inherit classes the FunctionalityComponentContainer includes a selector for marked data like image(s), segmentation(s) or model(s).

Definition at line 52 of file QmitkFunctionalityComponentContainer.h.

Constructor & Destructor Documentation

QmitkFunctionalityComponentContainer::QmitkFunctionalityComponentContainer ( QObject *  parent = 0,
const char *  parentName = 0,
bool  updateSelector = true,
bool  showSelector = true 
)

Standard-Constructor.

Definition at line 40 of file QmitkFunctionalityComponentContainer.cpp.

QmitkFunctionalityComponentContainer::~QmitkFunctionalityComponentContainer ( )
virtual

Destructor.

Definition at line 61 of file QmitkFunctionalityComponentContainer.cpp.

Member Function Documentation

void QmitkFunctionalityComponentContainer::Activated ( )
virtual

Definition at line 303 of file QmitkFunctionalityComponentContainer.cpp.

References m_Active, and TreeChanged().

Referenced by SetContentContainerVisibility().

void QmitkFunctionalityComponentContainer::AddComponent ( QmitkFunctionalityComponentContainer componentContainer)
virtual

method to add components into this component.

Definition at line 324 of file QmitkFunctionalityComponentContainer.cpp.

References CreateConnections(), and m_GUI.

void QmitkFunctionalityComponentContainer::AddComponent ( QmitkFunctionalityComponentContainer componentContainer,
QString  label,
int  stackPage 
)
virtual

method to add components into this component.

Definition at line 353 of file QmitkFunctionalityComponentContainer.cpp.

References CreateConnections(), CreateQtPartControl(), GetGUI(), m_DataStorage, and m_GUI.

void QmitkFunctionalityComponentContainer::CreateConnections ( )
virtual

Method to create all Signale-Slot-Connections.

Definition at line 134 of file QmitkFunctionalityComponentContainer.cpp.

References ImageSelected(), and SetContentContainerVisibility().

Referenced by AddComponent(), and CreateQtPartControl().

void QmitkFunctionalityComponentContainer::CreateNavigationButtons ( )

Method to create the forward and backward -buttons to navigate through the wizard.

Definition at line 405 of file QmitkFunctionalityComponentContainer.cpp.

References GetImageContent(), m_GUI, and SetWizardText().

void QmitkFunctionalityComponentContainer::CreateQtPartControl ( QWidget *  parent,
mitk::DataStorage::Pointer  dataStorage 
)
virtual

Method to create the GUI-Object.

Definition at line 239 of file QmitkFunctionalityComponentContainer.cpp.

References CreateConnections(), m_GUI, mitk::NodePredicateDataType::New(), and SetDataStorage().

Referenced by AddComponent().

void QmitkFunctionalityComponentContainer::DataStorageChanged ( mitk::DataStorage::Pointer  ds)
virtualslot

Definition at line 159 of file QmitkFunctionalityComponentContainer.cpp.

void QmitkFunctionalityComponentContainer::Deactivated ( )
virtual

Definition at line 314 of file QmitkFunctionalityComponentContainer.cpp.

References m_Active.

Referenced by SetContentContainerVisibility().

QPushButton * QmitkFunctionalityComponentContainer::GetBackButton ( )

Method to return the BackButton to switch to the last widgetStackPage.

Definition at line 348 of file QmitkFunctionalityComponentContainer.cpp.

QString QmitkFunctionalityComponentContainer::GetComponentName ( )
virtual

Method to get the Name of the FunctionalityComponent.

Definition at line 70 of file QmitkFunctionalityComponentContainer.cpp.

QGroupBox * QmitkFunctionalityComponentContainer::GetContentContainer ( )
virtual

Method to return the ComboBox that includes all GUI-elements instead of the outermost checkable CheckBox and that can be set visible or not.

Definition at line 257 of file QmitkFunctionalityComponentContainer.cpp.

Referenced by SetContentContainerVisibility().

mitk::DataStorage::Pointer QmitkFunctionalityComponentContainer::GetDataStorage ( )
virtual

Method to get the DataStorage.

Definition at line 154 of file QmitkFunctionalityComponentContainer.cpp.

References m_DataStorage.

Ui::QmitkFunctionalityComponentContainerGUI * QmitkFunctionalityComponentContainer::GetFunctionalityComponentContainerGUI ( )

also the Graphical User Interface for the component, like m_GUI, but with its specific type

Definition at line 453 of file QmitkFunctionalityComponentContainer.cpp.

QWidget * QmitkFunctionalityComponentContainer::GetGUI ( )

Method to get the GUI of this component.

Definition at line 85 of file QmitkFunctionalityComponentContainer.cpp.

References m_GUI.

Referenced by AddComponent().

QGroupBox * QmitkFunctionalityComponentContainer::GetImageContent ( )
virtual

Method to return the group-box that contains the tree-node-selector.

Definition at line 80 of file QmitkFunctionalityComponentContainer.cpp.

Referenced by CreateNavigationButtons(), SetShowTreeNodeSelector(), and SetWizardText().

QGroupBox * QmitkFunctionalityComponentContainer::GetMainCheckBoxContainer ( )
virtual

Method to return the outermost checkable ComboBox that is to decide whether the content shall be shown or not.

Definition at line 262 of file QmitkFunctionalityComponentContainer.cpp.

Referenced by SetContentContainerVisibility().

QmitkStdMultiWidget * QmitkFunctionalityComponentContainer::GetMultiWidget ( )

Definition at line 105 of file QmitkFunctionalityComponentContainer.cpp.

QPushButton * QmitkFunctionalityComponentContainer::GetNextButton ( )

Method to return the NextButton to switch to the next widgetStackPage.

Definition at line 343 of file QmitkFunctionalityComponentContainer.cpp.

mitk::Image * QmitkFunctionalityComponentContainer::GetParentMitkImage ( )
virtual

Method to return the Image Selected in the Container Combo Box.

Definition at line 90 of file QmitkFunctionalityComponentContainer.cpp.

QmitkDataStorageComboBox * QmitkFunctionalityComponentContainer::GetTreeNodeSelector ( )
virtual

Definition at line 95 of file QmitkFunctionalityComponentContainer.cpp.

Referenced by ImageSelected().

void QmitkFunctionalityComponentContainer::ImageSelected ( const mitk::DataNode item)

Slot method that will be called if TreeNodeSelector widget was activated.

Definition at line 203 of file QmitkFunctionalityComponentContainer.cpp.

References mitk::DataNode::GetData(), GetTreeNodeSelector(), QmitkDataStorageComboBox::SetSelectedNode(), and TreeChanged().

Referenced by CreateConnections().

void QmitkFunctionalityComponentContainer::SetComponentName ( QString  name)
virtual

Method to set the Name of the FunctionalityComponent.

Definition at line 65 of file QmitkFunctionalityComponentContainer.cpp.

void QmitkFunctionalityComponentContainer::SetContentContainerVisibility ( bool  )
virtualslot

Method to set the "GetContentContainer"-visible or not, addicted to the visibility of a parent-component and the status of the checkable ComboBox from "GetMainCheckBoxContainer()".

Definition at line 267 of file QmitkFunctionalityComponentContainer.cpp.

References Activated(), Deactivated(), GetContentContainer(), and GetMainCheckBoxContainer().

Referenced by CreateConnections().

void QmitkFunctionalityComponentContainer::SetDataStorage ( mitk::DataStorage::Pointer  dataStorage)
virtual

Method to set the DataStorage.

Definition at line 149 of file QmitkFunctionalityComponentContainer.cpp.

References m_DataStorage.

Referenced by CreateQtPartControl().

void QmitkFunctionalityComponentContainer::SetSelectorVisibility ( bool  visibility)
virtual

Method to set the Image Selector visible or invisible.

Definition at line 294 of file QmitkFunctionalityComponentContainer.cpp.

References m_GUI, and m_ShowSelector.

void QmitkFunctionalityComponentContainer::SetShowTreeNodeSelector ( bool  show)
virtual

Method to set the Tree-Node-Selector visible or not as his parent group-box is set shown or not.

Definition at line 75 of file QmitkFunctionalityComponentContainer.cpp.

References GetImageContent().

void QmitkFunctionalityComponentContainer::SetWizardText ( const QString &  text)

Method to create a textLabel at the Top of the wizard where a description can be created.

Definition at line 443 of file QmitkFunctionalityComponentContainer.cpp.

References GetImageContent(), and m_GUI.

Referenced by CreateNavigationButtons().

void QmitkFunctionalityComponentContainer::TreeChanged ( const itk::EventObject &  treeChangedEvent)
virtual

Definition at line 110 of file QmitkFunctionalityComponentContainer.cpp.

References TreeChanged().

void QmitkFunctionalityComponentContainer::TreeChanged ( )
virtualslot
void QmitkFunctionalityComponentContainer::UpdateDataTreeComboBoxes ( )
protectedvirtual

Method to update the content of all DataTreeComboBoxes.

Definition at line 130 of file QmitkFunctionalityComponentContainer.cpp.

Referenced by TreeChanged().

Member Data Documentation

bool QmitkFunctionalityComponentContainer::m_Active
protected

Definition at line 167 of file QmitkFunctionalityComponentContainer.h.

Referenced by Activated(), and Deactivated().

mitk::DataStorage::Pointer QmitkFunctionalityComponentContainer::m_DataStorage
protected
QWidget* QmitkFunctionalityComponentContainer::m_GUI
protected
unsigned long QmitkFunctionalityComponentContainer::m_ObserverTag
protected

Definition at line 165 of file QmitkFunctionalityComponentContainer.h.

QmitkDataStorageComboBox* QmitkFunctionalityComponentContainer::m_SelectedItem
protected

Definition at line 168 of file QmitkFunctionalityComponentContainer.h.

bool QmitkFunctionalityComponentContainer::m_ShowSelector

Attribute to decide whether the selector shall be shown or not.

Definition at line 146 of file QmitkFunctionalityComponentContainer.h.

Referenced by SetSelectorVisibility().

bool QmitkFunctionalityComponentContainer::m_UpdateSelector

Attribute to decide whether the selector shall be updated when a parent-Selector is updatet or not.

Definition at line 143 of file QmitkFunctionalityComponentContainer.h.


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