Medical Imaging Interaction Toolkit
2016.11.0
Medical Imaging Interaction Toolkit
|
#include <mitkTransferFunctionPropertySerializer.h>
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 |
Definition at line 22 of file mitkTransferFunctionPropertySerializer.h.
|
protected |
Definition at line 23 of file mitkTransferFunctionPropertySerializer.cpp.
|
protectedvirtual |
Definition at line 24 of file mitkTransferFunctionPropertySerializer.cpp.
Pointer mitk::TransferFunctionPropertySerializer::Clone | ( | ) | const |
|
overridevirtual |
Deserializes given TiXmlElement.
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().
|
static |
Definition at line 222 of file mitkTransferFunctionPropertySerializer.cpp.
References MITK_ERROR, MITK_WARN, and New().
Referenced by QmitkTransferFunctionGeneratorWidget::OnLoadPreset().
mitk::TransferFunctionPropertySerializer::mitkClassMacro | ( | TransferFunctionPropertySerializer | , |
BasePropertySerializer | |||
) |
|
static |
Referenced by DeserializeTransferFunction(), and SerializeTransferFunction().
|
overridevirtual |
Serializes given BaseProperty object.
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.
|
static |
Definition at line 87 of file mitkTransferFunctionPropertySerializer.cpp.
References MITK_ERROR, New(), and mitk::TransferFunctionProperty::New().
Referenced by QmitkTransferFunctionGeneratorWidget::OnSavePreset().