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
MinimalApplicationSnippet.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 "CustomViewer.h"
18
#include "CustomViewerWorkbenchAdvisor.h"
19
20
#include <
berryPlatformUI.h
>
21
22
CustomViewer::CustomViewer()
23
{
24
}
25
26
CustomViewer::~CustomViewer()
27
{
28
}
30
int
CustomViewer::Start()
31
{
32
berry::Display
*display =
berry::PlatformUI::CreateDisplay
();
33
34
wbAdvisor.reset(
new
berry::WorkbenchAdvisor
);
35
int
code =
berry::PlatformUI::CreateAndRunWorkbench
(display, wbAdvisor.data());
36
37
// exit the application with an appropriate return code
38
return
code ==
berry::PlatformUI::RETURN_RESTART
? EXIT_RESTART : EXIT_OK;
39
}
41
void
CustomViewer::Stop()
42
{
43
}
berry::WorkbenchAdvisor
Definition:
berryWorkbenchAdvisor.h:96
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
berry::PlatformUI::CreateAndRunWorkbench
static int CreateAndRunWorkbench(Display *display, WorkbenchAdvisor *advisor)
Definition:
berryPlatformUI.cpp:40
berryPlatformUI.h
git
MITK
Examples
Plugins
org.mitk.example.gui.customviewer
documentation
doxygen
code_snippets
MinimalApplicationSnippet.cpp
Generated on Fri Feb 3 2017 20:51:52 for Medical Imaging Interaction Toolkit by
1.8.9.1