Carna  Version 3.3.2
DRRStageTest.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 // DRRStageTest
26 // ----------------------------------------------------------------------------------
27 
34 class DRRStageTest : 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_nonInverted();
60 
61  void test_inverted();
62 
63  // ---------------------------------------------------------------------------------
64 
65 private:
66 
67  std::unique_ptr< QGLContextHolder > qglContextHolder;
68  std::unique_ptr< TestFramebuffer > testFramebuffer;
69  std::unique_ptr< TestScene > scene;
70  std::unique_ptr< base::FrameRenderer > renderer;
71 
72  presets::DRRStage* drr;
73 
74 }; // DRRStageTest
75 
76 
77 
78 } // namespace testing
79 
80 } // namespace Carna
Renders digital radiograph reconstructs of volume geometries in the scene.
Definition: DRRStage.h:106
Module-tests of the Carna::presets::DRRStage class.
Definition: DRRStageTest.h:34