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
QmitkRenderingManager.cpp
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
#include "
QmitkRenderingManager.h
"
18
19
#include "
mitkBaseRenderer.h
"
20
#include "
mitkGeometry3D.h
"
21
#include "
mitkSliceNavigationController.h
"
22
23
#include <QApplication>
24
#include <QTimer>
25
26
QmitkRenderingManager::QmitkRenderingManager
()
27
{
28
pendingTimerCallbacks
= 0;
29
}
30
31
void
QmitkRenderingManager::DoMonitorRendering
()
32
{
33
}
34
35
void
QmitkRenderingManager::DoFinishAbortRendering
()
36
{
37
}
38
39
QmitkRenderingManager::~QmitkRenderingManager
()
40
{
41
}
42
43
void
QmitkRenderingManager::GenerateRenderingRequestEvent
()
44
{
45
QApplication::postEvent(
this
,
new
QmitkRenderingRequestEvent
);
46
}
47
48
void
QmitkRenderingManager::StartOrResetTimer
()
49
{
50
QTimer::singleShot(200,
this
, SLOT(
TimerCallback
()));
51
pendingTimerCallbacks
++;
52
}
53
54
void
QmitkRenderingManager::TimerCallback
()
55
{
56
if
(!--
pendingTimerCallbacks
)
57
this->
ExecutePendingHighResRenderingRequest
();
58
}
59
60
bool
QmitkRenderingManager::event
(QEvent *event)
61
{
62
if
(event->type() == (QEvent::Type)
QmitkRenderingRequestEvent::RenderingRequest
)
63
{
64
// Directly process all pending rendering requests
65
this->
ExecutePendingRequests
();
66
return
true
;
67
}
68
69
return
false
;
70
}
QmitkRenderingManager::~QmitkRenderingManager
virtual ~QmitkRenderingManager()
Definition:
QmitkRenderingManager.cpp:39
QmitkRenderingRequestEvent::RenderingRequest
Definition:
QmitkRenderingManager.h:79
mitk::RenderingManager::ExecutePendingRequests
virtual void ExecutePendingRequests()
Definition:
mitkRenderingManager.cpp:521
mitkSliceNavigationController.h
QmitkRenderingManager::event
virtual bool event(QEvent *event) override
Definition:
QmitkRenderingManager.cpp:60
QmitkRenderingManager::DoFinishAbortRendering
virtual void DoFinishAbortRendering() override
Definition:
QmitkRenderingManager.cpp:35
QmitkRenderingManager::StartOrResetTimer
virtual void StartOrResetTimer() override
Definition:
QmitkRenderingManager.cpp:48
QmitkRenderingManager::pendingTimerCallbacks
int pendingTimerCallbacks
Definition:
QmitkRenderingManager.h:64
QmitkRenderingManager::DoMonitorRendering
virtual void DoMonitorRendering() override
Definition:
QmitkRenderingManager.cpp:31
QmitkRenderingManager::TimerCallback
void TimerCallback()
Definition:
QmitkRenderingManager.cpp:54
QmitkRenderingManager.h
mitkGeometry3D.h
mitkBaseRenderer.h
mitk::RenderingManager::ExecutePendingHighResRenderingRequest
void ExecutePendingHighResRenderingRequest()
Definition:
mitkRenderingManager.cpp:637
QmitkRenderingManager::GenerateRenderingRequestEvent
virtual void GenerateRenderingRequestEvent() override
Definition:
QmitkRenderingManager.cpp:43
QmitkRenderingRequestEvent
Definition:
QmitkRenderingManager.h:74
QmitkRenderingManager::QmitkRenderingManager
QmitkRenderingManager()
Definition:
QmitkRenderingManager.cpp:26
git
MITK
Modules
QtWidgets
src
QmitkRenderingManager.cpp
Generated on Fri Feb 3 2017 20:52:14 for Medical Imaging Interaction Toolkit by
1.8.9.1