00001 /*========================================================================= 00002 00003 Program: Medical Imaging & Interaction Toolkit 00004 Language: C++ 00005 Date: $Date: 2009-10-23 11:12:48 +0200 (Fr, 23 Okt 2009) $ 00006 Version: $Revision: 1.12 $ 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 #include "mitkTransferFunctionProperty.h" 00019 #include "mitkBasePropertySerializer.h" 00020 00021 #include "SceneSerializationBaseExports.h" 00022 00023 namespace mitk 00024 { 00025 class SceneSerializationBase_EXPORT TransferFunctionPropertySerializer : public BasePropertySerializer 00026 { 00027 public: 00028 00029 mitkClassMacro( TransferFunctionPropertySerializer, BasePropertySerializer ); 00030 itkNewMacro(Self); 00031 00032 virtual TiXmlElement* Serialize(); 00033 static bool SerializeTransferFunction( const char * filename, TransferFunction::Pointer tf ); 00034 00035 00036 protected: 00037 00038 TransferFunctionPropertySerializer(); 00039 virtual ~TransferFunctionPropertySerializer(); 00040 }; 00041 } // namespace 00042