18 #include <vtkProperty.h>
23 this->
SetValue(static_cast<IdType>(VTK_RESLICE_NEAREST));
28 this->AddInterpolationTypes();
29 if (IsValidEnumerationValue(value))
31 this->SetValue(value);
35 this->SetValue(static_cast<IdType>(VTK_RESLICE_NEAREST));
41 this->AddInterpolationTypes();
42 if (IsValidEnumerationValue(value))
44 this->SetValue(value);
48 this->SetValue(static_cast<IdType>(VTK_RESLICE_NEAREST));
54 return static_cast<int>(this->GetValueAsId());
59 this->SetValue(static_cast<IdType>(VTK_RESLICE_NEAREST));
64 this->SetValue(static_cast<IdType>(VTK_RESLICE_LINEAR));
69 this->SetValue(static_cast<IdType>(VTK_RESLICE_CUBIC));
74 AddEnum(
"Nearest", static_cast<IdType>(VTK_RESLICE_NEAREST));
75 AddEnum(
"Linear", static_cast<IdType>(VTK_RESLICE_LINEAR));
76 AddEnum(
"Cubic", static_cast<IdType>(VTK_RESLICE_CUBIC));
81 return Superclass::AddEnum(name,
id);
virtual int GetInterpolation()
virtual bool SetValue(const std::string &name)
itk::SmartPointer< Self > Pointer
virtual bool AddEnum(const std::string &name, const IdType &id) override
virtual void AddInterpolationTypes()
virtual void SetInterpolationToCubic()
virtual void SetInterpolationToNearest()
VtkResliceInterpolationProperty()
virtual void SetInterpolationToLinear()