Medical Imaging Interaction Toolkit  2023.12.00
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  virtual ~QmitkStdMultiWidgetEditor() override;
43 
44  virtual QmitkLevelWindowWidget* GetLevelWindowWidget() const override;
48  virtual void EnableSlicingPlanes(bool enable) override;
52  virtual bool IsSlicingPlanesEnabled() const override;
56  virtual berry::IPartListener::Events::Types GetPartEventTypes() const override;
60  virtual void PartClosed(const berry::IWorkbenchPartReference::Pointer& partRef) override;
64  virtual void PartOpened(const berry::IWorkbenchPartReference::Pointer& partRef) override;
68  virtual void PartHidden(const berry::IWorkbenchPartReference::Pointer& partRef) override;
72  virtual void PartVisible(const berry::IWorkbenchPartReference::Pointer& partRef) override;
73 
75 
76  void ShowLevelWindowWidget(bool show);
77 
78 private:
82  virtual void SetFocus() override;
86  virtual void CreateQtPartControl(QWidget* parent) override;
90  virtual void OnPreferencesChanged(const mitk::IPreferences* preferences) override;
98  void InitializePreferences(mitk::IPreferences *preferences);
106  void GetPreferenceDecorations(const mitk::IPreferences *preferences);
112  mitk::Color HexColorToMitkColor(const std::string& hexColor);
118  std::string MitkColorToHex(const mitk::Color& color);
119 
120  struct Impl;
121  std::unique_ptr<Impl> m_Impl;
122 
123 };
124 
125 #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< Self >
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:33