Serializer for mitk::LookupTableProperty.
More...
#include <mitkLookupTablePropertySerializer.h>
Serializer for mitk::LookupTableProperty.
Serializes and deserializes a LookupTableProperty (wrapping a vtkLookupTable) to and from an XML representation. The XML structure includes the lookup table's number of colors, scale, ramp, various ranges (hue, value, saturation, alpha, table), and the complete RGBA color table.
- See also
- BasePropertySerializer, LookupTableProperty, LookupTable
Definition at line 31 of file mitkLookupTablePropertySerializer.h.
◆ LookupTablePropertySerializer()
| mitk::LookupTablePropertySerializer::LookupTablePropertySerializer |
( |
| ) |
|
|
inlineprotected |
◆ ~LookupTablePropertySerializer()
| mitk::LookupTablePropertySerializer::~LookupTablePropertySerializer |
( |
| ) |
|
|
inlineoverrideprotected |
◆ Clone()
| Pointer mitk::LookupTablePropertySerializer::Clone |
( |
| ) |
const |
◆ Deserialize()
| BaseProperty::Pointer mitk::LookupTablePropertySerializer::Deserialize |
( |
const tinyxml2::XMLElement * |
element | ) |
|
|
overridevirtual |
◆ mitkClassMacro()
◆ Serialize()
| tinyxml2::XMLElement* mitk::LookupTablePropertySerializer::Serialize |
( |
tinyxml2::XMLDocument & |
doc | ) |
|
|
overridevirtual |
Serializes the LookupTableProperty into an XML element.
Creates an XML element with tag "LookupTable" containing the table configuration (NumberOfColors, Scale, Ramp), range sub-elements (HueRange, ValueRange, SaturationRange, AlphaRange, TableRange), and the full RGBA color table.
- Parameters
-
| [in,out] | doc | The XML document used to create elements. |
- Returns
- Pointer to the created XML element, or nullptr if the property is not a LookupTableProperty or the lookup table is null.
Reimplemented from mitk::BasePropertySerializer.
The documentation for this class was generated from the following file: