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
Step8main.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
#include "
Step8.h
"
19
20
#include <QApplication>
21
#include <itksys/SystemTools.hxx>
22
23
int
main
(
int
argc,
char
*argv[])
24
{
25
QApplication qtapplication(argc, argv);
26
27
if
(argc < 2)
28
{
29
fprintf(
30
stderr,
"Usage: %s [filename1] [filename2] ...\n\n"
, itksys::SystemTools::GetFilenameName(argv[0]).c_str());
31
return
1;
32
}
33
34
// Register Qmitk-dependent global instances
35
QmitkRegisterClasses
();
36
37
Step8
mainWidget(argc, argv,
nullptr
);
38
mainWidget.
Initialize
();
39
mainWidget.show();
40
41
// for testing
42
#include "
QtTesting.h
"
43
if
(strcmp(argv[argc - 1],
"-testing"
) != 0)
44
return
qtapplication.exec();
45
else
46
return
QtTesting
();
47
}
QmitkRegisterClasses
MITKQTWIDGETS_EXPORT void QmitkRegisterClasses()
Definition:
QmitkRegisterClasses.cpp:24
Step8.h
QmitkRegisterClasses.h
main
int main(int argc, char *argv[])
Definition:
Step8main.cpp:23
QtTesting
int QtTesting()
Definition:
QtTesting.cpp:22
Step6::Initialize
virtual void Initialize()
Definition:
Step6.cpp:50
QtTesting.h
Step8
Definition:
Step8.h:23
git
MITK
Examples
Tutorial
Step8
Step8main.cpp
Generated on Fri Feb 3 2017 20:52:16 for Medical Imaging Interaction Toolkit by
1.8.9.1