Medical Imaging Interaction Toolkit
2016.11.0
Medical Imaging Interaction Toolkit
Home
Manual
API Reference
Download
Bugzilla
Groups
Namespace List
Class List
File List
Examples
File List
File Members
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,
6
Division of Medical and Biological Informatics.
7
All rights reserved.
8
9
This software is distributed WITHOUT ANY WARRANTY; without
10
even the implied warranty of MERCHANTABILITY or FITNESS FOR
11
A PARTICULAR PURPOSE.
12
13
See LICENSE.txt or http://www.mitk.org for details.
14
15
===================================================================*/
16
17
#include "
mitkResliceMethodProperty.h
"
18
19
mitk::ResliceMethodProperty::ResliceMethodProperty
()
20
{
21
AddThickSlicesTypes
();
22
SetValue
((
IdType
)0);
23
}
24
25
mitk::ResliceMethodProperty::ResliceMethodProperty
(
const
IdType
&value)
26
{
27
AddThickSlicesTypes();
28
if
(IsValidEnumerationValue(value))
29
SetValue(value);
30
}
31
32
mitk::ResliceMethodProperty::ResliceMethodProperty
(
const
std::string &value)
33
{
34
AddThickSlicesTypes();
35
if
(IsValidEnumerationValue(value))
36
SetValue(value);
37
}
38
39
void
mitk::ResliceMethodProperty::AddThickSlicesTypes
()
40
{
41
AddEnum(
"disabled"
, (
IdType
)0);
42
AddEnum(
"mip"
, (
IdType
)1);
43
AddEnum(
"sum"
, (
IdType
)2);
44
AddEnum(
"weighted"
, (
IdType
)3);
45
AddEnum(
"minip"
, (
IdType
)4);
46
AddEnum(
"mean"
, (
IdType
)5);
47
}
48
49
itk::LightObject::Pointer
mitk::ResliceMethodProperty::InternalClone()
const
50
{
51
itk::LightObject::Pointer
result(
new
Self(*
this
));
52
result->UnRegister();
53
return
result;
54
}
mitk::EnumerationProperty::SetValue
virtual bool SetValue(const std::string &name)
Definition:
mitkEnumerationProperty.cpp:49
mitk::Pointer
itk::SmartPointer< Self > Pointer
Definition:
mitkRenderingManager.h:389
mitk::ResliceMethodProperty::AddThickSlicesTypes
void AddThickSlicesTypes()
Definition:
mitkResliceMethodProperty.cpp:39
mitk::EnumerationProperty::IdType
unsigned int IdType
Definition:
mitkEnumerationProperty.h:62
mitk::ResliceMethodProperty::ResliceMethodProperty
ResliceMethodProperty()
Definition:
mitkResliceMethodProperty.cpp:19
mitkResliceMethodProperty.h
git
MITK
Modules
Core
src
DataManagement
mitkResliceMethodProperty.cpp
Generated on Fri Feb 3 2017 20:52:07 for Medical Imaging Interaction Toolkit by
1.8.9.1