Medical Imaging Interaction Toolkit  2018.4.99-389bf124
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 berry::IBerryPreferences* preferences) override;
98  void InitializePreferences(berry::IBerryPreferences *preferences);
106  void GetPreferenceDecorations(const berry::IBerryPreferences *preferences);
112  mitk::Color HexColorToMitkColor(const QString& hexColor);
118  QString MitkColorToHex(const mitk::Color& color);
119 
120  struct Impl;
121  std::unique_ptr<Impl> m_Impl;
122 
123 };
124 
125 #endif // QMITKSTDMULTIWIDGETEDITOR_H
virtual void PartHidden(const IWorkbenchPartReference::Pointer &)
virtual void EnableSlicingPlanes(bool enable)=0
virtual bool IsSlicingPlanesEnabled() const =0
virtual QmitkLevelWindowWidget * GetLevelWindowWidget() const =0
virtual berry::IPartListener::Events::Types GetPartEventTypes() const override
Overridden from berry::IPartListener.
virtual void PartOpened(const berry::IWorkbenchPartReference::Pointer &partRef) override
Overridden from berry::IPartListener.
The &#39;QmitkStdMultiWidget&#39; is a &#39;QmitkAbstractMultiWidget&#39; that is used to display multiple render win...
Extends the IRenderWindowPart interface with methods for controlling linked render windows...
void SetFocus() override=0
#define ORG_MITK_GUI_QT_STDMULTIWIDGETEDITOR
itk::RGBPixel< float > Color
Color Standard RGB color typedef (float)
virtual void OnInteractionSchemeChanged(mitk::InteractionSchemeSwitcher::InteractionScheme scheme)
virtual void PartVisible(const IWorkbenchPartReference::Pointer &)
virtual void CreateQtPartControl(QWidget *parent)=0
virtual void PartClosed(const berry::IWorkbenchPartReference::Pointer &partRef) override
Overridden from berry::IPartListener.