Medical Imaging Interaction Toolkit  2024.06.99-60d9b802
Medical Imaging Interaction Toolkit
QmitkDataNodeOpacityAction.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 QmitkDataNodeOpacityAction_h
14 #define QmitkDataNodeOpacityAction_h
15 
17 
19 #include <QWidgetAction>
20 
21 class QSlider;
22 
24 {
25  Q_OBJECT
26 
27 public:
28 
29  QmitkDataNodeOpacityAction(QWidget* parent, berry::IWorkbenchPartSite::Pointer workbenchPartSite);
30  QmitkDataNodeOpacityAction(QWidget* parent, berry::IWorkbenchPartSite* workbenchPartSite);
31 
32 private:
33 
34  void InitializeAction() override;
35  void InitializeWithDataNode(const mitk::DataNode* node) override;
36 
37  void OnOpacityChanged(int value);
38 
39  std::optional<float> GetOpacity(mitk::DataNode* node);
40  std::vector<mitk::DataNode*> GetSelectedOpacityNodes();
41 
42  QSlider* m_Slider;
43 };
44 
45 #endif
QmitkAbstractDataNodeAction.h
QmitkAbstractDataNodeAction::InitializeWithDataNode
virtual void InitializeWithDataNode(const mitk::DataNode *)
Definition: QmitkAbstractDataNodeAction.h:46
berry::SmartPointer
Implements transparent reference counting.
Definition: berryICommandCategoryListener.h:21
QmitkAbstractDataNodeAction
Definition: QmitkAbstractDataNodeAction.h:34
berry::IWorkbenchPartSite
Definition: berryIWorkbenchPartSite.h:31
MITK_QT_APP
#define MITK_QT_APP
Definition: org_mitk_gui_qt_application_Export.h:26
QmitkAbstractDataNodeAction::InitializeAction
virtual void InitializeAction()=0
org_mitk_gui_qt_application_Export.h
mitk::DataNode
Class for nodes of the DataTree.
Definition: mitkDataNode.h:63
QmitkDataNodeOpacityAction
Definition: QmitkDataNodeOpacityAction.h:23