#include <mitkVtkResliceInterpolationProperty.h>


Public Types | |
| typedef VtkResliceInterpolationProperty | Self |
| typedef EnumerationProperty | Superclass |
| typedef itk::SmartPointer< Self > | Pointer |
| typedef itk::SmartPointer < const Self > | ConstPointer |
Public Member Functions | |
| virtual const char * | GetClassName () const |
| virtual int | GetInterpolation () |
| virtual void | SetInterpolationToNearest () |
| virtual void | SetInterpolationToLinear () |
| virtual void | SetInterpolationToCubic () |
Static Public Member Functions | |
| static Pointer | New () |
| static Pointer | New (const IdType &_arg) |
| static Pointer | New (const std::string &_arg) |
Protected Member Functions | |
| VtkResliceInterpolationProperty () | |
| VtkResliceInterpolationProperty (const IdType &value) | |
| VtkResliceInterpolationProperty (const std::string &value) | |
| virtual bool | AddEnum (const std::string &name, const IdType &id) |
| virtual void | AddInterpolationTypes () |
Encapsulates the enumeration for reslice interpolation. Valid values are (VTK constant/Id/string representation): VTK_RESLICE_NEAREST, VTK_RESLICE_LINEAR, VTK_RESLICE_CUBIC Default is VTK_RESLICE_NEAREST
Definition at line 34 of file mitkVtkResliceInterpolationProperty.h.
| typedef itk::SmartPointer<const Self> mitk::VtkResliceInterpolationProperty::ConstPointer |
Reimplemented from mitk::EnumerationProperty.
Definition at line 38 of file mitkVtkResliceInterpolationProperty.h.
| typedef itk::SmartPointer<Self> mitk::VtkResliceInterpolationProperty::Pointer |
Reimplemented from mitk::EnumerationProperty.
Definition at line 38 of file mitkVtkResliceInterpolationProperty.h.
Reimplemented from mitk::EnumerationProperty.
Definition at line 38 of file mitkVtkResliceInterpolationProperty.h.
Reimplemented from mitk::EnumerationProperty.
Definition at line 38 of file mitkVtkResliceInterpolationProperty.h.
| mitk::VtkResliceInterpolationProperty::VtkResliceInterpolationProperty | ( | ) | [protected] |
Sets reslice interpolation mode to default (VTK_RESLICE_NEAREST).
Definition at line 23 of file mitkVtkResliceInterpolationProperty.cpp.
References AddInterpolationTypes(), and mitk::EnumerationProperty::SetValue().
{
this->AddInterpolationTypes();
this->SetValue( static_cast<IdType>( VTK_RESLICE_NEAREST ) );
}
| mitk::VtkResliceInterpolationProperty::VtkResliceInterpolationProperty | ( | const IdType & | value ) | [protected] |
Constructor. Sets reslice interpolation to the given value.
Definition at line 30 of file mitkVtkResliceInterpolationProperty.cpp.
{
this->AddInterpolationTypes();
if ( IsValidEnumerationValue( value ) )
{
this->SetValue( value ) ;
}
else
{
this->SetValue( static_cast<IdType>( VTK_RESLICE_NEAREST ) );
}
}
| mitk::VtkResliceInterpolationProperty::VtkResliceInterpolationProperty | ( | const std::string & | value ) | [protected] |
Constructor. Sets reslice interpolation to the given value.
Definition at line 43 of file mitkVtkResliceInterpolationProperty.cpp.
{
this->AddInterpolationTypes();
if ( IsValidEnumerationValue( value ) )
{
this->SetValue( value );
}
else
{
this->SetValue( static_cast<IdType>( VTK_RESLICE_NEAREST ) );
}
}
| bool mitk::VtkResliceInterpolationProperty::AddEnum | ( | const std::string & | name, |
| const IdType & | id | ||
| ) | [protected, virtual] |
this function is overridden as protected, so that the user may not add additional invalid interpolation types.
Reimplemented from mitk::EnumerationProperty.
Definition at line 89 of file mitkVtkResliceInterpolationProperty.cpp.
{
return Superclass::AddEnum( name, id );
}
| void mitk::VtkResliceInterpolationProperty::AddInterpolationTypes | ( | ) | [protected, virtual] |
Adds the enumeration types as defined by vtk to the list of known enumeration values.
Definition at line 81 of file mitkVtkResliceInterpolationProperty.cpp.
Referenced by VtkResliceInterpolationProperty().
| virtual const char* mitk::VtkResliceInterpolationProperty::GetClassName | ( | ) | const [virtual] |
Reimplemented from mitk::EnumerationProperty.
| int mitk::VtkResliceInterpolationProperty::GetInterpolation | ( | ) | [virtual] |
Returns the current interpolation value as defined by VTK constants.
Definition at line 57 of file mitkVtkResliceInterpolationProperty.cpp.
Referenced by mitk::ImageMapperGL2D::GenerateData().
{
return static_cast<int>( this->GetValueAsId() );
}
| static Pointer mitk::VtkResliceInterpolationProperty::New | ( | const std::string & | _arg ) | [inline, static] |
Definition at line 44 of file mitkVtkResliceInterpolationProperty.h.
:
| static Pointer mitk::VtkResliceInterpolationProperty::New | ( | ) | [static] |
Definition at line 42 of file mitkVtkResliceInterpolationProperty.h.
| void mitk::VtkResliceInterpolationProperty::SetInterpolationToCubic | ( | ) | [virtual] |
Sets the interpolation type to VTK_RESLICE_CUBIC.
Definition at line 75 of file mitkVtkResliceInterpolationProperty.cpp.
{
this->SetValue( static_cast<IdType>( VTK_RESLICE_CUBIC ) );
}
| void mitk::VtkResliceInterpolationProperty::SetInterpolationToLinear | ( | ) | [virtual] |
Sets the interpolation type to VTK_RESLICE_LINEAR.
Definition at line 69 of file mitkVtkResliceInterpolationProperty.cpp.
{
this->SetValue( static_cast<IdType>( VTK_RESLICE_LINEAR ) );
}
| void mitk::VtkResliceInterpolationProperty::SetInterpolationToNearest | ( | ) | [virtual] |
Sets the interpolation type to VTK_RESLICE_NEAREST.
Definition at line 63 of file mitkVtkResliceInterpolationProperty.cpp.
{
this->SetValue( static_cast<IdType>( VTK_RESLICE_NEAREST ) );
}
1.7.2