Medical Imaging Interaction Toolkit
2024.12.99-0da743f6
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
16
#include "
mitkBasePropertySerializer.h
"
17
#include "
mitkTransferFunctionProperty.h
"
18
19
namespace
mitk
20
{
21
class
MITKSCENESERIALIZATIONBASE_EXPORT
TransferFunctionPropertySerializer
:
public
BasePropertySerializer
22
{
23
public
:
24
mitkClassMacro
(
TransferFunctionPropertySerializer
,
BasePropertySerializer
);
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
:
35
TransferFunctionPropertySerializer
();
36
~
TransferFunctionPropertySerializer
()
override
;
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
src
MITK
Modules
SceneSerializationBase
include
mitkTransferFunctionPropertySerializer.h
Generated on Mon Dec 23 2024 02:13:21 for Medical Imaging Interaction Toolkit by
1.8.17