Medical Imaging Interaction Toolkit
2016.11.0
Medical Imaging Interaction Toolkit
Home
Manual
API Reference
Download
Bugzilla
Groups
Namespace List
Class List
File List
Examples
File List
File Members
QVTKMitkInteractorAdapter.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,
6
Division of Medical and Biological Informatics.
7
All rights reserved.
8
9
This software is distributed WITHOUT ANY WARRANTY; without
10
even the implied warranty of MERCHANTABILITY or FITNESS FOR
11
A PARTICULAR PURPOSE.
12
13
See LICENSE.txt or http://www.mitk.org for details.
14
15
===================================================================*/
16
17
// original copyright below
18
19
/*=========================================================================
20
21
Program: Visualization Toolkit
22
Module: QVTKMitkInteractorAdapter.h
23
24
Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
25
All rights reserved.
26
See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
27
28
This software is distributed WITHOUT ANY WARRANTY; without even
29
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
30
PURPOSE. See the above copyright notice for more information.
31
32
=========================================================================*/
33
34
/*=========================================================================
35
36
Copyright 2004 Sandia Corporation.
37
Under the terms of Contract DE-AC04-94AL85000, there is a non-exclusive
38
license for use of this work by or on behalf of the
39
U.S. Government. Redistribution and use in source and binary forms, with
40
or without modification, are permitted provided that this Notice and any
41
statement of authorship are reproduced on all copies.
42
43
=========================================================================*/
44
45
/*========================================================================
46
For general information about using VTK and Qt, see:
47
http://www.trolltech.com/products/3rdparty/vtksupport.html
48
=========================================================================*/
49
50
// .NAME QVTKMitkInteractorAdapter - Handle Qt events.
51
// .SECTION Description
52
// QVTKInteractor handles relaying Qt events to VTK.
53
54
#ifndef Q_VTK_MITK_INTERACTOR_ADAPTER_H
55
#define Q_VTK_MITK_INTERACTOR_ADAPTER_H
56
57
#include <QtCore/QObject>
58
59
#include <
MitkOpenViewCoreExports.h
>
60
61
class
vtkRenderWindowInteractor;
62
class
QEvent;
63
64
// .NAME QVTKMitkInteractorAdapter - A QEvent translator.
65
// .SECTION Description
66
// QVTKMitkInteractorAdapter translates QEvents and send them to a
67
// vtkRenderWindowInteractor.
68
class
MITKOPENVIEWCORE_EXPORT
QVTKMitkInteractorAdapter
:
public
QObject
69
{
70
Q_OBJECT
71
public
:
72
// Description:
73
// Constructor: takes QObject parent
74
QVTKMitkInteractorAdapter
(QObject* parent);
75
76
// Description:
77
// Destructor
78
~
QVTKMitkInteractorAdapter
();
79
80
// Description:
81
// Process a QEvent and send it to the interactor
82
// returns whether the event was recognized and processed
83
bool
ProcessEvent(QEvent* e, vtkRenderWindowInteractor* iren);
84
};
85
86
#endif
QVTKMitkInteractorAdapter
Definition:
QVTKMitkInteractorAdapter.h:68
MitkOpenViewCoreExports.h
MITKOPENVIEWCORE_EXPORT
#define MITKOPENVIEWCORE_EXPORT
Definition:
MitkOpenViewCoreExports.h:15
git
MITK
Modules
OpenViewCore
include
QVTKMitkInteractorAdapter.h
Generated on Fri Feb 3 2017 20:52:15 for Medical Imaging Interaction Toolkit by
1.8.9.1