Medical Imaging Interaction Toolkit  2018.4.99-389bf124
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)
 
TiXmlElement * Serialize () override
 Serializes given BaseProperty object. More...
 
BaseProperty::Pointer Deserialize (TiXmlElement *element) override
 Deserializes given TiXmlElement. More...
 
- Public Member Functions inherited from mitk::BasePropertySerializer
 mitkClassMacroItkParent (BasePropertySerializer, itk::Object)
 
virtual void SetProperty (const BaseProperty *_arg)
 

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()

mitk::BaseProperty::Pointer mitk::ScalarListLookupTablePropertySerializer::Deserialize ( TiXmlElement *  )
overridevirtual

Deserializes given TiXmlElement.

Returns
The deserialized Property.

This should be overwritten by specific sub-classes.

Reimplemented from mitk::BasePropertySerializer.

Definition at line 55 of file mitkScalarListLookupTablePropertySerializer.cpp.

References MITK_ERROR, MITK_REGISTER_SERIALIZER(), and mitk::ScalarListLookupTable::SetTableValue().

◆ mitkClassMacro()

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

◆ New()

◆ Serialize()

TiXmlElement * mitk::ScalarListLookupTablePropertySerializer::Serialize ( )
overridevirtual

Serializes given BaseProperty object.

Returns
The filename of the newly created file.

This should be overwritten by specific sub-classes.

Reimplemented from mitk::BasePropertySerializer.

Definition at line 17 of file mitkScalarListLookupTablePropertySerializer.cpp.

References mitk::ScalarListLookupTable::GetLookupTable(), mitk::BasePropertySerializer::m_Property, and MITK_ERROR.


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