Medical Imaging Interaction Toolkit  2018.4.99-389bf124
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 (DKFZ)
6 All rights reserved.
7 
8 Use of this source code is governed by a 3-clause BSD license that can be
9 found in the LICENSE file.
10 
11 ============================================================================*/
12 
13 #include "QmitkRegisterClasses.h"
14 
15 #include "QmitkApplicationCursor.h"
17 
18 #include <iostream>
19 
21 {
22  static bool alreadyDone = false;
23  if (!alreadyDone)
24  {
25  MITK_DEBUG << "QmitkRegisterClasses()";
26 
27  // We have to put this in a file containing a class that is directly used
28  // somewhere. Otherwise, e.g. when put in VtkRenderWindowInteractor.cpp,
29  // it is removed by the linker.
30 
31  // Create and register RenderingManagerFactory for this platform.
32  static QmitkRenderingManagerFactory qmitkRenderingManagerFactory;
33  static QmitkApplicationCursor globalQmitkApplicationCursor; // create one instance
34 
35  alreadyDone = true;
36  }
37 }
Qt specific implementation of mitk::RenderingManagerFactory.
#define MITK_DEBUG
Definition: mitkLogMacros.h:22
void QmitkRegisterClasses()
Qt specific implementation of ApplicationCursorImplementation.