Medical Imaging Interaction Toolkit  2016.11.0
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,
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 
18 
20 {
22  SetValue((IdType)0);
23 }
24 
26 {
27  AddThickSlicesTypes();
28  if (IsValidEnumerationValue(value))
29  SetValue(value);
30 }
31 
33 {
34  AddThickSlicesTypes();
35  if (IsValidEnumerationValue(value))
36  SetValue(value);
37 }
38 
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 }
virtual bool SetValue(const std::string &name)
itk::SmartPointer< Self > Pointer