Medical Imaging Interaction Toolkit
2018.4.99-389bf124
Medical Imaging Interaction Toolkit
mitkResliceMethodProperty.cpp
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
#include "
mitkResliceMethodProperty.h
"
14
15
mitk::ResliceMethodProperty::ResliceMethodProperty
()
16
{
17
AddThickSlicesTypes
();
18
SetValue
((
IdType
)0);
19
}
20
21
mitk::ResliceMethodProperty::ResliceMethodProperty
(
const
IdType
&value)
22
{
23
AddThickSlicesTypes
();
24
if
(
IsValidEnumerationValue
(value))
25
SetValue
(value);
26
}
27
28
mitk::ResliceMethodProperty::ResliceMethodProperty
(
const
std::string &value)
29
{
30
AddThickSlicesTypes
();
31
if
(
IsValidEnumerationValue
(value))
32
SetValue
(value);
33
}
34
35
void
mitk::ResliceMethodProperty::AddThickSlicesTypes
()
36
{
37
AddEnum
(
"disabled"
, (
IdType
)0);
38
AddEnum
(
"mip"
, (
IdType
)1);
39
AddEnum
(
"sum"
, (
IdType
)2);
40
AddEnum
(
"weighted"
, (
IdType
)3);
41
AddEnum
(
"minip"
, (
IdType
)4);
42
AddEnum
(
"mean"
, (
IdType
)5);
43
}
44
45
itk::LightObject::Pointer mitk::ResliceMethodProperty::InternalClone()
const
46
{
47
itk::LightObject::Pointer result(
new
Self
(*
this
));
48
result->UnRegister();
49
return
result;
50
}
mitk::EnumerationProperty::SetValue
virtual bool SetValue(const std::string &name)
Definition:
mitkEnumerationProperty.cpp:43
mitk::ResliceMethodProperty::AddThickSlicesTypes
void AddThickSlicesTypes()
Definition:
mitkResliceMethodProperty.cpp:35
mitk::EnumerationProperty::IdType
unsigned int IdType
Definition:
mitkEnumerationProperty.h:48
mitk::ResliceMethodProperty::ResliceMethodProperty
ResliceMethodProperty()
Definition:
mitkResliceMethodProperty.cpp:15
mitk::EnumerationProperty::AddEnum
virtual bool AddEnum(const std::string &name, const IdType &id)
Definition:
mitkEnumerationProperty.cpp:29
mitkResliceMethodProperty.h
mitk::ResliceMethodProperty::Self
ResliceMethodProperty Self
Definition:
mitkResliceMethodProperty.h:31
mitk::EnumerationProperty::IsValidEnumerationValue
virtual bool IsValidEnumerationValue(const IdType &id) const
Definition:
mitkEnumerationProperty.cpp:138
Source
Modules
Core
src
DataManagement
mitkResliceMethodProperty.cpp
Generated on Thu Mar 12 2020 10:24:02 for Medical Imaging Interaction Toolkit by
1.8.13