Medical Imaging Interaction Toolkit
2023.04.00
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
16
#include <
org_mitk_gui_qt_application_Export.h
>
17
18
#include "
QmitkAbstractDataNodeAction.h
"
19
20
// qt
21
#include <QSlider>
22
#include <QWidgetAction>
23
24
class
MITK_QT_APP
QmitkDataNodeOpacityAction
:
public
QWidgetAction,
public
QmitkAbstractDataNodeAction
25
{
26
Q_OBJECT
27
28
public
:
29
30
QmitkDataNodeOpacityAction
(QWidget* parent,
berry::IWorkbenchPartSite::Pointer
workbenchPartSite);
31
QmitkDataNodeOpacityAction
(QWidget* parent,
berry::IWorkbenchPartSite
* workbenchPartSite);
32
33
void
InitializeWithDataNode
(
const
mitk::DataNode
* dataNode)
override
;
34
35
private
Q_SLOTS:
36
37
void
OnOpacityChanged(
int
);
38
void
OnActionChanged();
39
40
protected
:
41
42
void
InitializeAction
()
override
;
43
44
QSlider*
m_OpacitySlider
;
45
46
};
47
48
#endif
QmitkDataNodeOpacityAction::m_OpacitySlider
QSlider * m_OpacitySlider
Definition:
QmitkDataNodeOpacityAction.h:44
QmitkAbstractDataNodeAction.h
QmitkAbstractDataNodeAction::InitializeWithDataNode
virtual void InitializeWithDataNode(const mitk::DataNode *)
Definition:
QmitkAbstractDataNodeAction.h:46
berry::SmartPointer< Self >
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:24
src
MITK
Plugins
org.mitk.gui.qt.application
src
QmitkDataNodeOpacityAction.h
Generated on Wed May 17 2023 16:26:14 for Medical Imaging Interaction Toolkit by
1.8.17