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