Carna Version 3.3.3
Loading...
Searching...
No Matches
MIPLayer.h
Go to the documentation of this file.
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#ifndef MIPLAYER_H_6014714286
13#define MIPLAYER_H_6014714286
14
19#include <Carna/Carna.h>
22#include <Carna/base/math.h>
24
25namespace Carna
26{
27
28namespace presets
29{
30
31
32
33// ----------------------------------------------------------------------------------
34// presets :: MIPLayer
35// ----------------------------------------------------------------------------------
36
43class CARNA_LIB MIPLayer
44{
45
47
48 const base::BlendFunction* myFunction;
49
50public:
51
52 EIGEN_MAKE_ALIGNED_OPERATOR_NEW
53
56
60 ( const base::math::Span< float >& intensityRange
61 , const base::math::Vector4f& color
62 , const base::BlendFunction& function = LAYER_FUNCTION_REPLACE );
63
67 ( float minIntensity, float maxIntensity
68 , const base::math::Vector4f& color
69 , const base::BlendFunction& function = LAYER_FUNCTION_REPLACE );
70
76
81
86 void setFunction( const base::BlendFunction& layerFunction );
87
93
94}; // presets :: MIPLayer
95
96
97
98} // namespace Carna :: presets
99
100} // namespace Carna
101
102#endif // MIPLAYER_H_6014714286
Defines Carna::base::BlendFunction.
Defines Carna::base::math::Span.
Defines how alpha blending is to be performed.
Defines an intensity range and the way it is visualized by a maximum intensity projection.
Definition MIPLayer.h:44
void setFunction(const base::BlendFunction &layerFunction)
Sets the blending function to be used to combine this layer with the previous layers.
base::math::Span< float > intensityRange
Holds the intensity range that this layer covers as described here.
Definition MIPLayer.h:75
MIPLayer(float minIntensity, float maxIntensity, const base::math::Vector4f &color, const base::BlendFunction &function=LAYER_FUNCTION_REPLACE)
Instantiates.
base::math::Vector4f color
Holds the color of this layer as described here.
Definition MIPLayer.h:80
static const base::BlendFunction LAYER_FUNCTION_REPLACE
Defines "replacing" blending function.
Definition MIPLayer.h:55
static const base::BlendFunction LAYER_FUNCTION_ADD
Defines the additive blending function.
Definition MIPLayer.h:54
const base::BlendFunction & function() const
References the blending function to be used to combine this layer with the previous layers.
MIPLayer(const base::math::Span< float > &intensityRange, const base::math::Vector4f &color, const base::BlendFunction &function=LAYER_FUNCTION_REPLACE)
Instantiates.
Defines Carna::base::math namespace and CARNA_FOR_VECTOR3UI.
Eigen::Matrix< float, 4, 1 > Vector4f
Defines vector.
Definition math.h:195
#define NON_COPYABLE
Features class it is placed in as non-copyable.