Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
mitkVtkResliceInterpolationProperty.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,
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 #ifndef _MITK_VTK_RESLICE_INTERPOLATION_PROPERTY__H_
18 #define _MITK_VTK_RESLICE_INTERPOLATION_PROPERTY__H_
19 
21 
22 #include <vtkImageReslice.h>
23 
24 namespace mitk
25 {
26 #ifdef _MSC_VER
27 #pragma warning(push)
28 #pragma warning(disable : 4522)
29 #endif
30 
38  {
39  public:
41 
42  itkFactorylessNewMacro(Self) itkCloneMacro(Self)
43 
45 
46  mitkNewMacro1Param(VtkResliceInterpolationProperty, const std::string &);
47 
51  virtual int GetInterpolation();
52 
56  virtual void SetInterpolationToNearest();
57 
61  virtual void SetInterpolationToLinear();
62 
66  virtual void SetInterpolationToCubic();
67 
68  using BaseProperty::operator=;
69 
70  protected:
73  VtkResliceInterpolationProperty();
74 
78  VtkResliceInterpolationProperty(const IdType &value);
79 
83  VtkResliceInterpolationProperty(const std::string &value);
84 
89  virtual bool AddEnum(const std::string &name, const IdType &id) override;
90 
95  virtual void AddInterpolationTypes();
96 
97  private:
98  // purposely not implemented
99  VtkResliceInterpolationProperty &operator=(const VtkResliceInterpolationProperty &);
100 
101  virtual itk::LightObject::Pointer InternalClone() const override;
102  };
103 
104 #ifdef _MSC_VER
105 #pragma warning(pop)
106 #endif
107 
108 } // end of namespace mitk
109 
110 #endif
#define MITKCORE_EXPORT
#define mitkNewMacro1Param(classname, type)
Definition: mitkCommon.h:76
STL namespace.
DataCollection - Class to facilitate loading/accessing structured data.
Abstract base class for properties.
#define mitkClassMacro(className, SuperClassName)
Definition: mitkCommon.h:44