Medical Imaging Interaction Toolkit  2023.12.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 
13 #ifndef mitkTransferFunctionPropertySerializer_h
14 #define mitkTransferFunctionPropertySerializer_h
15 
18 
19 namespace mitk
20 {
22  {
23  public:
25  itkFactorylessNewMacro(Self);
26  itkCloneMacro(Self);
27 
28  tinyxml2::XMLElement *Serialize(tinyxml2::XMLDocument &doc) override;
29  BaseProperty::Pointer Deserialize(const tinyxml2::XMLElement *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 }
39 
40 #endif
mitkBasePropertySerializer.h
mitk::BasePropertySerializer
Base class for objects that serialize BaseProperty types.
Definition: mitkBasePropertySerializer.h:41
itk::SmartPointer< Self >
mitk
Find image slices visible on a given plane.
Definition: RenderingTests.dox:1
mitkTransferFunctionProperty.h
mitk::TransferFunctionPropertySerializer
Definition: mitkTransferFunctionPropertySerializer.h:21
mitkClassMacro
#define mitkClassMacro(className, SuperClassName)
Definition: mitkCommon.h:36
MITKSCENESERIALIZATIONBASE_EXPORT
#define MITKSCENESERIALIZATIONBASE_EXPORT
Definition: MitkSceneSerializationBaseExports.h:15