Medical Imaging Interaction Toolkit  2024.06.00
Medical Imaging Interaction Toolkit
mitkScalarListLookupTablePropertySerializer.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 mitkScalarListLookupTablePropertySerializer_h
14 #define mitkScalarListLookupTablePropertySerializer_h
15 
17 
18 #include "mitkBaseProperty.h"
19 
20 #include "MitkModelFitExports.h"
21 
22 namespace mitk
23 {
29  {
30  public:
32  itkNewMacro(Self);
33 
34  tinyxml2::XMLElement* Serialize(tinyxml2::XMLDocument& doc) override;
35  BaseProperty::Pointer Deserialize(const tinyxml2::XMLElement* element) override;
36 
37  protected:
40  };
41 
42  namespace PropertyPersistenceSerialization
43  {
45  MITKMODELFIT_EXPORT ::std::string serializeScalarListLookupTablePropertyToXML(const mitk::BaseProperty *prop);
46  }
47 
48  namespace PropertyPersistenceDeserialization
49  {
52  }
53 }
54 
55 #endif
mitk::BaseProperty
Abstract base class for properties.
Definition: mitkBaseProperty.h:36
mitk::PropertyPersistenceDeserialization::deserializeXMLToScalarListLookupTableProperty
MITKMODELFIT_EXPORT mitk::BaseProperty::Pointer deserializeXMLToScalarListLookupTableProperty(const std::string &value)
mitkBasePropertySerializer.h
MitkModelFitExports.h
mitk::BasePropertySerializer
Base class for objects that serialize BaseProperty types.
Definition: mitkBasePropertySerializer.h:41
itk::SmartPointer< Self >
mitk::ScalarListLookupTablePropertySerializer::Deserialize
BaseProperty::Pointer Deserialize(const tinyxml2::XMLElement *element) override
Deserializes given XML element.
MITKMODELFIT_EXPORT
#define MITKMODELFIT_EXPORT
Definition: MitkModelFitExports.h:15
mitk
Find image slices visible on a given plane.
Definition: RenderingTests.dox:1
mitk::ScalarListLookupTablePropertySerializer::~ScalarListLookupTablePropertySerializer
~ScalarListLookupTablePropertySerializer() override
Definition: mitkScalarListLookupTablePropertySerializer.h:39
mitk::ScalarListLookupTablePropertySerializer::Serialize
tinyxml2::XMLElement * Serialize(tinyxml2::XMLDocument &doc) override
Serializes given BaseProperty object.
mitk::ScalarListLookupTablePropertySerializer
Serializer for the ScalarListLookupTableProperty so it can be written and read from file.
Definition: mitkScalarListLookupTablePropertySerializer.h:28
mitk::ScalarListLookupTablePropertySerializer::mitkClassMacro
mitkClassMacro(ScalarListLookupTablePropertySerializer, BasePropertySerializer)
mitkBaseProperty.h
mitk::PropertyPersistenceSerialization::serializeScalarListLookupTablePropertyToXML
MITKMODELFIT_EXPORT ::std::string serializeScalarListLookupTablePropertyToXML(const mitk::BaseProperty *prop)
mitk::ScalarListLookupTablePropertySerializer::ScalarListLookupTablePropertySerializer
ScalarListLookupTablePropertySerializer()
Definition: mitkScalarListLookupTablePropertySerializer.h:38