Carna Version 3.3.3
Loading...
Searching...
No Matches
DVRStageTest.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
16namespace Carna
17{
18
19namespace testing
20{
21
22
23
24// ----------------------------------------------------------------------------------
25// DVRStageTest
26// ----------------------------------------------------------------------------------
27
34class DVRStageTest : public QObject
35{
36
37 Q_OBJECT
38
39private slots:
40
43 void initTestCase();
44
47 void cleanupTestCase();
48
51 void init();
52
55 void cleanup();
56
57 // ---------------------------------------------------------------------------------
58
59 void test_withLighting();
60
61 void test_withoutLighting();
62
63 void test_withoutColormap();
64
65 // ---------------------------------------------------------------------------------
66
67private:
68
69 const static unsigned int GEOMETRY_TYPE_VOLUMETRIC = 0;
70
71 std::unique_ptr< QGLContextHolder > qglContextHolder;
72 std::unique_ptr< TestFramebuffer > testFramebuffer;
73 std::unique_ptr< base::Node > root;
74 std::unique_ptr< base::FrameRenderer > renderer;
75 std::unique_ptr< base::HUVolumeUInt16 > data;
76
77 base::math::Vector3f dataSpacings;
78
80 base::Camera* cam;
81
82}; // DVRStageTest
83
84
85
86} // namespace testing
87
88} // namespace Carna
Represents the point-of-view and defines the 3D to 2D projection.
Definition Camera.h:40
Performs direct volume renderings of the volume geometries in the scene.
Definition DVRStage.h:102
Module-tests of the Carna::presets::DVRStage class.
Eigen::Matrix< float, 3, 1 > Vector3f
Defines vector.
Definition math.h:196