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_SCALARMODE_PROPERTY__H_ 00019 #define _MITK_VTK_SCALARMODE_PROPERTY__H_ 00020 00021 #include "mitkEnumerationProperty.h" 00022 00023 namespace mitk 00024 { 00025 00035 class MITK_CORE_EXPORT VtkScalarModeProperty : public EnumerationProperty 00036 { 00037 public: 00038 00039 mitkClassMacro( VtkScalarModeProperty, EnumerationProperty ); 00040 00041 itkNewMacro(VtkScalarModeProperty); 00042 00043 mitkNewMacro1Param(VtkScalarModeProperty, const IdType&); 00044 00045 mitkNewMacro1Param(VtkScalarModeProperty, const std::string&); 00046 00051 virtual int GetVtkScalarMode(); 00052 00053 virtual void SetScalarModeToDefault(); 00054 00055 virtual void SetScalarModeToPointData(); 00056 00057 virtual void SetScalarModeToCellData(); 00058 00059 virtual void SetScalarModeToPointFieldData(); 00060 00061 virtual void SetScalarModeToCellFieldData(); 00062 00063 protected: 00064 00068 VtkScalarModeProperty( ); 00069 00075 VtkScalarModeProperty( const IdType& value ); 00076 00082 VtkScalarModeProperty( const std::string& value ); 00083 00088 virtual bool AddEnum( const std::string& name, const IdType& id ); 00089 00094 virtual void AddInterpolationTypes(); 00095 }; 00096 00097 } // end of namespace mitk 00098 00099 #endif //_MITK_VTK_SCALARMODE_PROPERTY__H_ 00100 00101