Medical Imaging Interaction Toolkit  2025.12.02
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 mitkVtkResliceInterpolationProperty_h
14 #define mitkVtkResliceInterpolationProperty_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
VtkResliceInterpolationProperty(const std::string &value)
mitkNewMacro1Param(VtkResliceInterpolationProperty, const IdType &)
bool AddEnum(const std::string &name, const IdType &id) override
VtkResliceInterpolationProperty(const IdType &value)
mitkClassMacro(VtkResliceInterpolationProperty, EnumerationProperty)
mitkNewMacro1Param(VtkResliceInterpolationProperty, const std::string &)
Find image slices visible on a given plane.