Medical Imaging Interaction Toolkit  2016.11.0
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
 
virtual TiXmlElement * Serialize () override
 Serializes given BaseProperty object. More...
 
virtual 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 ()
 
static bool SerializeTransferFunction (const char *filename, TransferFunction::Pointer tf)
 
static TransferFunction::Pointer DeserializeTransferFunction (const char *filePath)
 

Protected Member Functions

 TransferFunctionPropertySerializer ()
 
virtual ~TransferFunctionPropertySerializer ()
 
- Protected Member Functions inherited from mitk::BasePropertySerializer
 BasePropertySerializer ()
 
virtual ~BasePropertySerializer ()
 

Additional Inherited Members

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

Detailed Description

Definition at line 22 of file mitkTransferFunctionPropertySerializer.h.

Constructor & Destructor Documentation

mitk::TransferFunctionPropertySerializer::TransferFunctionPropertySerializer ( )
protected

Definition at line 23 of file mitkTransferFunctionPropertySerializer.cpp.

mitk::TransferFunctionPropertySerializer::~TransferFunctionPropertySerializer ( )
protectedvirtual

Definition at line 24 of file mitkTransferFunctionPropertySerializer.cpp.

Member Function Documentation

Pointer mitk::TransferFunctionPropertySerializer::Clone ( ) const
BaseProperty::Pointer mitk::TransferFunctionPropertySerializer::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 122 of file mitkTransferFunctionPropertySerializer.cpp.

References MITK_ERROR, mitk::TransferFunctionProperty::New(), and mitk::TransferFunction::New().

mitk::TransferFunction::Pointer mitk::TransferFunctionPropertySerializer::DeserializeTransferFunction ( const char *  filePath)
static
mitk::TransferFunctionPropertySerializer::mitkClassMacro ( TransferFunctionPropertySerializer  ,
BasePropertySerializer   
)
static Pointer mitk::TransferFunctionPropertySerializer::New ( )
static
TiXmlElement * mitk::TransferFunctionPropertySerializer::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 25 of file mitkTransferFunctionPropertySerializer.cpp.

References mitk::TransferFunction::GetColorTransferFunction(), mitk::TransferFunction::GetGradientOpacityPoints(), mitk::TransferFunction::GetScalarOpacityPoints(), and mitk::BasePropertySerializer::m_Property.

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

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