Medical Imaging Interaction Toolkit  2021.10.99-9c07a326
Medical Imaging Interaction Toolkit
QmitkDataNodeComponentAction.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 QMITKDATANODECOMPONENTACTION_H
14 #define QMITKDATANODECOMPONENTACTION_H
15 
17 
18 // qt widgets ext module
20 
22 
23 // qt
24 #include <QWidgetAction>
25 
27 {
28  Q_OBJECT
29 
30 public:
31 
32  QmitkDataNodeComponentAction(QWidget* parent, berry::IWorkbenchPartSite::Pointer workbenchPartSite);
33  QmitkDataNodeComponentAction(QWidget* parent, berry::IWorkbenchPartSite* workbenchPartSite);
34 
35  void InitializeWithDataNode(const mitk::DataNode* dataNode) override;
36 
37 private Q_SLOTS:
38 
39  void OnActionChanged();
40 
41 protected:
42 
43  void InitializeAction() override;
44 
45 private:
46 
47  QmitkNumberPropertySlider* m_ComponentSlider;
48 
49 };
50 
51 #endif // QMITKDATANODECOMPONENTACTION_H
virtual void InitializeAction()=0
virtual void InitializeWithDataNode(const mitk::DataNode *)
Class for nodes of the DataTree.
Definition: mitkDataNode.h:57