Medical Imaging Interaction Toolkit  2022.04.99-194dd5d8
Medical Imaging Interaction Toolkit
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 (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 #ifndef _MITK_VTK_RESLICE_INTERPOLATION_PROPERTY__H_
14 #define _MITK_VTK_RESLICE_INTERPOLATION_PROPERTY__H_
15 
17 
18 #include <vtkImageReslice.h>
19 
20 namespace mitk
21 {
22 #ifdef _MSC_VER
23 #pragma warning(push)
24 #pragma warning(disable : 4522)
25 #endif
26 
34  {
35  public:
37 
38  itkFactorylessNewMacro(Self);
39 
40  itkCloneMacro(Self);
41 
43 
45 
49  virtual int GetInterpolation();
50 
54  virtual void SetInterpolationToNearest();
55 
59  virtual void SetInterpolationToLinear();
60 
64  virtual void SetInterpolationToCubic();
65 
66  using BaseProperty::operator=;
67 
68  protected:
72 
77 
81  VtkResliceInterpolationProperty(const std::string &value);
82 
87  bool AddEnum(const std::string &name, const IdType &id) override;
88 
93  virtual void AddInterpolationTypes();
94 
95  private:
96  // purposely not implemented
98 
99  itk::LightObject::Pointer InternalClone() const override;
100  };
101 
102 #ifdef _MSC_VER
103 #pragma warning(pop)
104 #endif
105 
106 } // end of namespace mitk
107 
108 #endif
#define MITKCORE_EXPORT
#define mitkNewMacro1Param(classname, type)
Definition: mitkCommon.h:68
DataCollection - Class to facilitate loading/accessing structured data.
Abstract base class for properties.
#define mitkClassMacro(className, SuperClassName)
Definition: mitkCommon.h:36