LibCarna Version 3.4.0
Loading...
Searching...
No Matches
DVRMaskRenderingStageIntegrationTest.hpp
1/*
2 * Copyright (C) 2021 - 2025 Leonid Kostrykin
3 *
4 */
5
6#pragma once
7
9
10namespace LibCarna
11{
12
13namespace testing
14{
15
16
17
18// ----------------------------------------------------------------------------------
19// DVRMaskRenderingStageIntegrationTest
20// ----------------------------------------------------------------------------------
21
29{
30
31 Q_OBJECT
32
33private slots:
34
37 void initTestCase();
38
41 void cleanupTestCase();
42
45 void init();
46
49 void cleanup();
50
51// ---------------------------------------------------------------------------------
52
53 void test_after1Frame();
54
55 void test_after2Frames();
56
57 void test_after3Frames();
58
59// ---------------------------------------------------------------------------------
60
61private:
62
64
65 const static unsigned int GEOMETRY_TYPE_VOLUMETRIC = 0;
66 const static unsigned int GEOMETRY_TYPE_MASK = 1;
67
68 std::unique_ptr< QGLContextHolder > qglContextHolder;
69 std::unique_ptr< TestFramebuffer > testFramebuffer;
70 std::unique_ptr< TestScene > scene;
71 std::unique_ptr< base::FrameRenderer > renderer;
72 std::unique_ptr< base::IntensityVolumeUInt8 > mask;
73 std::unique_ptr< MaskGridHelper > maskGridHelper;
74
77
78 void renderFrames( unsigned int n );
79
80}; // DVRMaskRenderingStageIntegrationTest
81
82
83
84} // namespace testing
85
86} // namespace LibCarna
Contains forward-declarations.
Computes the partitioning of volumetric data and the corresponding normal map. Also creates scene nod...
Performs direct volume renderings of the volume geometries in the scene.
Definition DVRStage.hpp:106
Integration-tests of the LibCarna::presets::DVRStage and the LibCarna::presets::MaskRenderingStage cl...