Medical Imaging Interaction Toolkit  2025.12.02
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 
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;
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
void OnInteractionSchemeChanged(mitk::InteractionSchemeSwitcher::InteractionScheme scheme) override
void PartVisible(const berry::IWorkbenchPartReference::Pointer &partRef) override
Overridden from berry::IPartListener.
void PartHidden(const berry::IWorkbenchPartReference::Pointer &partRef) override
Overridden from berry::IPartListener.
void PartClosed(const berry::IWorkbenchPartReference::Pointer &partRef) override
Overridden from berry::IPartListener.
void ShowLevelWindowWidget(bool show)
~QmitkStdMultiWidgetEditor() override
berry::IPartListener::Events::Types GetPartEventTypes() const override
Overridden from berry::IPartListener.
bool IsSlicingPlanesEnabled() const override
Overridden from mitk::ILinkedRenderWindowPart.
void EnableSlicingPlanes(bool enable) override
Overridden from mitk::ILinkedRenderWindowPart.
QmitkLevelWindowWidget * GetLevelWindowWidget() const override
void PartOpened(const berry::IWorkbenchPartReference::Pointer &partRef) override
Overridden from berry::IPartListener.
The 'QmitkStdMultiWidget' is a 'QmitkAbstractMultiWidget' that is used to display multiple render win...
virtual void CreateQtPartControl(QWidget *parent)=0
Implements transparent reference counting.
void SetFocus() override=0
Interface to application preferences.
itk::RGBPixel< float > Color
Color Standard RGB color typedef (float)
#define ORG_MITK_GUI_QT_STDMULTIWIDGETEDITOR
Extends the IRenderWindowPart interface with methods for controlling linked render windows.