Medical Imaging Interaction Toolkit  2022.04.99-7b8c4c8a
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
mitkBasePropertySerializer.h
mitk::BasePropertySerializer
Base class for objects that serialize BaseProperty types.
Definition: mitkBasePropertySerializer.h:41
itk::SmartPointer< Self >
mitk
DataCollection - Class to facilitate loading/accessing structured data.
Definition: RenderingTests.dox:1
mitkTransferFunctionProperty.h
mitk::TransferFunctionPropertySerializer
Definition: mitkTransferFunctionPropertySerializer.h:18
mitkClassMacro
#define mitkClassMacro(className, SuperClassName)
Definition: mitkCommon.h:36
MITKSCENESERIALIZATIONBASE_EXPORT
#define MITKSCENESERIALIZATIONBASE_EXPORT
Definition: MitkSceneSerializationBaseExports.h:15