Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
QmitkRegisterClasses.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 "QmitkRegisterClasses.h"
18 
19 #include "QmitkApplicationCursor.h"
21 
22 #include <iostream>
23 
25 {
26  static bool alreadyDone = false;
27  if (!alreadyDone)
28  {
29  MITK_DEBUG << "QmitkRegisterClasses()";
30 
31  // We have to put this in a file containing a class that is directly used
32  // somewhere. Otherwise, e.g. when put in VtkRenderWindowInteractor.cpp,
33  // it is removed by the linker.
34 
35  // Create and register RenderingManagerFactory for this platform.
36  static QmitkRenderingManagerFactory qmitkRenderingManagerFactory;
37  static QmitkApplicationCursor globalQmitkApplicationCursor; // create one instance
38 
39  alreadyDone = true;
40  }
41 }
Qt specific implementation of mitk::RenderingManagerFactory.
#define MITK_DEBUG
Definition: mitkLogMacros.h:26
void QmitkRegisterClasses()
Qt specific implementation of ApplicationCursorImplementation.