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

Serializer for mitk::LookupTableProperty. More...

#include <mitkLookupTablePropertySerializer.h>

Inheritance diagram for mitk::LookupTablePropertySerializer:
Collaboration diagram for mitk::LookupTablePropertySerializer:

Public Member Functions

 mitkClassMacro (LookupTablePropertySerializer, BasePropertySerializer) static Pointer New()
 
Pointer Clone () const
 
tinyxml2::XMLElement * Serialize (tinyxml2::XMLDocument &doc) override
 Serializes the LookupTableProperty into an XML element. More...
 
BaseProperty::Pointer Deserialize (const tinyxml2::XMLElement *element) override
 Deserializes an XML element back into a LookupTableProperty. 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...
 

Protected Member Functions

 LookupTablePropertySerializer ()
 
 ~LookupTablePropertySerializer () 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 mitk::LookupTableProperty.

Serializes and deserializes a LookupTableProperty (wrapping a vtkLookupTable) to and from an XML representation. The XML structure includes the lookup table's number of colors, scale, ramp, various ranges (hue, value, saturation, alpha, table), and the complete RGBA color table.

See also
BasePropertySerializer, LookupTableProperty, LookupTable

Definition at line 31 of file mitkLookupTablePropertySerializer.h.

Constructor & Destructor Documentation

◆ LookupTablePropertySerializer()

mitk::LookupTablePropertySerializer::LookupTablePropertySerializer ( )
inlineprotected

Definition at line 65 of file mitkLookupTablePropertySerializer.h.

◆ ~LookupTablePropertySerializer()

mitk::LookupTablePropertySerializer::~LookupTablePropertySerializer ( )
inlineoverrideprotected

Definition at line 66 of file mitkLookupTablePropertySerializer.h.

Member Function Documentation

◆ Clone()

Pointer mitk::LookupTablePropertySerializer::Clone ( ) const

◆ Deserialize()

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

Deserializes an XML element back into a LookupTableProperty.

Reconstructs a vtkLookupTable from the XML structure and wraps it in a new LookupTableProperty.

Parameters
[in]elementThe XML element to deserialize. May be nullptr.
Returns
A smart pointer to the deserialized LookupTableProperty, or nullptr if the element is null or parsing fails.

Reimplemented from mitk::BasePropertySerializer.

◆ mitkClassMacro()

mitk::LookupTablePropertySerializer::mitkClassMacro ( LookupTablePropertySerializer  ,
BasePropertySerializer   
)

◆ Serialize()

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

Serializes the LookupTableProperty into an XML element.

Creates an XML element with tag "LookupTable" containing the table configuration (NumberOfColors, Scale, Ramp), range sub-elements (HueRange, ValueRange, SaturationRange, AlphaRange, TableRange), and the full RGBA color table.

Parameters
[in,out]docThe XML document used to create elements.
Returns
Pointer to the created XML element, or nullptr if the property is not a LookupTableProperty or the lookup table is null.

Reimplemented from mitk::BasePropertySerializer.


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