Medical Imaging Interaction Toolkit  2022.04.99-b2814023
Medical Imaging Interaction Toolkit
mitk::TransferFunctionPropertySerializer Class Reference

#include <mitkTransferFunctionPropertySerializer.h>

Inheritance diagram for mitk::TransferFunctionPropertySerializer:
Collaboration diagram for mitk::TransferFunctionPropertySerializer:

Public Member Functions

 mitkClassMacro (TransferFunctionPropertySerializer, BasePropertySerializer)
 
Pointer Clone () const
 
tinyxml2::XMLElement * Serialize (tinyxml2::XMLDocument &doc) override
 Serializes given BaseProperty object. More...
 
BaseProperty::Pointer Deserialize (const tinyxml2::XMLElement *element) override
 Deserializes given XML element. 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 ()
 
static bool SerializeTransferFunction (const char *filename, TransferFunction::Pointer tf)
 
static TransferFunction::Pointer DeserializeTransferFunction (const char *filePath)
 

Protected Member Functions

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

Definition at line 18 of file mitkTransferFunctionPropertySerializer.h.

Constructor & Destructor Documentation

◆ TransferFunctionPropertySerializer()

mitk::TransferFunctionPropertySerializer::TransferFunctionPropertySerializer ( )
protected

◆ ~TransferFunctionPropertySerializer()

mitk::TransferFunctionPropertySerializer::~TransferFunctionPropertySerializer ( )
overrideprotected

Member Function Documentation

◆ Clone()

Pointer mitk::TransferFunctionPropertySerializer::Clone ( ) const

◆ Deserialize()

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

Deserializes given XML element.

Returns
The deserialized Property.

This should be overwritten by specific sub-classes.

Reimplemented from mitk::BasePropertySerializer.

◆ DeserializeTransferFunction()

static TransferFunction::Pointer mitk::TransferFunctionPropertySerializer::DeserializeTransferFunction ( const char *  filePath)
static

◆ mitkClassMacro()

mitk::TransferFunctionPropertySerializer::mitkClassMacro ( TransferFunctionPropertySerializer  ,
BasePropertySerializer   
)

◆ New()

static Pointer mitk::TransferFunctionPropertySerializer::New ( )
static

◆ Serialize()

tinyxml2::XMLElement* mitk::TransferFunctionPropertySerializer::Serialize ( tinyxml2::XMLDocument &  doc)
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.

◆ SerializeTransferFunction()

static bool mitk::TransferFunctionPropertySerializer::SerializeTransferFunction ( const char *  filename,
TransferFunction::Pointer  tf 
)
static

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