Medical Imaging Interaction Toolkit  2024.06.00
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
mitk::BaseProperty
Abstract base class for properties.
Definition: mitkBaseProperty.h:36
mitk::EnumerationProperty
Definition: mitkEnumerationProperty.h:43
mitkNewMacro1Param
#define mitkNewMacro1Param(classname, type)
Definition: mitkCommon.h:68
mitk
Find image slices visible on a given plane.
Definition: RenderingTests.dox:1
mitk::EnumerationProperty::IdType
unsigned int IdType
Definition: mitkEnumerationProperty.h:48
mitkEnumerationProperty.h
mitk::VtkResliceInterpolationProperty
Definition: mitkVtkResliceInterpolationProperty.h:33
mitkClassMacro
#define mitkClassMacro(className, SuperClassName)
Definition: mitkCommon.h:36
MITKCORE_EXPORT
#define MITKCORE_EXPORT
Definition: MitkCoreExports.h:15