Medical Imaging Interaction Toolkit
2023.12.00
Medical Imaging Interaction Toolkit
mitkLevelWindowProperty.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
#ifndef mitkLevelWindowProperty_h
13
#define mitkLevelWindowProperty_h
14
15
#include "
mitkBaseProperty.h
"
16
#include "
mitkLevelWindow.h
"
17
18
namespace
mitk
19
{
20
#ifdef _MSC_VER
21
#pragma warning(push)
22
#pragma warning(disable : 4522)
23
#endif
24
37
class
MITKCORE_EXPORT
LevelWindowProperty
:
public
BaseProperty
38
{
39
protected
:
40
LevelWindow
m_LevWin
;
41
42
LevelWindowProperty
();
43
44
LevelWindowProperty
(
const
LevelWindowProperty
&other);
45
46
LevelWindowProperty
(
const
mitk::LevelWindow
&levWin);
47
48
public
:
49
mitkClassMacro
(
LevelWindowProperty
,
BaseProperty
);
50
51
itkFactorylessNewMacro(
Self
);
52
53
itkCloneMacro(
Self
)
mitkNewMacro1Param
(
LevelWindowProperty
,
const
mitk::LevelWindow
&);
54
55
typedef
LevelWindow
ValueType
;
56
57
~
LevelWindowProperty
()
override
;
58
59
const
mitk::LevelWindow
&GetLevelWindow()
const
;
60
const
mitk::LevelWindow
&GetValue()
const
;
61
62
void
SetLevelWindow(
const
LevelWindow
&levWin);
63
void
SetValue(
const
ValueType
&levWin);
64
65
std::string GetValueAsString()
const override
;
66
67
bool
ToJSON(
nlohmann::json
& j)
const override
;
68
bool
FromJSON(
const
nlohmann::json
& j)
override
;
69
70
using
BaseProperty::operator=;
71
72
private
:
73
// purposely not implemented
74
LevelWindowProperty
&operator=(
const
LevelWindowProperty
&);
75
76
itk::LightObject::Pointer InternalClone()
const override
;
77
78
bool
IsEqual(
const
BaseProperty
&property)
const override
;
79
bool
Assign(
const
BaseProperty
&property)
override
;
80
};
81
82
#ifdef _MSC_VER
83
#pragma warning(pop)
84
#endif
85
86
}
// namespace mitk
87
88
#endif
mitk::BaseProperty
Abstract base class for properties.
Definition:
mitkBaseProperty.h:36
mitk::LevelWindowProperty::ValueType
LevelWindow ValueType
Definition:
mitkLevelWindowProperty.h:53
mitkNewMacro1Param
#define mitkNewMacro1Param(classname, type)
Definition:
mitkCommon.h:68
mitk
Find image slices visible on a given plane.
Definition:
RenderingTests.dox:1
mitk::LevelWindow
The LevelWindow class Class to store level/window values.
Definition:
mitkLevelWindow.h:45
json
nlohmann::json json
Definition:
mitkModelTestFixture.h:29
mitkLevelWindow.h
mitkClassMacro
#define mitkClassMacro(className, SuperClassName)
Definition:
mitkCommon.h:36
mitk::LevelWindowProperty::m_LevWin
LevelWindow m_LevWin
Definition:
mitkLevelWindowProperty.h:40
mitkBaseProperty.h
MITKCORE_EXPORT
#define MITKCORE_EXPORT
Definition:
MitkCoreExports.h:15
mitk::LevelWindowProperty
The LevelWindowProperty class Property for the mitk::LevelWindow.
Definition:
mitkLevelWindowProperty.h:37
src
MITK
Modules
Core
include
mitkLevelWindowProperty.h
Generated on Thu Nov 30 2023 15:58:53 for Medical Imaging Interaction Toolkit by
1.8.17