Medical Imaging Interaction Toolkit
2016.11.0
Medical Imaging Interaction Toolkit
|
ContainerClass for components. More...
#include <QmitkFunctionalityComponentContainer.h>
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 QmitkDataStorageComboBox * | GetTreeNodeSelector () |
virtual void | SetSelectorVisibility (bool visibility) |
Method to set the Image Selector visible or invisible. More... | |
QmitkStdMultiWidget * | GetMultiWidget () |
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::Image * | GetParentMitkImage () |
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 |
QmitkDataStorageComboBox * | m_SelectedItem |
mitk::DataStorage::Pointer | m_DataStorage |
ContainerClass for components.
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.
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.
|
virtual |
Destructor.
Definition at line 61 of file QmitkFunctionalityComponentContainer.cpp.
|
virtual |
Definition at line 303 of file QmitkFunctionalityComponentContainer.cpp.
References m_Active, and TreeChanged().
Referenced by SetContentContainerVisibility().
|
virtual |
method to add components into this component.
Definition at line 324 of file QmitkFunctionalityComponentContainer.cpp.
References CreateConnections(), and m_GUI.
|
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.
|
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().
|
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().
|
virtualslot |
Definition at line 159 of file QmitkFunctionalityComponentContainer.cpp.
|
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.
|
virtual |
Method to get the Name of the FunctionalityComponent.
Definition at line 70 of file QmitkFunctionalityComponentContainer.cpp.
|
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().
|
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().
|
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().
|
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.
|
virtual |
Method to return the Image Selected in the Container Combo Box.
Definition at line 90 of file QmitkFunctionalityComponentContainer.cpp.
|
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().
|
virtual |
Method to set the Name of the FunctionalityComponent.
Definition at line 65 of file QmitkFunctionalityComponentContainer.cpp.
|
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().
|
virtual |
Method to set the DataStorage.
Definition at line 149 of file QmitkFunctionalityComponentContainer.cpp.
References m_DataStorage.
Referenced by CreateQtPartControl().
|
virtual |
Method to set the Image Selector visible or invisible.
Definition at line 294 of file QmitkFunctionalityComponentContainer.cpp.
References m_GUI, and m_ShowSelector.
|
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().
|
virtual |
Definition at line 110 of file QmitkFunctionalityComponentContainer.cpp.
References TreeChanged().
|
virtualslot |
Definition at line 120 of file QmitkFunctionalityComponentContainer.cpp.
References UpdateDataTreeComboBoxes().
Referenced by Activated(), ImageSelected(), and TreeChanged().
|
protectedvirtual |
Method to update the content of all DataTreeComboBoxes.
Definition at line 130 of file QmitkFunctionalityComponentContainer.cpp.
Referenced by TreeChanged().
|
protected |
Definition at line 167 of file QmitkFunctionalityComponentContainer.h.
Referenced by Activated(), and Deactivated().
|
protected |
Definition at line 169 of file QmitkFunctionalityComponentContainer.h.
Referenced by AddComponent(), GetDataStorage(), and SetDataStorage().
|
protected |
Definition at line 166 of file QmitkFunctionalityComponentContainer.h.
Referenced by AddComponent(), CreateNavigationButtons(), CreateQtPartControl(), GetGUI(), SetSelectorVisibility(), and SetWizardText().
|
protected |
Definition at line 165 of file QmitkFunctionalityComponentContainer.h.
|
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.