13 #ifndef mitkVtkResliceInterpolationProperty_h
14 #define mitkVtkResliceInterpolationProperty_h
18 #include <vtkImageReslice.h>
34 itkFactorylessNewMacro(Self);
57 using BaseProperty::operator=;
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.