LibCarna Version 3.4.0
Loading...
Searching...
No Matches
DVRStageTest.hpp
1/*
2 * Copyright (C) 2010 - 2016 Leonid Kostrykin
3 *
4 * Chair of Medical Engineering (mediTEC)
5 * RWTH Aachen University
6 * Pauwelsstr. 20
7 * 52074 Aachen
8 * Germany
9 *
10 *
11 * Copyright (C) 2021 - 2025 Leonid Kostrykin
12 *
13 */
14
15#pragma once
16
17#include <LibCarna/LibCarna.hpp>
18
19namespace LibCarna
20{
21
22namespace testing
23{
24
25
26
27// ----------------------------------------------------------------------------------
28// DVRStageTest
29// ----------------------------------------------------------------------------------
30
36class DVRStageTest : public QObject
37{
38
39 Q_OBJECT
40
41private slots:
42
45 void initTestCase();
46
49 void cleanupTestCase();
50
53 void init();
54
57 void cleanup();
58
59 // ---------------------------------------------------------------------------------
60
61 void test_withLighting();
62
63 void test_withoutLighting();
64
65 void test_withoutColormap();
66
67 void test_withColorMapLimits();
68
69 // ---------------------------------------------------------------------------------
70
71private:
72
73 const static unsigned int GEOMETRY_TYPE_VOLUMETRIC = 0;
74
75 std::unique_ptr< QGLContextHolder > qglContextHolder;
76 std::unique_ptr< TestFramebuffer > testFramebuffer;
77 std::unique_ptr< base::Node > root;
78 std::unique_ptr< base::FrameRenderer > renderer;
79 std::unique_ptr< base::IntensityVolumeUInt16 > data;
80
81 base::math::Vector3f dataSpacings;
82
84 base::Camera* cam;
85
86}; // DVRStageTest
87
88
89
90} // namespace testing
91
92} // namespace LibCarna
Contains forward-declarations.
Represents the point-of-view and defines the 3D to 2D projection.
Definition Camera.hpp:43
Performs direct volume renderings of the volume geometries in the scene.
Definition DVRStage.hpp:106
Module-tests of the LibCarna::presets::DVRStage class.
Eigen::Matrix< float, 3, 1 > Vector3f
Defines vector.
Definition math.hpp:200