13 #ifndef mitkVtkInterpolationProperty_h
14 #define mitkVtkInterpolationProperty_h
32 itkFactorylessNewMacro(Self);
55 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 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.