Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
QmlMitkBigRenderLock Class Reference

Workaround lock around MITK rendering. More...

#include <QmlMitkBigRenderLock.h>

Inheritance diagram for QmlMitkBigRenderLock:
Collaboration diagram for QmlMitkBigRenderLock:

Public Member Functions

 QmlMitkBigRenderLock (QObject *parent=0)
 

Static Public Member Functions

static QMutex & GetMutex ()
 

Protected Member Functions

bool eventFilter (QObject *obj, QEvent *event)
 

Detailed Description

Workaround lock around MITK rendering.

QtQuick renders in a thread, MITK datastructures do not tolerate this well. The current work-around is a big lock that delays signal delivery while rendering is in progress.

The proper solution would be to make data structures in rendering thread safe. This solution is much more work though, so it will come later.

Definition at line 34 of file QmlMitkBigRenderLock.h.

Constructor & Destructor Documentation

QmlMitkBigRenderLock::QmlMitkBigRenderLock ( QObject *  parent = 0)

Definition at line 26 of file QmlMitkBigRenderLock.cpp.

Member Function Documentation

bool QmlMitkBigRenderLock::eventFilter ( QObject *  obj,
QEvent *  event 
)
protected

Definition at line 31 of file QmlMitkBigRenderLock.cpp.

References GetMutex().

QMutex & QmlMitkBigRenderLock::GetMutex ( )
static

Definition at line 20 of file QmlMitkBigRenderLock.cpp.

Referenced by eventFilter().


The documentation for this class was generated from the following files: