18 #include <vtkProperty.h>
23 SetValue(static_cast<IdType>(VTK_GOURAUD));
28 AddInterpolationTypes();
29 if (IsValidEnumerationValue(value))
35 SetValue(static_cast<IdType>(VTK_GOURAUD));
41 AddInterpolationTypes();
42 if (IsValidEnumerationValue(value))
48 SetValue(static_cast<IdType>(VTK_GOURAUD));
54 return static_cast<int>(GetValueAsId());
59 SetValue(static_cast<IdType>(VTK_FLAT));
64 SetValue(static_cast<IdType>(VTK_GOURAUD));
69 SetValue(static_cast<IdType>(VTK_PHONG));
74 AddEnum(
"Flat", static_cast<IdType>(VTK_FLAT));
75 AddEnum(
"Gouraud", static_cast<IdType>(VTK_GOURAUD));
76 AddEnum(
"Phong", static_cast<IdType>(VTK_PHONG));
81 return Superclass::AddEnum(name,
id);
virtual bool SetValue(const std::string &name)
itk::SmartPointer< Self > Pointer
virtual bool AddEnum(const std::string &name, const IdType &id) override
virtual void SetInterpolationToGouraud()
virtual void SetInterpolationToFlat()
virtual void SetInterpolationToPhong()
virtual int GetVtkInterpolation()
virtual void AddInterpolationTypes()
VtkInterpolationProperty()