Carna Version 3.3.3
Loading...
Searching...
No Matches
TestScene.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>
15
16namespace Carna
17{
18
19namespace testing
20{
21
22
23
24// ----------------------------------------------------------------------------------
25// TestScene
26// ----------------------------------------------------------------------------------
27
28class TestScene
29{
30
31 std::unique_ptr< base::HUVolumeUInt16 > huVolume;
32
33 base::Geometry* const myVolumeGeometry;
34
35 base::Camera* const myCam;
36
37 base::math::Vector3f spacings;
38
39public:
40
41 const static unsigned int GEOMETRY_TYPE_VOLUMETRIC = 0;
42
43 const static unsigned int ROLE_HU_VOLUME = 0;
44
45 TestScene();
46
47 ~TestScene();
48
49 const std::unique_ptr< base::Node > root;
50
51 base::Geometry& volumeGeometry() const;
52
53 base::Camera& cam() const;
54
55 void resetCamTransform();
56
57 const base::HUVolumeUInt16& volume() const;
58
59 base::math::Vector3f scale() const;
60
61 const base::math::Vector3f& getSpacings() const;
62
63}; // TestScene
64
65
66
67} // namespace testing
68
69} // namespace Carna
Eigen::Matrix< float, 3, 1 > Vector3f
Defines vector.
Definition math.h:196
BufferedHUVolume< uint16_t > HUVolumeUInt16
Defines 16bit unsigned integer HU volume data.
Definition Carna.h:155