#include "mitkCommon.h"Go to the source code of this file.
Functions | |
| void | QmitkRegisterClasses () |
| void QmitkRegisterClasses | ( | ) |
Definition at line 26 of file QmitkRegisterClasses.cpp.
References mitk::GlobalInteraction::GetInstance(), and MITK_INFO.
Referenced by main(), and QmitkCommonActivator::Start().
{
static bool alreadyDone = false;
if (!alreadyDone)
{
MITK_INFO << "QmitkRegisterClasses()";
//We have to put this in a file containing a class that is directly used
//somewhere. Otherwise, e.g. when put in VtkRenderWindowInteractor.cpp,
//it is removed by the linker.
// Create and initialize GlobalInteraction
if(! (mitk::GlobalInteraction::GetInstance()->IsInitialized()))
mitk::GlobalInteraction::GetInstance()->Initialize("global");
// Create and register RenderingManagerFactory for this platform.
static QmitkRenderingManagerFactory qmitkRenderingManagerFactory;
static QmitkApplicationCursor globalQmitkApplicationCursor; // create one instance
alreadyDone = true;
}
}
1.7.2