Carna  Version 3.0.1
TransparentRenderingStageTest.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>
16 
17 namespace Carna
18 {
19 
20 namespace testing
21 {
22 
23 
24 
25 // ----------------------------------------------------------------------------------
26 // TransparentRenderingStageTest
27 // ----------------------------------------------------------------------------------
28 
35 class TransparentRenderingStageTest : public QObject
36 {
37 
38  Q_OBJECT
39 
40 private slots:
41 
44  void initTestCase();
45 
48  void cleanupTestCase();
49 
52  void init();
53 
56  void cleanup();
57 
58  // ---------------------------------------------------------------------------------
59 
60  void test_transparentFromFront();
61 
62  void test_transparentFromBack();
63 
64  // ---------------------------------------------------------------------------------
65 
66 private:
67 
68  const static unsigned int GEOMETRY_TYPE_TRANSPARENT = 1;
69 
70  std::unique_ptr< QGLContextHolder > qglContextHolder;
71  std::unique_ptr< TestFramebuffer > testFramebuffer;
72  std::unique_ptr< TestScene > scene;
73  std::unique_ptr< base::FrameRenderer > renderer;
74 
76 
77 }; // TransparentRenderingStageTest
78 
79 
80 
81 } // namespace testing
82 
83 } // namespace Carna
Implements rendering stage that renders transparent meshes.
Module-tests of the Carna::presets::TransparentRenderingStage class.
Defines Carna::presets::TransparentRenderingStage.