Medical Imaging Interaction Toolkit  2018.04.99-aba3194f
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 _MITK_VTK_INTERPOLATION_PROPERTY__H_
14 #define _MITK_VTK_INTERPOLATION_PROPERTY__H_
15 
17 
18 namespace mitk
19 {
20 #ifdef _MSC_VER
21 #pragma warning(push)
22 #pragma warning(disable : 4522)
23 #endif
24 
32  {
33  public:
35 
36  itkFactorylessNewMacro(Self);
37 
38  itkCloneMacro(Self);
39 
41 
43 
48  virtual int GetVtkInterpolation();
49 
53  virtual void SetInterpolationToFlat();
54 
58  virtual void SetInterpolationToGouraud();
59 
63  virtual void SetInterpolationToPhong();
64 
65  using BaseProperty::operator=;
66 
67  protected:
72 
78  VtkInterpolationProperty(const IdType &value);
79 
85  VtkInterpolationProperty(const std::string &value);
86 
91  bool AddEnum(const std::string &name, const IdType &id) override;
92 
97  virtual void AddInterpolationTypes();
98 
99  private:
100  // purposely not implemented
102 
103  itk::LightObject::Pointer InternalClone() const override;
104  };
105 
106 #ifdef _MSC_VER
107 #pragma warning(pop)
108 #endif
109 
110 } // end of namespace mitk
111 
112 #endif
#define MITKCORE_EXPORT
#define mitkNewMacro1Param(classname, type)
Definition: mitkCommon.h:72
DataCollection - Class to facilitate loading/accessing structured data.
Abstract base class for properties.
#define mitkClassMacro(className, SuperClassName)
Definition: mitkCommon.h:40