Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
QmlMitkBigRenderLock.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 __QmlMitkBigRenderLock_h
18 #define __QmlMitkBigRenderLock_h
19 
20 #include <QtCore>
21 
34 class QmlMitkBigRenderLock : public QObject
35 {
36  Q_OBJECT
37  public:
38 
39  static QMutex& GetMutex();
40 
41  QmlMitkBigRenderLock(QObject* parent = 0);
42 
43  protected:
44  bool eventFilter(QObject *obj, QEvent *event);
45 };
46 
47 #endif
bool eventFilter(QObject *obj, QEvent *event)
QmlMitkBigRenderLock(QObject *parent=0)
static QMutex & GetMutex()
Workaround lock around MITK rendering.