Medical Imaging Interaction Toolkit
2024.06.99-60d9b802
Medical Imaging Interaction Toolkit
mitkLabeledImageLookupTable.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 mitkLabeledImageLookupTable_h
14
#define mitkLabeledImageLookupTable_h
15
16
#include "
MitkDataTypesExtExports.h
"
17
#include "
mitkLevelWindow.h
"
18
#include "
mitkLookupTable.h
"
19
#include <iostream>
20
#include <string>
21
22
namespace
mitk
23
{
33
class
MITKDATATYPESEXT_EXPORT
LabeledImageLookupTable
:
public
LookupTable
34
{
35
public
:
39
mitkClassMacro
(
LabeledImageLookupTable
,
LookupTable
);
40
44
itkFactorylessNewMacro(
Self
);
45
itkCloneMacro(
Self
);
46
51
typedef
unsigned
char
LabelType
;
52
53
LabeledImageLookupTable
&operator=(
const
LookupTable
&other)
override
;
54
63
virtual
void
SetColorForLabel(
64
const
LabelType
&label,
const
double
&r,
const
double
&g,
const
double
&b,
const
double
a = 1.0);
65
72
virtual
double
*GetColorForLabel(
const
LabelType
&label);
73
80
mitk::LevelWindow
GetLevelWindow
() {
return
m_LevelWindow; }
81
protected
:
85
LabeledImageLookupTable
();
86
87
LabeledImageLookupTable
(
const
LabeledImageLookupTable
&other);
88
92
~
LabeledImageLookupTable
()
override
;
93
98
virtual
void
GenerateRandomColor(
double
&r,
double
&g,
double
&b);
103
virtual
double
GenerateRandomNumber();
104
105
mitk::LevelWindow
m_LevelWindow
;
106
107
private
:
108
itk::LightObject::Pointer InternalClone()
const override
;
109
};
110
}
111
112
#endif
mitk::LabeledImageLookupTable::LabelType
unsigned char LabelType
Definition:
mitkLabeledImageLookupTable.h:45
MitkDataTypesExtExports.h
MITKDATATYPESEXT_EXPORT
#define MITKDATATYPESEXT_EXPORT
Definition:
MitkDataTypesExtExports.h:15
mitk::LookupTable
The LookupTable class mitk wrapper for a vtkLookupTable.
Definition:
mitkLookupTable.h:42
mitk
Find image slices visible on a given plane.
Definition:
RenderingTests.dox:1
mitkLookupTable.h
mitk::LevelWindow
The LevelWindow class Class to store level/window values.
Definition:
mitkLevelWindow.h:45
mitk::LabeledImageLookupTable::GetLevelWindow
mitk::LevelWindow GetLevelWindow()
Definition:
mitkLabeledImageLookupTable.h:80
mitk::LabeledImageLookupTable
Definition:
mitkLabeledImageLookupTable.h:33
mitkLevelWindow.h
mitkClassMacro
#define mitkClassMacro(className, SuperClassName)
Definition:
mitkCommon.h:36
mitk::LabeledImageLookupTable::m_LevelWindow
mitk::LevelWindow m_LevelWindow
Definition:
mitkLabeledImageLookupTable.h:105
src
MITK
Modules
DataTypesExt
include
mitkLabeledImageLookupTable.h
Generated on Sat Nov 23 2024 02:13:12 for Medical Imaging Interaction Toolkit by
1.8.17