Medical Imaging Interaction Toolkit
2024.12.99-d991a09f
Medical Imaging Interaction Toolkit
Home
Manual
API Reference
Groups
Namespace List
Namespace List
Namespace Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Functions
_
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
r
s
t
u
v
w
z
Variables
e
f
i
l
m
n
p
r
s
t
Typedefs
a
b
c
d
f
g
i
l
m
n
o
p
q
r
s
t
v
x
Enumerations
Enumerator
a
b
c
d
e
g
h
i
k
l
n
o
p
r
s
t
v
w
z
Class List
Class List
Class Index
Class Hierarchy
Class Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Variables
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
Enumerations
a
b
c
d
e
f
h
i
l
m
n
o
p
r
s
t
u
v
Enumerator
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
z
Properties
c
m
o
r
s
t
Related Functions
File List
File List
File Members
All
_
a
b
c
d
e
f
g
h
i
j
m
o
p
q
r
s
t
u
v
x
Functions
_
e
h
m
o
q
s
u
Variables
Typedefs
Enumerations
Enumerator
Macros
_
a
b
c
d
e
f
g
i
m
o
p
q
r
s
u
v
x
Examples
Download
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Modules
Pages
mitkVtkEventProvider.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 mitkVtkEventProvider_h
14
#define mitkVtkEventProvider_h
15
16
#include "
mitkRenderWindow.h
"
17
#include <
MitkCoreExports.h
>
18
19
#include "vtkInteractorObserver.h"
20
21
namespace
mitk
22
{
28
class
MITKCORE_EXPORT
vtkEventProvider
:
public
vtkInteractorObserver
29
{
30
public
:
31
static
vtkEventProvider
*New();
32
vtkTypeMacro(
vtkEventProvider
, vtkInteractorObserver);
33
34
// Satisfy the superclass API. Enable/disable listening for events.
35
void
SetEnabled(
int
)
override
;
36
void
SetInteractor(vtkRenderWindowInteractor *iren)
override
;
37
38
// Interface to MITK
39
virtual
void
SetMitkRenderWindow(
mitk::RenderWindow
*renWin);
40
mitk::RenderWindow
*GetRenderWindow();
41
42
protected
:
43
vtkEventProvider
();
44
~
vtkEventProvider
()
override
;
45
46
// methods for processing events - callback for the observer/command pattern of vtkCommand
47
static
void
ProcessEvents(vtkObject *
object
,
unsigned
long
event,
void
*clientdata,
void
*calldata);
48
49
mitk::RenderWindow
*
m_RenderWindow
;
50
51
// adds the MITK interaction event types to the VTK observer/command pattern
52
void
AddInteractionEvent(
unsigned
long
ievent);
53
// removes the MITK interaction event types
54
void
RemoveInteractionEvent(
unsigned
long
ievent);
55
typedef
std::vector<unsigned long>
InteractionEventsVectorType
;
56
InteractionEventsVectorType
m_InteractionEventsVector
;
57
58
private
:
59
vtkEventProvider
(
const
vtkEventProvider
&);
// Not implemented.
60
void
operator=(
const
vtkEventProvider
&);
// Not implemented.
61
};
62
}
63
#endif
mitkRenderWindow.h
mitk::vtkEventProvider::m_RenderWindow
mitk::RenderWindow * m_RenderWindow
Definition:
mitkVtkEventProvider.h:49
mitk::RenderWindow
mitkRenderWindow integrates the MITK rendering mechanism into VTK and is NOT QT dependent
Definition:
mitkRenderWindow.h:31
mitk::vtkEventProvider::InteractionEventsVectorType
std::vector< unsigned long > InteractionEventsVectorType
Definition:
mitkVtkEventProvider.h:55
mitk
Find image slices visible on a given plane.
Definition:
RenderingTests.dox:1
mitk::vtkEventProvider
Integrates into the VTK event mechanism to generate MITK specific events. This class is NON-QT depend...
Definition:
mitkVtkEventProvider.h:28
MitkCoreExports.h
mitk::vtkEventProvider::m_InteractionEventsVector
InteractionEventsVectorType m_InteractionEventsVector
Definition:
mitkVtkEventProvider.h:56
MITKCORE_EXPORT
#define MITKCORE_EXPORT
Definition:
MitkCoreExports.h:15
src
MITK
Modules
Core
include
mitkVtkEventProvider.h
Generated on Fri Mar 14 2025 02:13:59 for Medical Imaging Interaction Toolkit by
1.8.17