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_INTERPOLATION_PROPERTY__H_ 00019 #define _MITK_VTK_INTERPOLATION_PROPERTY__H_ 00020 00021 #include "mitkEnumerationProperty.h" 00022 00023 namespace mitk 00024 { 00025 00032 class MITK_CORE_EXPORT VtkInterpolationProperty : public EnumerationProperty 00033 { 00034 public: 00035 00036 mitkClassMacro( VtkInterpolationProperty, EnumerationProperty ); 00037 00038 itkNewMacro(VtkInterpolationProperty); 00039 00040 mitkNewMacro1Param(VtkInterpolationProperty, const IdType&); 00041 00042 mitkNewMacro1Param(VtkInterpolationProperty, const std::string&); 00043 00048 virtual int GetVtkInterpolation(); 00049 00053 virtual void SetInterpolationToFlat(); 00054 00058 virtual void SetInterpolationToGouraud(); 00059 00063 virtual void SetInterpolationToPhong(); 00064 00065 protected: 00066 00070 VtkInterpolationProperty( ); 00071 00077 VtkInterpolationProperty( const IdType& value ); 00078 00084 VtkInterpolationProperty( const std::string& value ); 00085 00090 virtual bool AddEnum( const std::string& name, const IdType& id ); 00091 00096 virtual void AddInterpolationTypes(); 00097 }; 00098 00099 } // end of namespace mitk 00100 00101 #endif 00102 00103