Medical Imaging Interaction Toolkit  2025.12.02
Medical Imaging Interaction Toolkit
mitkBasePropertySerializer.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 mitkBasePropertySerializer_h
14 #define mitkBasePropertySerializer_h
15 
16 #include "mitkSerializerMacros.h"
18 
19 #include "mitkBaseProperty.h"
20 #include <itkObjectFactoryBase.h>
21 
22 namespace tinyxml2
23 {
24  class XMLDocument;
25  class XMLElement;
26 }
27 
28 namespace mitk
29 {
42  {
43  public:
45 
46  itkSetConstObjectMacro(Property, BaseProperty);
47 
54  virtual tinyxml2::XMLElement *Serialize(tinyxml2::XMLDocument& doc);
55 
63  virtual BaseProperty::Pointer Deserialize(const tinyxml2::XMLElement*);
64 
65  protected:
68 
69  BaseProperty::ConstPointer m_Property;
70  };
71 
72 } // namespace
73 
74 #endif
#define MITKSCENESERIALIZATIONBASE_EXPORT
Base class for objects that serialize BaseProperty types.
mitkClassMacroItkParent(BasePropertySerializer, itk::Object)
virtual BaseProperty::Pointer Deserialize(const tinyxml2::XMLElement *)
Deserializes given XML element.
BaseProperty::ConstPointer m_Property
virtual tinyxml2::XMLElement * Serialize(tinyxml2::XMLDocument &doc)
Serializes given BaseProperty object.
Abstract base class for properties.
Find image slices visible on a given plane.