Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
QmitkRenderingManager.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 #ifndef QMITKRENDERINGMANAGER_H_HEADER_INCLUDED_C135A197
18 #define QMITKRENDERINGMANAGER_H_HEADER_INCLUDED_C135A197
19 
20 #include <MitkQtWidgetsExports.h>
21 
22 #include "mitkRenderingManager.h"
23 #include <QEvent>
24 #include <QObject>
25 
26 class QmitkRenderingManagerInternal;
28 
43 {
44  Q_OBJECT
45 
46 public:
48  virtual ~QmitkRenderingManager();
49 
50  virtual void DoMonitorRendering() override;
51  virtual void DoFinishAbortRendering() override;
52 
53  virtual bool event(QEvent *event) override;
54 
55 protected:
56  itkFactorylessNewMacro(Self);
57 
59 
60  virtual void GenerateRenderingRequestEvent() override;
61 
62  virtual void StartOrResetTimer() override;
63 
65 
66 protected slots:
67 
68  void TimerCallback();
69 
70 private:
72 };
73 
74 class QmitkRenderingRequestEvent : public QEvent
75 {
76 public:
77  enum Type
78  {
79  RenderingRequest = QEvent::MaxUser - 1024
80  };
81 
83 };
84 
85 #endif /* MITKRenderingManager_H_HEADER_INCLUDED_C135A197 */
virtual void GenerateRenderingRequestEvent()=0
Qt specific implementation of mitk::RenderingManagerFactory.
#define MITKQTWIDGETS_EXPORT
Manager for coordinating the rendering process.
#define mitkClassMacro(className, SuperClassName)
Definition: mitkCommon.h:44
Qt specific implementation of mitk::RenderingManager.
virtual void DoFinishAbortRendering()