Carna  Version 3.3.2
PointMarkerHelperTest.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 // PointMarkerHelperTest
27 // ----------------------------------------------------------------------------------
28 
35 class PointMarkerHelperTest : 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_multiple();
61 
62  void test_fixed_color();
63 
64  // ---------------------------------------------------------------------------------
65 
66 private:
67 
68  const static unsigned int GEOMETRY_TYPE_OPAQUE = 1;
69 
70  std::unique_ptr< QGLContextHolder > qglContextHolder;
71  std::unique_ptr< TestFramebuffer > testFramebuffer;
72  std::unique_ptr< base::FrameRenderer > renderer;
74 
75  std::unique_ptr< base::Node > root;
76  std::unique_ptr< base::Camera > cam;
77 
78 }; // PointMarkerHelperTest
79 
80 
81 
82 } // namespace testing
83 
84 } // namespace Carna
Implements a geometry rendering stage that renders meshes.
Defines Carna::presets::OpaqueRenderingStage.
Module-tests of the Carna::helpers::PointMarkerHelper class.