Carna  Version 3.3.2
VolumeGridTest.h
1 /*
2  * Copyright (C) 2010 - 2015 Leonid Kostrykin
3  *
4  * Chair of Medical Engineering (mediTEC)
5  * RWTH Aachen University
6  * Pauwelsstr. 20
7  * 52074 Aachen
8  * Germany
9  *
10  */
11 
12 #pragma once
13 
14 #include <Carna/Carna.h>
15 
16 namespace Carna
17 {
18 
19 namespace testing
20 {
21 
22 
23 
24 // ----------------------------------------------------------------------------------
25 // VolumeGridTestUInt16
26 // ----------------------------------------------------------------------------------
27 
34 class VolumeGridTestUInt16 : public QObject
35 {
36 
37  Q_OBJECT
38 
39 private slots:
40 
43  void initTestCase();
44 
47  void cleanupTestCase();
48 
51  void init();
52 
55  void cleanup();
56 
57  // ---------------------------------------------------------------------------------
58 
59  void test_instantiation();
60 
61  void test_parenthesisOperator();
62 
63  // ---------------------------------------------------------------------------------
64 
65 private:
66 
67  std::unique_ptr< base::VolumeGrid< base::IntensityVolumeUInt16, void > > grid;
68 
69 }; // VolumeGridTestUInt16
70 
71 
72 
73 // ----------------------------------------------------------------------------------
74 // VolumeGridTestUInt8
75 // ----------------------------------------------------------------------------------
76 
83 class VolumeGridTestUInt8 : public QObject
84 {
85 
86  Q_OBJECT
87 
88 private slots:
89 
92  void initTestCase();
93 
96  void cleanupTestCase();
97 
100  void init();
101 
104  void cleanup();
105 
106  // ---------------------------------------------------------------------------------
107 
108  void test_instantiation();
109 
110  void test_parenthesisOperator1();
111 
112  void test_parenthesisOperator2();
113 
114  // ---------------------------------------------------------------------------------
115 
116 private:
117 
118  std::unique_ptr< base::VolumeGrid< base::IntensityVolumeUInt8, void > > grid;
119 
120 }; // VolumeGridTestUInt8
121 
122 
123 
124 } // namespace testing
125 
126 } // namespace Carna
Module-tests of the Carna::base::VolumeGrid class.
Module-tests of the Carna::base::VolumeGrid class.