Medical Imaging Interaction Toolkit  2026.06.00
Medical Imaging Interaction Toolkit
mitkVtkInterpolationProperty.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 mitkVtkInterpolationProperty_h
14 #define mitkVtkInterpolationProperty_h
15 
17 
18 namespace mitk
19 {
28  {
29  public:
31 
32  itkFactorylessNewMacro(Self);
33 
34  itkCloneMacro(Self);
35 
37 
39 
44  virtual int GetVtkInterpolation();
45 
47  virtual void SetInterpolationToFlat();
48 
50  virtual void SetInterpolationToGouraud();
51 
53  virtual void SetInterpolationToPhong();
54 
55  using BaseProperty::operator=;
56 
57  protected:
60 
69 
77  VtkInterpolationProperty(const std::string &value);
78 
80 
84  bool AddEnum(const std::string &name, const IdType &id) override;
85 
89  virtual void AddInterpolationTypes();
90 
92 
93  private:
94  // purposely not implemented
96  };
97 
98 
99 } // end of namespace mitk
100 
101 #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 interpolation enumeration as an EnumerationProperty.
mitkCloneMacro(VtkInterpolationProperty)
VtkInterpolationProperty()
Constructor. Sets the interpolation to a default value of Gouraud(1).
virtual void AddInterpolationTypes()
Add the VTK-defined interpolation types to the enumeration.
virtual int GetVtkInterpolation()
Return the current interpolation value as defined by VTK constants.
mitkNewMacro1Param(VtkInterpolationProperty, const IdType &)
virtual void SetInterpolationToPhong()
Set the interpolation type to VTK_PHONG.
mitkClassMacro(VtkInterpolationProperty, EnumerationProperty)
VtkInterpolationProperty(const IdType &value)
Constructor. Sets the interpolation to the given value.
bool AddEnum(const std::string &name, const IdType &id) override
Overridden as protected to prevent adding invalid interpolation types.
virtual void SetInterpolationToGouraud()
Set the interpolation type to VTK_GOURAUD.
virtual void SetInterpolationToFlat()
Set the interpolation type to VTK_FLAT.
mitkNewMacro1Param(VtkInterpolationProperty, const std::string &)
VtkInterpolationProperty(const std::string &value)
Constructor. Sets the interpolation to the given value.
VtkInterpolationProperty(const VtkInterpolationProperty &other)
Find image slices visible on a given plane.