NifTK  16.4.1 - 0798f20
CMIC's Translational Medical Imaging Platform
niftkMultiViewerWidgetTest.h
Go to the documentation of this file.
1 /*=============================================================================
2 
3  NifTK: A software platform for medical image computing.
4 
5  Copyright (c) University College London (UCL). All rights reserved.
6 
7  This software is distributed WITHOUT ANY WARRANTY; without even
8  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
9  PURPOSE.
10 
11  See LICENSE.txt in the top level directory for details.
12 
13 =============================================================================*/
14 
15 #ifndef niftkMultiViewerWidgetTest_h
16 #define niftkMultiViewerWidgetTest_h
17 
18 #include <QObject>
19 
20 #include <vector>
21 
22 namespace mitk
23 {
24 class DataNode;
25 }
26 
27 namespace niftk
28 {
29 class MultiViewerWidgetTestClassPrivate;
30 
31 
32 class MultiViewerWidgetTestClass: public QObject
33 {
34  Q_OBJECT
35 
36 public:
37 
38  explicit MultiViewerWidgetTestClass();
40 
42  std::string GetFileName() const;
43 
45  void SetFileName(const std::string& fileName);
46 
49  bool GetInteractiveMode() const;
50 
53  void SetInteractiveMode(bool interactiveMode);
54 
55 private slots:
56 
58  void initTestCase();
59 
61  void cleanupTestCase();
62 
64  void init();
65 
67  void cleanup();
68 
70  void testViewer();
71 
72 private:
73 
74  void dropNodes(QWidget* window, const std::vector<mitk::DataNode*>& nodes);
75 
76  QScopedPointer<MultiViewerWidgetTestClassPrivate> d_ptr;
77 
78  Q_DECLARE_PRIVATE(MultiViewerWidgetTestClass)
79  Q_DISABLE_COPY(MultiViewerWidgetTestClass)
80 };
81 
82 }
83 
84 int niftkMultiViewerWidgetTest(int argc, char* argv[]);
85 
86 #endif
Definition: niftkMultiViewerWidgetTest.h:32
Definition: ReceptorMemberCommandTest.cxx:25
void SetFileName(const std::string &fileName)
Sets the name of the image file to load into the viewer.
Definition: niftkMultiViewerWidgetTest.cxx:82
std::string GetFileName() const
Gets the name of the image file to load into the viewer.
Definition: niftkMultiViewerWidgetTest.cxx:74
void SetInteractiveMode(bool interactiveMode)
Sets the interactive mode. In interactive mode the windows are not closed when the test is finished...
Definition: niftkMultiViewerWidgetTest.cxx:98
int niftkMultiViewerWidgetTest(int argc, char *argv[])
Definition: niftkMultiViewerWidgetTest.cxx:268
virtual ~MultiViewerWidgetTestClass()
Definition: niftkMultiViewerWidgetTest.cxx:68
MultiViewerWidgetTestClass()
Definition: niftkMultiViewerWidgetTest.cxx:56
Definition: niftkExceptionObject.h:21
GLsizei const GLcharARB ** string
Definition: glew.h:5194
bool GetInteractiveMode() const
Gets the interactive mode. In interactive mode the windows are not closed when the test is finished...
Definition: niftkMultiViewerWidgetTest.cxx:90