Medical Imaging Interaction Toolkit
2016.11.0
Medical Imaging Interaction Toolkit
Home
Manual
API Reference
Download
Bugzilla
Groups
Namespace List
Class List
File List
Examples
File List
File Members
QmitkDiffusionImagingAppApplication.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 "
QmitkDiffusionImagingAppApplication.h
"
18
19
#include <
berryPlatformUI.h
>
20
21
#include "
QmitkDiffusionImagingAppWorkbenchAdvisor.h
"
22
23
QVariant
QmitkDiffusionImagingAppApplication::Start
(
berry::IApplicationContext
*)
24
{
25
berry::Display
* display =
berry::PlatformUI::CreateDisplay
();
26
27
int
code =
berry::PlatformUI::CreateAndRunWorkbench
(display,
new
QmitkDiffusionImagingAppWorkbenchAdvisor
());
28
29
// exit the application with an appropriate return code
30
return
code ==
berry::PlatformUI::RETURN_RESTART
31
?
EXIT_RESTART
:
EXIT_OK
;
32
}
33
34
void
QmitkDiffusionImagingAppApplication::Stop
()
35
{
36
37
}
QmitkDiffusionImagingAppWorkbenchAdvisor.h
berry::IApplication::EXIT_OK
static const int EXIT_OK
Definition:
berryIApplication.h:43
berry::PlatformUI::CreateDisplay
static Display * CreateDisplay()
Definition:
berryPlatformUI.cpp:45
berry::PlatformUI::RETURN_RESTART
static const int RETURN_RESTART
Definition:
berryPlatformUI.h:68
berry::Display
Definition:
berryDisplay.h:27
QmitkDiffusionImagingAppApplication::Start
QVariant Start(berry::IApplicationContext *) override
Definition:
QmitkDiffusionImagingAppApplication.cpp:23
QmitkDiffusionImagingAppApplication.h
QmitkDiffusionImagingAppWorkbenchAdvisor
Definition:
QmitkDiffusionImagingAppWorkbenchAdvisor.h:23
berry::PlatformUI::CreateAndRunWorkbench
static int CreateAndRunWorkbench(Display *display, WorkbenchAdvisor *advisor)
Definition:
berryPlatformUI.cpp:40
berry::IApplication::EXIT_RESTART
static const int EXIT_RESTART
Definition:
berryIApplication.h:48
berryPlatformUI.h
QmitkDiffusionImagingAppApplication::Stop
void Stop() override
Definition:
QmitkDiffusionImagingAppApplication.cpp:34
berry::IApplicationContext
Definition:
berryIApplicationContext.h:36
git
MITK
Plugins
org.mitk.gui.qt.diffusionimagingapp
src
QmitkDiffusionImagingAppApplication.cpp
Generated on Fri Feb 3 2017 20:52:13 for Medical Imaging Interaction Toolkit by
1.8.9.1