Medical Imaging Interaction Toolkit  2021.10.00
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 (DKFZ)
6 All rights reserved.
7 
8 Use of this source code is governed by a 3-clause BSD license that can be
9 found in the LICENSE file.
10 
11 ============================================================================*/
12 
15 
16 namespace mitk
17 {
19  {
20  public:
22  itkFactorylessNewMacro(Self);
23  itkCloneMacro(Self);
24 
25  tinyxml2::XMLElement *Serialize(tinyxml2::XMLDocument &doc) override;
26  BaseProperty::Pointer Deserialize(const tinyxml2::XMLElement *element) override;
27 
28  static bool SerializeTransferFunction(const char *filename, TransferFunction::Pointer tf);
29  static TransferFunction::Pointer DeserializeTransferFunction(const char *filePath);
30 
31  protected:
34  };
35 } // namespace
DataCollection - Class to facilitate loading/accessing structured data.
#define mitkClassMacro(className, SuperClassName)
Definition: mitkCommon.h:36
Base class for objects that serialize BaseProperty types.
#define MITKSCENESERIALIZATIONBASE_EXPORT