Medical Imaging Interaction Toolkit
2024.12.99-0da743f6
Medical Imaging Interaction Toolkit
mitkTransferFunctionInitializer.h
Go to the documentation of this file.
1
/*============================================================================
2
3
The Medical Imaging Interaction Toolkit (MITK)
4
5
Copyright (c) German Cancer Research Center (DKFZ)
6
All rights reserved.
7
8
Use of this source code is governed by a 3-clause BSD license that can be
9
found in the LICENSE file.
10
11
============================================================================*/
12
13
#ifndef mitkTransferFunctionInitializer_h
14
#define mitkTransferFunctionInitializer_h
15
16
#include <vtkColorTransferFunction.h>
17
#include <vtkPiecewiseFunction.h>
18
#include <vtkSmartPointer.h>
19
20
#include "
mitkTransferFunction.h
"
21
22
#include <itkObject.h>
23
#include <itkObjectFactory.h>
24
25
#include <
MitkCoreExports.h
>
26
27
namespace
mitk
28
{
42
class
MITKCORE_EXPORT
TransferFunctionInitializer
:
public
itk::Object
43
{
44
public
:
45
mitkClassMacroItkParent
(
TransferFunctionInitializer
, itk::Object);
46
47
itkFactorylessNewMacro(
Self
);
48
49
itkCloneMacro(
Self
)
50
mitkNewMacro1Param
(
TransferFunctionInitializer
,
TransferFunction
::
Pointer
);
51
52
static
void
GetPresetNames(std::vector<std::
string
> &presetNames);
53
54
void
SetTransferFunction(
TransferFunction
::
Pointer
transferFunction);
55
mitk
::
TransferFunction
::
Pointer
GetTransferFunction();
56
void
SetTransferFunctionMode(
int
mode);
57
58
void
InitTransferFunctionMode();
59
60
protected:
61
TransferFunctionInitializer
(
TransferFunction
::
Pointer
transferFunction =
nullptr
);
62
~
TransferFunctionInitializer
() override;
63
64
private:
65
int
m_Mode;
66
mitk
::
TransferFunction
::
Pointer
m_transferFunction;
67
68
// Define Transfer Function
69
enum TransferFunctionMode
70
{
71
TF_CT_DEFAULT,
72
TF_CT_BLACK_WHITE,
73
TF_CT_THORAX_LARGE,
74
TF_CT_THORAX_SMALL,
75
TF_CT_BONE,
76
TF_CT_BONE_GRADIENT,
77
TF_CT_CARDIAC,
78
TF_MR_GENERIC
79
};
80
81
// remove all old points
82
void
RemoveAllPoints();
83
void
SetModified();
84
void
SetCtDefaultMode();
85
void
SetCtBlackWhiteMode();
86
void
SetCtThoraxLargeMode();
87
void
SetCtThoraxSmallMode();
88
void
SetCtBoneMode();
89
void
SetCtBoneGradientMode();
90
void
SetCtCardiacMode();
91
void
SetMrGenericMode();
92
};
93
}
94
95
#endif
mitkTransferFunction.h
mitkNewMacro1Param
#define mitkNewMacro1Param(classname, type)
Definition:
mitkCommon.h:68
itk::SmartPointer< Self >
mitkClassMacroItkParent
#define mitkClassMacroItkParent(className, SuperClassName)
Definition:
mitkCommon.h:45
mitk
Find image slices visible on a given plane.
Definition:
RenderingTests.dox:1
MitkCoreExports.h
mitk::TransferFunctionInitializer
Wrapper class for VTK scalar opacity, gradient opacity, and color transfer functions.
Definition:
mitkTransferFunctionInitializer.h:42
mitk::TransferFunction
The TransferFunction class A wrapper class for VTK scalar opacity, gradient opacity,...
Definition:
mitkTransferFunction.h:55
MITKCORE_EXPORT
#define MITKCORE_EXPORT
Definition:
MitkCoreExports.h:15
src
MITK
Modules
Core
include
mitkTransferFunctionInitializer.h
Generated on Mon Dec 23 2024 02:13:21 for Medical Imaging Interaction Toolkit by
1.8.17