Medical Imaging Interaction Toolkit
2026.06.00
Medical Imaging Interaction Toolkit
QmitkInteractionSchemeToolBar.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 QmitkInteractionSchemeToolBar_h
14
#define QmitkInteractionSchemeToolBar_h
15
16
#include <
MitkQtWidgetsExports.h
>
17
18
// mitk core
19
#include <
mitkInteractionSchemeSwitcher.h
>
20
21
#include <QActionGroup>
22
#include <QToolBar>
23
30
class
MITKQTWIDGETS_EXPORT
QmitkInteractionSchemeToolBar
:
public
QToolBar
31
{
32
Q_OBJECT
33
34
public
:
35
36
using
InteractionScheme
=
mitk::InteractionSchemeSwitcher::InteractionScheme
;
37
38
QmitkInteractionSchemeToolBar
(QWidget* parent =
nullptr
);
39
~QmitkInteractionSchemeToolBar
()
override
;
40
41
void
SetInteractionEventHandler
(mitk::InteractionEventHandler::Pointer interactionEventHandler);
42
43
protected
Q_SLOTS:
44
45
void
AddButton
(
InteractionScheme
id
,
const
QString& toolName,
const
QIcon& icon,
bool
on =
false
);
46
void
OnInteractionSchemeChanged
();
47
48
private
:
49
50
QActionGroup* m_ActionGroup;
51
52
mitk::InteractionEventHandler::Pointer m_InteractionEventHandler;
53
54
};
55
56
#endif
MitkQtWidgetsExports.h
MITKQTWIDGETS_EXPORT
#define MITKQTWIDGETS_EXPORT
Definition:
MitkQtWidgetsExports.h:15
QmitkInteractionSchemeToolBar
Toolbar widget that allows switching between different interaction schemes.
Definition:
QmitkInteractionSchemeToolBar.h:31
QmitkInteractionSchemeToolBar::OnInteractionSchemeChanged
void OnInteractionSchemeChanged()
QmitkInteractionSchemeToolBar::SetInteractionEventHandler
void SetInteractionEventHandler(mitk::InteractionEventHandler::Pointer interactionEventHandler)
QmitkInteractionSchemeToolBar::~QmitkInteractionSchemeToolBar
~QmitkInteractionSchemeToolBar() override
QmitkInteractionSchemeToolBar::QmitkInteractionSchemeToolBar
QmitkInteractionSchemeToolBar(QWidget *parent=nullptr)
QmitkInteractionSchemeToolBar::AddButton
void AddButton(InteractionScheme id, const QString &toolName, const QIcon &icon, bool on=false)
mitk::InteractionSchemeSwitcher::InteractionScheme
InteractionScheme
Definition:
mitkInteractionSchemeSwitcher.h:82
mitkInteractionSchemeSwitcher.h
src
MITK
Modules
QtWidgets
include
QmitkInteractionSchemeToolBar.h
Generated by
1.9.1