Medical Imaging Interaction Toolkit  2026.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 {
30  {
31  public:
33 
34  itkFactorylessNewMacro(Self);
35 
36  itkCloneMacro(Self);
37 
39 
41 
46  virtual int GetInterpolation();
47 
49  virtual void SetInterpolationToNearest();
50 
52  virtual void SetInterpolationToLinear();
53 
55  virtual void SetInterpolationToCubic();
56 
57  using BaseProperty::operator=;
58 
59  protected:
62 
68 
73  VtkResliceInterpolationProperty(const std::string &value);
74 
76 
80  bool AddEnum(const std::string &name, const IdType &id) override;
81 
85  virtual void AddInterpolationTypes();
86 
88 
89  private:
90  // purposely not implemented
92  };
93 
94 
95 } // end of namespace mitk
96 
97 #endif
#define MITKCORE_EXPORT
Property for storing enumeration-like values identified by id and name.
unsigned int IdType
Unsigned integer type used as unique enumeration value identifier.
Encapsulates the VTK reslice interpolation enumeration as an EnumerationProperty.
virtual void AddInterpolationTypes()
Add the VTK-defined reslice interpolation types to the enumeration.
VtkResliceInterpolationProperty(const std::string &value)
Constructor. Sets reslice interpolation to the given value.
virtual void SetInterpolationToNearest()
Set the interpolation type to VTK_RESLICE_NEAREST.
mitkNewMacro1Param(VtkResliceInterpolationProperty, const IdType &)
VtkResliceInterpolationProperty(const VtkResliceInterpolationProperty &other)
virtual void SetInterpolationToLinear()
Set the interpolation type to VTK_RESLICE_LINEAR.
mitkCloneMacro(VtkResliceInterpolationProperty)
bool AddEnum(const std::string &name, const IdType &id) override
Overridden as protected to prevent adding invalid interpolation types.
virtual void SetInterpolationToCubic()
Set the interpolation type to VTK_RESLICE_CUBIC.
virtual int GetInterpolation()
Return the current reslice interpolation value as defined by VTK constants.
VtkResliceInterpolationProperty()
Constructor. Sets reslice interpolation to default (VTK_RESLICE_NEAREST).
VtkResliceInterpolationProperty(const IdType &value)
Constructor. Sets reslice interpolation to the given value.
mitkClassMacro(VtkResliceInterpolationProperty, EnumerationProperty)
mitkNewMacro1Param(VtkResliceInterpolationProperty, const std::string &)
Find image slices visible on a given plane.