LibCarna Version 3.4.0
Loading...
Searching...
No Matches
DRRMaskRenderingStageIntegrationTest.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// DRRMaskRenderingStageIntegrationTest
29// ----------------------------------------------------------------------------------
30
38{
39
40 Q_OBJECT
41
42private slots:
43
46 void initTestCase();
47
50 void cleanupTestCase();
51
54 void init();
55
58 void cleanup();
59
60 // ---------------------------------------------------------------------------------
61
62 void test_shared_geometry_node();
63
64 void test_dedicated_geometry_node();
65
66 void test_helper_geometry_node();
67
68 void test_render_borders();
69
70 void test_wrong_mask_role();
71
72 // ---------------------------------------------------------------------------------
73
74private:
75
76 const static unsigned int GEOMETRY_TYPE_VOLUMETRIC = 0;
77
78 std::unique_ptr< QGLContextHolder > qglContextHolder;
79 std::unique_ptr< TestFramebuffer > testFramebuffer;
80 std::unique_ptr< TestScene > scene;
81 std::unique_ptr< base::FrameRenderer > renderer;
82 std::unique_ptr< base::IntensityVolumeUInt8 > mask;
83
85
86}; // DRRMaskRenderingStageIntegrationTest
87
88
89
90} // namespace testing
91
92} // namespace LibCarna
Contains forward-declarations.
Integration-tests of the LibCarna::presets::DRRStage and the LibCarna::presets::MaskRenderingStage cl...