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 
14 
16 {
18  SetValue((IdType)0);
19 }
20 
22 {
24  if (IsValidEnumerationValue(value))
25  SetValue(value);
26 }
27 
29 {
31  if (IsValidEnumerationValue(value))
32  SetValue(value);
33 }
34 
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 }
virtual bool SetValue(const std::string &name)
virtual bool AddEnum(const std::string &name, const IdType &id)
virtual bool IsValidEnumerationValue(const IdType &id) const