Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
mitkTransferFunctionPropertySerializer.h
Go to the documentation of this file.
1 /*===================================================================
2 
3 The Medical Imaging Interaction Toolkit (MITK)
4 
5 Copyright (c) German Cancer Research Center,
6 Division of Medical and Biological Informatics.
7 All rights reserved.
8 
9 This software is distributed WITHOUT ANY WARRANTY; without
10 even the implied warranty of MERCHANTABILITY or FITNESS FOR
11 A PARTICULAR PURPOSE.
12 
13 See LICENSE.txt or http://www.mitk.org for details.
14 
15 ===================================================================*/
16 
19 
20 namespace mitk
21 {
23  {
24  public:
26  itkFactorylessNewMacro(Self) itkCloneMacro(Self)
27 
28  virtual TiXmlElement *Serialize() override;
29  virtual BaseProperty::Pointer Deserialize(TiXmlElement *element) override;
30 
31  static bool SerializeTransferFunction(const char *filename, TransferFunction::Pointer tf);
32  static TransferFunction::Pointer DeserializeTransferFunction(const char *filePath);
33 
34  protected:
37  };
38 } // namespace
DataCollection - Class to facilitate loading/accessing structured data.
static const std::string filename
#define mitkClassMacro(className, SuperClassName)
Definition: mitkCommon.h:44
Base class for objects that serialize BaseProperty types.
#define MITKSCENESERIALIZATIONBASE_EXPORT