Medical Imaging Interaction Toolkit  2026.06.00
Medical Imaging Interaction Toolkit
mitk::ScalarListLookupTablePropertySerializer Class Reference

Serializer for the ScalarListLookupTableProperty so it can be written and read from file. More...

#include <mitkScalarListLookupTablePropertySerializer.h>

Inheritance diagram for mitk::ScalarListLookupTablePropertySerializer:
Collaboration diagram for mitk::ScalarListLookupTablePropertySerializer:

Public Member Functions

 mitkClassMacro (ScalarListLookupTablePropertySerializer, BasePropertySerializer)
 
tinyxml2::XMLElement * Serialize (tinyxml2::XMLDocument &doc) override
 Serializes the previously set BaseProperty object into an XML element. More...
 
BaseProperty::Pointer Deserialize (const tinyxml2::XMLElement *element) override
 Deserializes an XML element back into a BaseProperty object. More...
 
- Public Member Functions inherited from mitk::BasePropertySerializer
 mitkClassMacroItkParent (BasePropertySerializer, itk::Object)
 
virtual void SetProperty (const BaseProperty *_arg)
 Sets the property to be serialized. More...
 

Static Public Member Functions

static Pointer New ()
 

Protected Member Functions

 ScalarListLookupTablePropertySerializer ()
 
 ~ScalarListLookupTablePropertySerializer () override
 
- Protected Member Functions inherited from mitk::BasePropertySerializer
 BasePropertySerializer ()
 
 ~BasePropertySerializer () override
 

Additional Inherited Members

- Protected Attributes inherited from mitk::BasePropertySerializer
BaseProperty::ConstPointer m_Property
 

Detailed Description

Serializer for the ScalarListLookupTableProperty so it can be written and read from file.

Definition at line 28 of file mitkScalarListLookupTablePropertySerializer.h.

Constructor & Destructor Documentation

◆ ScalarListLookupTablePropertySerializer()

mitk::ScalarListLookupTablePropertySerializer::ScalarListLookupTablePropertySerializer ( )
inlineprotected

◆ ~ScalarListLookupTablePropertySerializer()

mitk::ScalarListLookupTablePropertySerializer::~ScalarListLookupTablePropertySerializer ( )
inlineoverrideprotected

Member Function Documentation

◆ Deserialize()

BaseProperty::Pointer mitk::ScalarListLookupTablePropertySerializer::Deserialize ( const tinyxml2::XMLElement *  element)
overridevirtual

Deserializes an XML element back into a BaseProperty object.

The base implementation logs an error and returns nullptr. Sub-classes must override this method to reconstruct a property from XML.

Parameters
[in]elementThe XML element to deserialize. May be nullptr.
Returns
A smart pointer to the deserialized property, or nullptr if deserialization is not implemented or fails.

Reimplemented from mitk::BasePropertySerializer.

◆ mitkClassMacro()

mitk::ScalarListLookupTablePropertySerializer::mitkClassMacro ( ScalarListLookupTablePropertySerializer  ,
BasePropertySerializer   
)

◆ New()

static Pointer mitk::ScalarListLookupTablePropertySerializer::New ( )
static

◆ Serialize()

tinyxml2::XMLElement* mitk::ScalarListLookupTablePropertySerializer::Serialize ( tinyxml2::XMLDocument &  doc)
overridevirtual

Serializes the previously set BaseProperty object into an XML element.

The base implementation logs the request and returns nullptr. Sub-classes must override this method to produce a meaningful XML representation.

Parameters
[in,out]docThe XML document used to create new elements.
Returns
A pointer to the newly created XML element representing the property, or nullptr if serialization is not implemented or fails.
Precondition
The property must be set via SetProperty() before calling this method.

Reimplemented from mitk::BasePropertySerializer.


The documentation for this class was generated from the following file: