00001 /*========================================================================= 00002 00003 Program: Medical Imaging & Interaction Toolkit 00004 Language: C++ 00005 Date: $Date$ 00006 Version: $Revision: $ 00007 00008 Copyright (c) German Cancer Research Center, Division of Medical and 00009 Biological Informatics. All rights reserved. 00010 See MITKCopyright.txt or https://www.mitk.org/copyright.html for details. 00011 00012 This software is distributed WITHOUT ANY WARRANTY; without even 00013 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 00014 PURPOSE. See the above copyright notices for more information. 00015 00016 =========================================================================*/ 00017 00018 #ifndef _MITK_VTK_RESLICE_INTERPOLATION_PROPERTY__H_ 00019 #define _MITK_VTK_RESLICE_INTERPOLATION_PROPERTY__H_ 00020 00021 #include "mitkEnumerationProperty.h" 00022 00023 #include <vtkImageReslice.h> 00024 00025 namespace mitk 00026 { 00027 00034 class MITK_CORE_EXPORT VtkResliceInterpolationProperty : public EnumerationProperty 00035 { 00036 public: 00037 00038 mitkClassMacro( VtkResliceInterpolationProperty, EnumerationProperty ); 00039 00040 itkNewMacro(VtkResliceInterpolationProperty); 00041 00042 mitkNewMacro1Param(VtkResliceInterpolationProperty, const IdType&); 00043 00044 mitkNewMacro1Param(VtkResliceInterpolationProperty, const std::string&); 00045 00049 virtual int GetInterpolation(); 00050 00054 virtual void SetInterpolationToNearest(); 00055 00059 virtual void SetInterpolationToLinear(); 00060 00064 virtual void SetInterpolationToCubic(); 00065 00066 protected: 00067 00070 VtkResliceInterpolationProperty( ); 00071 00075 VtkResliceInterpolationProperty( const IdType& value ); 00076 00080 VtkResliceInterpolationProperty( const std::string& value ); 00081 00086 virtual bool AddEnum( const std::string& name, const IdType& id ); 00087 00092 virtual void AddInterpolationTypes(); 00093 }; 00094 00095 } // end of namespace mitk 00096 00097 #endif 00098 00099