Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
QmlMitkRenderingManager.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 
18 #ifndef __QmlMitkRenderingManager_h
19 #define __QmlMitkRenderingManager_h
20 
21 
22 
23 #include "mitkRenderingManager.h"
24 
25 #include <QObject>
26 #include <QEvent>
27 
29 
39 class QmlMitkRenderingManager : public QObject, public mitk::RenderingManager
40 {
41  Q_OBJECT
42 
43 public:
44 
46  virtual ~QmlMitkRenderingManager();
47 
48  virtual bool event( QEvent *event );
49 
50 protected:
51 
52  itkFactorylessNewMacro(Self);
53 
55 
56  virtual void GenerateRenderingRequestEvent();
57  virtual void StartOrResetTimer();
58 
60 
61  protected slots:
62 
63  void TimerCallback();
64 
65 private:
66 
68 
69  void MyUpdateExecutePendingRequests();
70 };
71 
72 class QmlMitkRenderingRequestEvent : public QEvent
73 {
74 public:
75  enum Type
76  {
77  RenderingRequest = QEvent::MaxUser - 1024
78  };
79 
81  : QEvent( (QEvent::Type) RenderingRequest ) {};
82 };
83 
84 #endif
virtual void GenerateRenderingRequestEvent()
virtual bool event(QEvent *event)
mitkClassMacro(QmlMitkRenderingManager, mitk::RenderingManager)
Qt/Qml specific implementation of mitk::RenderingManager.
Manager for coordinating the rendering process.
Qt specific implementation of mitk::RenderingManagerFactory.