LibCarna Version 3.4.0
Loading...
Searching...
No Matches
TestScene.hpp
1/*
2 * Copyright (C) 2010 - 2016 Leonid Kostrykin
3 *
4 * Chair of Medical Engineering (mediTEC)
5 * RWTH Aachen University
6 * Pauwelsstr. 20
7 * 52074 Aachen
8 * Germany
9 *
10 *
11 * Copyright (C) 2021 - 2025 Leonid Kostrykin
12 *
13 */
14
15#pragma once
16
17#include <LibCarna/LibCarna.hpp>
18
19namespace LibCarna
20{
21
22namespace testing
23{
24
25
26
27// ----------------------------------------------------------------------------------
28// TestScene
29// ----------------------------------------------------------------------------------
30
31class TestScene
32{
33
34 std::unique_ptr< base::IntensityVolumeUInt16 > myVolume;
35
36 base::Geometry* const myVolumeGeometry;
37
38 base::Camera* const myCam;
39
40 base::math::Vector3f spacings;
41
42public:
43
44 const static unsigned int GEOMETRY_TYPE_VOLUMETRIC = 0;
45
46 const static unsigned int ROLE_HU_VOLUME = 0;
47
48 TestScene( bool stretchIntensities = false );
49
50 ~TestScene();
51
52 const std::unique_ptr< base::Node > root;
53
54 base::Geometry& volumeGeometry() const;
55
56 base::Camera& cam() const;
57
58 void resetCamTransform();
59
60 const base::IntensityVolumeUInt16& volume() const;
61
62 base::math::Vector3f scale() const;
63
64 const base::math::Vector3f& getSpacings() const;
65
66}; // TestScene
67
68
69
70} // namespace testing
71
72} // namespace LibCarna
Contains forward-declarations.
Eigen::Matrix< float, 3, 1 > Vector3f
Defines vector.
Definition math.hpp:200
BufferedIntensityVolume< uint16_t > IntensityVolumeUInt16
Defines 16bit intensity volume.
Definition LibCarna.hpp:147