Serializer for the ScalarListLookupTableProperty so it can be written and read from file.
More...
#include <mitkScalarListLookupTablePropertySerializer.h>
Serializer for the ScalarListLookupTableProperty so it can be written and read from file.
Definition at line 28 of file mitkScalarListLookupTablePropertySerializer.h.
◆ ScalarListLookupTablePropertySerializer()
| mitk::ScalarListLookupTablePropertySerializer::ScalarListLookupTablePropertySerializer |
( |
| ) |
|
|
inlineprotected |
◆ ~ScalarListLookupTablePropertySerializer()
| mitk::ScalarListLookupTablePropertySerializer::~ScalarListLookupTablePropertySerializer |
( |
| ) |
|
|
inlineoverrideprotected |
◆ Deserialize()
| BaseProperty::Pointer mitk::ScalarListLookupTablePropertySerializer::Deserialize |
( |
const tinyxml2::XMLElement * |
element | ) |
|
|
overridevirtual |
Deserializes an XML element back into a BaseProperty object.
The base implementation logs an error and returns nullptr. Sub-classes must override this method to reconstruct a property from XML.
- Parameters
-
| [in] | element | The XML element to deserialize. May be nullptr. |
- Returns
- A smart pointer to the deserialized property, or nullptr if deserialization is not implemented or fails.
Reimplemented from mitk::BasePropertySerializer.
◆ mitkClassMacro()
◆ New()
| static Pointer mitk::ScalarListLookupTablePropertySerializer::New |
( |
| ) |
|
|
static |
◆ Serialize()
| tinyxml2::XMLElement* mitk::ScalarListLookupTablePropertySerializer::Serialize |
( |
tinyxml2::XMLDocument & |
doc | ) |
|
|
overridevirtual |
Serializes the previously set BaseProperty object into an XML element.
The base implementation logs the request and returns nullptr. Sub-classes must override this method to produce a meaningful XML representation.
- Parameters
-
| [in,out] | doc | The XML document used to create new elements. |
- Returns
- A pointer to the newly created XML element representing the property, or nullptr if serialization is not implemented or fails.
- Precondition
- The property must be set via SetProperty() before calling this method.
Reimplemented from mitk::BasePropertySerializer.
The documentation for this class was generated from the following file: