Medical Imaging Interaction Toolkit  2024.12.99-0da743f6
Medical Imaging Interaction Toolkit
QmitkStdMultiWidgetEditor.h
Go to the documentation of this file.
1 /*============================================================================
2 
3 The Medical Imaging Interaction Toolkit (MITK)
4 
5 Copyright (c) German Cancer Research Center (DKFZ)
6 All rights reserved.
7 
8 Use of this source code is governed by a 3-clause BSD license that can be
9 found in the LICENSE file.
10 
11 ============================================================================*/
12 
13 #ifndef QmitkStdMultiWidgetEditor_h
14 #define QmitkStdMultiWidgetEditor_h
15 
16 // mitk gui qt common plugin
18 
20 
22 
23 // c++
24 #include <memory>
25 
27 class QmitkStdMultiWidgetEditorPrivate;
28 
34 {
35  Q_OBJECT
36 
37 public:
38 
39  static const QString EDITOR_ID;
40 
42  ~QmitkStdMultiWidgetEditor() override;
43 
48  void EnableSlicingPlanes(bool enable) override;
52  bool IsSlicingPlanesEnabled() const override;
56  berry::IPartListener::Events::Types GetPartEventTypes() const override;
60  void PartClosed(const berry::IWorkbenchPartReference::Pointer& partRef) override;
64  void PartOpened(const berry::IWorkbenchPartReference::Pointer& partRef) override;
68  void PartHidden(const berry::IWorkbenchPartReference::Pointer& partRef) override;
72  void PartVisible(const berry::IWorkbenchPartReference::Pointer& partRef) override;
73 
75 
76  void ShowLevelWindowWidget(bool show);
77 
78 private:
82  void SetFocus() override;
86  void CreateQtPartControl(QWidget* parent) override;
90  void OnPreferencesChanged(const mitk::IPreferences* preferences) override;
91 
99  void InitializePreferences(mitk::IPreferences *preferences);
107  void GetPreferenceDecorations(const mitk::IPreferences *preferences);
113  mitk::Color HexColorToMitkColor(const std::string& hexColor);
119  std::string MitkColorToHex(const mitk::Color& color);
120 
121  struct Impl;
122  std::unique_ptr<Impl> m_Impl;
123 
124 };
125 
126 #endif
QmitkLevelWindowWidget
Definition: QmitkLevelWindowWidget.h:28
QmitkStdMultiWidget
The 'QmitkStdMultiWidget' is a 'QmitkAbstractMultiWidget' that is used to display multiple render win...
Definition: QmitkStdMultiWidget.h:24
mitk::InteractionSchemeSwitcher::InteractionScheme
InteractionScheme
Definition: mitkInteractionSchemeSwitcher.h:114
berry::IPartListener::PartHidden
virtual void PartHidden(const IWorkbenchPartReference::Pointer &)
Definition: berryIPartListener.h:127
mitk::ILinkedRenderWindowPart
Extends the IRenderWindowPart interface with methods for controlling linked render windows.
Definition: mitkILinkedRenderWindowPart.h:29
ORG_MITK_GUI_QT_STDMULTIWIDGETEDITOR
#define ORG_MITK_GUI_QT_STDMULTIWIDGETEDITOR
Definition: org_mitk_gui_qt_stdmultiwidgeteditor_Export.h:26
berry::SmartPointer
Implements transparent reference counting.
Definition: berryICommandCategoryListener.h:21
mitkILinkedRenderWindowPart.h
mitk::Color
itk::RGBPixel< float > Color
Color Standard RGB color typedef (float)
Definition: mitkColorProperty.h:38
QmitkAbstractMultiWidgetEditor::OnInteractionSchemeChanged
virtual void OnInteractionSchemeChanged(mitk::InteractionSchemeSwitcher::InteractionScheme scheme)
berry::IPartListener::PartOpened
virtual void PartOpened(const IWorkbenchPartReference::Pointer &)
Definition: berryIPartListener.h:122
org_mitk_gui_qt_stdmultiwidgeteditor_Export.h
QmitkAbstractMultiWidgetEditor::GetLevelWindowWidget
virtual QmitkLevelWindowWidget * GetLevelWindowWidget() const =0
mitk::ILinkedRenderWindowPart::EnableSlicingPlanes
virtual void EnableSlicingPlanes(bool enable)=0
berry::IPartListener::PartVisible
virtual void PartVisible(const IWorkbenchPartReference::Pointer &)
Definition: berryIPartListener.h:132
QmitkStdMultiWidgetEditor
Definition: QmitkStdMultiWidgetEditor.h:32
QmitkStdMultiWidgetEditor::EDITOR_ID
static const QString EDITOR_ID
Definition: QmitkStdMultiWidgetEditor.h:39
berry::QtEditorPart::CreateQtPartControl
virtual void CreateQtPartControl(QWidget *parent)=0
berry::IPartListener::PartClosed
virtual void PartClosed(const IWorkbenchPartReference::Pointer &)
Definition: berryIPartListener.h:105
berry::IPartListener::GetPartEventTypes
virtual Events::Types GetPartEventTypes() const =0
mitk::ILinkedRenderWindowPart::IsSlicingPlanesEnabled
virtual bool IsSlicingPlanesEnabled() const =0
QmitkAbstractMultiWidgetEditor.h
mitk::IPreferences
Interface to application preferences.
Definition: mitkIPreferences.h:50
berry::WorkbenchPart::SetFocus
void SetFocus() override=0
QmitkAbstractMultiWidgetEditor
Definition: QmitkAbstractMultiWidgetEditor.h:34