Carna  Version 3.3.2
MaskRenderingStageIntegrationTest.h
1 /*
2  * Copyright (C) 2021 Leonid Kostrykin
3  *
4  */
5 
6 #pragma once
7 
8 #include <Carna/Carna.h>
9 
10 namespace Carna
11 {
12 
13 namespace testing
14 {
15 
16 
17 
18 // ----------------------------------------------------------------------------------
19 // MaskRenderingStageIntegrationTest
20 // ----------------------------------------------------------------------------------
21 
28 class MaskRenderingStageIntegrationTest : public QObject
29 {
30 
31  Q_OBJECT
32 
33 private slots:
34 
37  void initTestCase();
38 
41  void cleanupTestCase();
42 
45  void init();
46 
49  void cleanup();
50 
51  // ---------------------------------------------------------------------------------
52 
53  void test_shared_geometry_node();
54 
55  void test_dedicated_geometry_node();
56 
57  void test_helper_geometry_node();
58 
59  void test_render_borders();
60 
61  // ---------------------------------------------------------------------------------
62 
63 private:
64 
65  const static unsigned int GEOMETRY_TYPE_VOLUMETRIC = 0;
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  std::unique_ptr< base::IntensityVolumeUInt8 > mask;
72 
74 
75 }; // MaskRenderingStageIntegrationTest
76 
77 
78 
79 } // namespace testing
80 
81 } // namespace Carna
Integration-tests of the Carna::presets::MaskRenderingStage class.